backports: rename *-asn1.[ch] to *.asn1.[ch]
PATCH 1/1 backports: rename *-asn1.[ch] to *.asn1.[ch]
linux-stable 4fa8bc949de11c99ee2433c602d43f87c452f4f2 renamed *-asn1.[ch] files to *.asn1.[ch]. Make the corresponding change for backports.
--- backport/compat/Makefile | 8 +- backport/compat/verification/pkcs7-asn1.c | 355 -------------------------- backport/compat/verification/pkcs7-asn1.h | 27 -- backport/compat/verification/pkcs7.asn1.c | 355 ++++++++++++++++++++++++++ backport/compat/verification/pkcs7.asn1.h | 27 ++ backport/compat/verification/public_key.c | 2 +- backport/compat/verification/rsapubkey-asn1.c | 38 --- backport/compat/verification/rsapubkey-asn1.h | 15 -- backport/compat/verification/rsapubkey.asn1.c | 38 +++ backport/compat/verification/rsapubkey.asn1.h | 15 ++ backport/compat/verification/x509-asn1.c | 182 ------------- backport/compat/verification/x509-asn1.h | 22 -- backport/compat/verification/x509.asn1.c | 182 +++++++++++++ backport/compat/verification/x509.asn1.h | 22 ++ backport/compat/verification/x509_akid-asn1.c | 144 ----------- backport/compat/verification/x509_akid-asn1.h | 15 -- backport/compat/verification/x509_akid.asn1.c | 144 +++++++++++ backport/compat/verification/x509_akid.asn1.h | 15 ++ 18 files changed, 803 insertions(+), 803 deletions(-) delete mode 100644 backport/compat/verification/pkcs7-asn1.c delete mode 100644 backport/compat/verification/pkcs7-asn1.h create mode 100644 backport/compat/verification/pkcs7.asn1.c create mode 100644 backport/compat/verification/pkcs7.asn1.h delete mode 100644 backport/compat/verification/rsapubkey-asn1.c delete mode 100644 backport/compat/verification/rsapubkey-asn1.h create mode 100644 backport/compat/verification/rsapubkey.asn1.c create mode 100644 backport/compat/verification/rsapubkey.asn1.h delete mode 100644 backport/compat/verification/x509-asn1.c delete mode 100644 backport/compat/verification/x509-asn1.h create mode 100644 backport/compat/verification/x509.asn1.c create mode 100644 backport/compat/verification/x509.asn1.h delete mode 100644 backport/compat/verification/x509_akid-asn1.c delete mode 100644 backport/compat/verification/x509_akid-asn1.h create mode 100644 backport/compat/verification/x509_akid.asn1.c create mode 100644 backport/compat/verification/x509_akid.asn1.h
backport/compat/Makefile +4 -4
@@ -41,11 +41,11 @@ compat-$(CPTCFG_KERNEL_4_12) += backport-4.12.o compat-$(CPTCFG_BPAUTO_CRYPTO_SKCIPHER) += crypto-skcipher.o compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/verify.o -compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/pkcs7-asn1.o +compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/pkcs7.asn1.o compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/pkcs7_verify.o compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/pkcs7_parser.o -compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/x509-asn1.o -compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/x509_akid-asn1.o +compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/x509.asn1.o +compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/x509_akid.asn1.o compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/x509_cert_parser.o compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/x509_public_key.o compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/pkcs7_trust.o
@@ -58,7 +58,7 @@ compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/md_wrap.o compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/sha256.o compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/oid.o compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/asn1parse.o -compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/rsapubkey-asn1.o +compat-$(CPTCFG_BPAUTO_BUILD_SYSTEM_DATA_VERIFICATION) += verification/rsapubkey.asn1.o $(obj)/lib-oid_registry.o: $(obj)/oid_registry_data.c
backport/compat/verification/pkcs7-asn1.c deleted +0 -355
355 lines not on this page · raw message
backport/compat/verification/pkcs7-asn1.h deleted +0 -27
@@ -1,27 +0,0 @@ -/* -* Automatically generated by asn1_compiler. Do not edit -* -* ASN.1 parser for pkcs7 -*/ -#include <linux/asn1_decoder.h> - -extern const struct asn1_decoder pkcs7_decoder; - -extern int pkcs7_check_content_type (void *,size_t ,unsigned char ,const void *,size_t ); -extern int pkcs7_extract_cert (void *,size_t ,unsigned char ,const void *,size_t ); -extern int pkcs7_note_OID (void *,size_t ,unsigned char ,const void *,size_t ); -extern int pkcs7_note_certificate_list (void *,size_t ,unsigned char ,const void *,size_t ); -extern int pkcs7_note_content (void *,size_t ,unsigned char ,const void *,size_t ); -extern int pkcs7_note_data (void *,size_t ,unsigned char ,const void *,size_t ); -extern int pkcs7_note_signed_info (void *,size_t ,unsigned char ,const void *,size_t ); -extern int pkcs7_note_signeddata_version (void *,size_t ,unsigned char ,const void *,size_t ); -extern int pkcs7_note_signerinfo_version (void *,size_t ,unsigned char ,const void *,size_t ); -extern int pkcs7_sig_note_authenticated_attr (void *,size_t ,unsigned char ,const void *,size_t ); -extern int pkcs7_sig_note_digest_algo (void *,size_t ,unsigned char ,const void *,size_t ); -extern int pkcs7_sig_note_issuer (void *,size_t ,unsigned char ,const void *,size_t ); -extern int pkcs7_sig_note_pkey_algo (void *,size_t ,unsigned char ,const void *,size_t ); -extern int pkcs7_sig_note_serial (void *,size_t ,unsigned char ,const void *,size_t ); -extern int pkcs7_sig_note_set_of_authattrs (void *,size_t ,unsigned char ,const void *,size_t ); -extern int pkcs7_sig_note_signature (void *,size_t ,unsigned char ,const void *,size_t ); -extern int pkcs7_sig_note_skid (void *,size_t ,unsigned char ,const void *,size_t ); -
backport/compat/verification/pkcs7.asn1.c new file +355 -0
355 lines not on this page · raw message
backport/compat/verification/pkcs7.asn1.h new file +27 -0
@@ -0,0 +1,27 @@ +/* +* Automatically generated by asn1_compiler. Do not edit +* +* ASN.1 parser for pkcs7 +*/ +#include <linux/asn1_decoder.h> + +extern const struct asn1_decoder pkcs7_decoder; + +extern int pkcs7_check_content_type (void *,size_t ,unsigned char ,const void *,size_t ); +extern int pkcs7_extract_cert (void *,size_t ,unsigned char ,const void *,size_t ); +extern int pkcs7_note_OID (void *,size_t ,unsigned char ,const void *,size_t ); +extern int pkcs7_note_certificate_list (void *,size_t ,unsigned char ,const void *,size_t ); +extern int pkcs7_note_content (void *,size_t ,unsigned char ,const void *,size_t ); +extern int pkcs7_note_data (void *,size_t ,unsigned char ,const void *,size_t ); +extern int pkcs7_note_signed_info (void *,size_t ,unsigned char ,const void *,size_t ); +extern int pkcs7_note_signeddata_version (void *,size_t ,unsigned char ,const void *,size_t ); +extern int pkcs7_note_signerinfo_version (void *,size_t ,unsigned char ,const void *,size_t ); +extern int pkcs7_sig_note_authenticated_attr (void *,size_t ,unsigned char ,const void *,size_t ); +extern int pkcs7_sig_note_digest_algo (void *,size_t ,unsigned char ,const void *,size_t ); +extern int pkcs7_sig_note_issuer (void *,size_t ,unsigned char ,const void *,size_t ); +extern int pkcs7_sig_note_pkey_algo (void *,size_t ,unsigned char ,const void *,size_t ); +extern int pkcs7_sig_note_serial (void *,size_t ,unsigned char ,const void *,size_t ); +extern int pkcs7_sig_note_set_of_authattrs (void *,size_t ,unsigned char ,const void *,size_t ); +extern int pkcs7_sig_note_signature (void *,size_t ,unsigned char ,const void *,size_t ); +extern int pkcs7_sig_note_skid (void *,size_t ,unsigned char ,const void *,size_t ); +
backport/compat/verification/public_key.c +1 -1
@@ -18,7 +18,7 @@#include <linux/scatterlist.h> #include <linux/asn1_decoder.h> #include <crypto/public_key.h> -#include "rsapubkey-asn1.h" +#include "rsapubkey.asn1.h" #include "mbedtls/rsa.h" #include "mbedtls/md.h"
backport/compat/verification/rsapubkey-asn1.c deleted +0 -38
@@ -1,38 +0,0 @@ -/* -* Automatically generated by asn1_compiler. Do not edit -* -* ASN.1 parser for rsapubkey -*/ -#include <linux/asn1_ber_bytecode.h> -#include "rsapubkey-asn1.h" - -enum rsapubkey_actions { - ACT_rsa_get_e =0 , - ACT_rsa_get_n =1 , - NR__rsapubkey_actions =2 -}; - -static const asn1_action_t rsapubkey_action_table[NR__rsapubkey_actions] = { - [0 ] = rsa_get_e, - [1 ] = rsa_get_n, -}; - -static const unsigned char rsapubkey_machine[] = { -// RsaPubKey - [0 ] =ASN1_OP_MATCH , - [1 ] =_tag (UNIV ,CONS ,SEQ ), - [2 ] =ASN1_OP_MATCH_ACT ,// n - [3 ] =_tag (UNIV ,PRIM ,INT ), - [4 ] =_action (ACT_rsa_get_n), - [5 ] =ASN1_OP_MATCH_ACT ,// e - [6 ] =_tag (UNIV ,PRIM ,INT ), - [7 ] =_action (ACT_rsa_get_e), - [8 ] =ASN1_OP_END_SEQ , - [9 ] =ASN1_OP_COMPLETE , -}; - -const struct asn1_decoder rsapubkey_decoder = { - .machine = rsapubkey_machine, - .machlen =sizeof (rsapubkey_machine), - .actions = rsapubkey_action_table, -};
backport/compat/verification/rsapubkey-asn1.h deleted +0 -15
@@ -1,15 +0,0 @@ -/* -* Automatically generated by asn1_compiler. Do not edit -* -* ASN.1 parser for rsapubkey -*/ -#include <linux/asn1_decoder.h> - -extern const struct asn1_decoder rsapubkey_decoder; - -#define rsa_get_e LINUX_BACKPORT(rsa_get_e) -#define rsa_get_n LINUX_BACKPORT(rsa_get_n) - -extern int rsa_get_e (void *,size_t ,unsigned char ,const void *,size_t ); -extern int rsa_get_n (void *,size_t ,unsigned char ,const void *,size_t ); -
backport/compat/verification/rsapubkey.asn1.c new file +38 -0
@@ -0,0 +1,38 @@ +/* +* Automatically generated by asn1_compiler. Do not edit +* +* ASN.1 parser for rsapubkey +*/ +#include <linux/asn1_ber_bytecode.h> +#include "rsapubkey.asn1.h" + +enum rsapubkey_actions { + ACT_rsa_get_e =0 , + ACT_rsa_get_n =1 , + NR__rsapubkey_actions =2 +}; + +static const asn1_action_t rsapubkey_action_table[NR__rsapubkey_actions] = { + [0 ] = rsa_get_e, + [1 ] = rsa_get_n, +}; + +static const unsigned char rsapubkey_machine[] = { +// RsaPubKey + [0 ] =ASN1_OP_MATCH , + [1 ] =_tag (UNIV ,CONS ,SEQ ), + [2 ] =ASN1_OP_MATCH_ACT ,// n + [3 ] =_tag (UNIV ,PRIM ,INT ), + [4 ] =_action (ACT_rsa_get_n), + [5 ] =ASN1_OP_MATCH_ACT ,// e + [6 ] =_tag (UNIV ,PRIM ,INT ), + [7 ] =_action (ACT_rsa_get_e), + [8 ] =ASN1_OP_END_SEQ , + [9 ] =ASN1_OP_COMPLETE , +}; + +const struct asn1_decoder rsapubkey_decoder = { + .machine = rsapubkey_machine, + .machlen =sizeof (rsapubkey_machine), + .actions = rsapubkey_action_table, +};
backport/compat/verification/rsapubkey.asn1.h new file +15 -0
@@ -0,0 +1,15 @@ +/* +* Automatically generated by asn1_compiler. Do not edit +* +* ASN.1 parser for rsapubkey +*/ +#include <linux/asn1_decoder.h> + +extern const struct asn1_decoder rsapubkey_decoder; + +#define rsa_get_e LINUX_BACKPORT(rsa_get_e) +#define rsa_get_n LINUX_BACKPORT(rsa_get_n) + +extern int rsa_get_e (void *,size_t ,unsigned char ,const void *,size_t ); +extern int rsa_get_n (void *,size_t ,unsigned char ,const void *,size_t ); +
backport/compat/verification/x509-asn1.c deleted +0 -182
182 lines not on this page · raw message
backport/compat/verification/x509-asn1.h deleted +0 -22
@@ -1,22 +0,0 @@ -/* -* Automatically generated by asn1_compiler. Do not edit -* -* ASN.1 parser for x509 -*/ -#include <linux/asn1_decoder.h> - -extern const struct asn1_decoder x509_decoder; - -extern int x509_extract_key_data (void *,size_t ,unsigned char ,const void *,size_t ); -extern int x509_extract_name_segment (void *,size_t ,unsigned char ,const void *,size_t ); -extern int x509_note_OID (void *,size_t ,unsigned char ,const void *,size_t ); -extern int x509_note_issuer (void *,size_t ,unsigned char ,const void *,size_t ); -extern int x509_note_not_after (void *,size_t ,unsigned char ,const void *,size_t ); -extern int x509_note_not_before (void *,size_t ,unsigned char ,const void *,size_t ); -extern int x509_note_pkey_algo (void *,size_t ,unsigned char ,const void *,size_t ); -extern int x509_note_serial (void *,size_t ,unsigned char ,const void *,size_t ); -extern int x509_note_signature (void *,size_t ,unsigned char ,const void *,size_t ); -extern int x509_note_subject (void *,size_t ,unsigned char ,const void *,size_t ); -extern int x509_note_tbs_certificate (void *,size_t ,unsigned char ,const void *,size_t ); -extern int x509_process_extension (void *,size_t ,unsigned char ,const void *,size_t ); -
backport/compat/verification/x509.asn1.c new file +182 -0
182 lines not on this page · raw message
backport/compat/verification/x509.asn1.h new file +22 -0
@@ -0,0 +1,22 @@ +/* +* Automatically generated by asn1_compiler. Do not edit +* +* ASN.1 parser for x509 +*/ +#include <linux/asn1_decoder.h> + +extern const struct asn1_decoder x509_decoder; + +extern int x509_extract_key_data (void *,size_t ,unsigned char ,const void *,size_t ); +extern int x509_extract_name_segment (void *,size_t ,unsigned char ,const void *,size_t ); +extern int x509_note_OID (void *,size_t ,unsigned char ,const void *,size_t ); +extern int x509_note_issuer (void *,size_t ,unsigned char ,const void *,size_t ); +extern int x509_note_not_after (void *,size_t ,unsigned char ,const void *,size_t ); +extern int x509_note_not_before (void *,size_t ,unsigned char ,const void *,size_t ); +extern int x509_note_pkey_algo (void *,size_t ,unsigned char ,const void *,size_t ); +extern int x509_note_serial (void *,size_t ,unsigned char ,const void *,size_t ); +extern int x509_note_signature (void *,size_t ,unsigned char ,const void *,size_t ); +extern int x509_note_subject (void *,size_t ,unsigned char ,const void *,size_t ); +extern int x509_note_tbs_certificate (void *,size_t ,unsigned char ,const void *,size_t ); +extern int x509_process_extension (void *,size_t ,unsigned char ,const void *,size_t ); +
backport/compat/verification/x509_akid-asn1.c deleted +0 -144
144 lines not on this page · raw message
backport/compat/verification/x509_akid-asn1.h deleted +0 -15
@@ -1,15 +0,0 @@ -/* -* Automatically generated by asn1_compiler. Do not edit -* -* ASN.1 parser for x509_akid -*/ -#include <linux/asn1_decoder.h> - -extern const struct asn1_decoder x509_akid_decoder; - -extern int x509_akid_note_kid (void *,size_t ,unsigned char ,const void *,size_t ); -extern int x509_akid_note_name (void *,size_t ,unsigned char ,const void *,size_t ); -extern int x509_akid_note_serial (void *,size_t ,unsigned char ,const void *,size_t ); -extern int x509_extract_name_segment (void *,size_t ,unsigned char ,const void *,size_t ); -extern int x509_note_OID (void *,size_t ,unsigned char ,const void *,size_t ); -
backport/compat/verification/x509_akid.asn1.c new file +144 -0
144 lines not on this page · raw message
backport/compat/verification/x509_akid.asn1.h new file +15 -0
@@ -0,0 +1,15 @@ +/* +* Automatically generated by asn1_compiler. Do not edit +* +* ASN.1 parser for x509_akid +*/ +#include <linux/asn1_decoder.h> + +extern const struct asn1_decoder x509_akid_decoder; + +extern int x509_akid_note_kid (void *,size_t ,unsigned char ,const void *,size_t ); +extern int x509_akid_note_name (void *,size_t ,unsigned char ,const void *,size_t ); +extern int x509_akid_note_serial (void *,size_t ,unsigned char ,const void *,size_t ); +extern int x509_extract_name_segment (void *,size_t ,unsigned char ,const void *,size_t ); +extern int x509_note_OID (void *,size_t ,unsigned char ,const void *,size_t ); +
Signature · 4 lines
1.9.1 -- To unsubscribe from this list: send the line "unsubscribe backports" in
Quoted 3 lines · Winnie Chang
linux-stable
4fa8bc949de11c99ee2433c602d43f87c452f4f2renamed *-asn1.[ch] files to *.asn1.[ch]. Make the corresponding change for backports.
Does it matter? I mean, I don't really mind the patch, but I also see little reason for it?
johannes
--
To unsubscribe from this list: send the line "unsubscribe backports" in
Quoted 7 lines · Johannes Berg
Quoted 3 lines · Winnie Chang
linux-stable
4fa8bc949de11c99ee2433c602d43f87c452f4f2renamed *-asn1.[ch] files to *.asn1.[ch]. Make the corresponding change for backports.Does it matter? I mean, I don't really mind the patch, but I also see little reason for it?
Johannes,
Thanks for reviewing.
The linux-stable file rename has caused build failure. It's because backports pulls kernel pkcs7_parser.c, which includes the renamed header file pkcs7.asn1.h, while our corresponding copy in backports.git still has the old name pkcs7-asn1.h.
Here's the copy-list line that pulls pkcs_parser.c:crypto/asymmetric_keys/pkcs7_parser.c -> compat/verification/pkcs7_parser.c
Chi-hsien Lin
Quoted 6 lines
johannes
--
To unsubscribe from this list: send the line "unsubscribe backports" in .
--
To unsubscribe from this list: send the line "unsubscribe backports" in
Quoted 8 lines · Chi-Hsien Lin
The linux-stable file rename has caused build failure. It's because backports pulls kernel
pkcs7_parser.c, which includes the renamed header filepkcs7.asn1.h, while our corresponding copy in backports.git still has the old namepkcs7-asn1.h.Here's the copy-list line that pulls
pkcs_parser.c:crypto/asymmetric_keys/pkcs7_parser.c->compat/verification/pkcs7_parser.c
Ah, header files too, right.
Ok, makes sense, thanks for the explanation.
johannes
--
To unsubscribe from this list: send the line "unsubscribe backports" in