Skip to content

Commit ff8efde

Browse files
tedjpoolejwendell
authored andcommitted
Added missing bssl-compat functions
- ASN1_BMPSTRING_new() - ASN1_UNIVERSALSTRING_new() - ASN1_TYPE_new() - ASN1_TYPE_set() - GENERAL_NAME_set0_othername() Signed-off-by: Ted Poole <tpoole@redhat.com>
1 parent 4168c60 commit ff8efde

4 files changed

Lines changed: 12 additions & 0 deletions

File tree

bssl-compat/BUILD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,8 @@ mapping_func_filegroup(
314314
name = "mapping_function_sources",
315315
funcs = [
316316
"ASN1_ENUMERATED_to_BN",
317+
"ASN1_BMPSTRING_new",
318+
"ASN1_UNIVERSALSTRING_new",
317319
"ASN1_IA5STRING_free",
318320
"ASN1_IA5STRING_new",
319321
"ASN1_INTEGER_free",
@@ -331,6 +333,8 @@ mapping_func_filegroup(
331333
"ASN1_TIME_free",
332334
"ASN1_TIME_new",
333335
"ASN1_TIME_set",
336+
"ASN1_TYPE_new",
337+
"ASN1_TYPE_set",
334338
"BASIC_CONSTRAINTS_free",
335339
"BASIC_CONSTRAINTS_new",
336340
"BIO_clear_flags",
@@ -512,6 +516,7 @@ mapping_func_filegroup(
512516
"GENERAL_NAME_free",
513517
"GENERAL_NAME_new",
514518
"GENERAL_NAME_set0_value",
519+
"GENERAL_NAME_set0_othername",
515520
"GENERAL_NAMES_free",
516521
"GENERAL_NAMES_new",
517522
"GENERAL_SUBTREE_free",

bssl-compat/patch/include/openssl/asn1.h.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ uncomment.sh "$1" --comment -h \
1414
--uncomment-func-decl ASN1_STRING_data \
1515
--uncomment-func-decl ASN1_STRING_length \
1616
--uncomment-func-decl ASN1_STRING_set \
17+
--uncomment-func-decl ASN1_BMPSTRING_new \
1718
--uncomment-func-decl ASN1_IA5STRING_new \
19+
--uncomment-func-decl ASN1_UNIVERSALSTRING_new \
1820
--uncomment-func-decl ASN1_IA5STRING_free \
1921
--uncomment-func-decl ASN1_INTEGER_new \
2022
--uncomment-func-decl ASN1_INTEGER_free \
@@ -25,6 +27,8 @@ uncomment.sh "$1" --comment -h \
2527
--uncomment-func-decl ASN1_TIME_diff \
2628
--uncomment-func-decl ASN1_TIME_set \
2729
--uncomment-func-decl ASN1_TIME_adj \
30+
--uncomment-func-decl ASN1_TYPE_new \
31+
--uncomment-func-decl ASN1_TYPE_set \
2832
--uncomment-func-decl ASN1_OBJECT_free \
2933
--uncomment-func-decl ASN1_ENUMERATED_to_BN \
3034
--uncomment-func-decl i2d_ASN1_OCTET_STRING \

bssl-compat/patch/include/openssl/base.h.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ uncomment.sh "$1" --comment -h \
3737
--uncomment-typedef-redef ASN1_TIME \
3838
--uncomment-typedef-redef ASN1_ITEM \
3939
--uncomment-typedef-redef ASN1_OBJECT \
40+
--uncomment-typedef-redef ASN1_BMPSTRING \
4041
--uncomment-typedef-redef ASN1_IA5STRING \
42+
--uncomment-typedef-redef ASN1_UNIVERSALSTRING \
4143
--uncomment-typedef-redef ASN1_INTEGER \
4244
--uncomment-typedef-redef ASN1_OCTET_STRING \
4345
--uncomment-typedef-redef ASN1_STRING \

bssl-compat/patch/include/openssl/x509.h.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ uncomment.sh "$1" --comment -h \
118118
--uncomment-regex 'DEFINE_STACK_OF(GENERAL_SUBTREE)' \
119119
--uncomment-macro-redef 'EXFLAG_[[:alnum:]_]*' \
120120
--uncomment-func-decl GENERAL_NAME_set0_value \
121+
--uncomment-func-decl GENERAL_NAME_set0_othername \
121122
--uncomment-func-decl X509_get_extension_flags \
122123
--uncomment-func-decl X509_get_key_usage \
123124
--uncomment-func-decl GENERAL_NAME_free \

0 commit comments

Comments
 (0)