diff options
author | tb <> | 2022-01-14 08:16:13 +0000 |
---|---|---|
committer | tb <> | 2022-01-14 08:16:13 +0000 |
commit | 72623a3ef957eb2abae8f23270f10fce78f84123 (patch) | |
tree | 74d6c4cd010903a61c401e87224b05cd978c67e0 /src | |
parent | b4428794e46977d3522eb9b836c6ad7ded3031ca (diff) | |
download | openbsd-72623a3ef957eb2abae8f23270f10fce78f84123.tar.gz openbsd-72623a3ef957eb2abae8f23270f10fce78f84123.tar.bz2 openbsd-72623a3ef957eb2abae8f23270f10fce78f84123.zip |
Garbage collect the app_items field of ASN1_ADB
This is unused and was removed in OpenSSL 5b70372d when it was
replaced with an ASN.1 ADB callback (which we don't support).
ok inoguchi jsing
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/asn1/asn1t.h | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/cms/cms_asn1.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/ec/ec_asn1.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/pkcs12/p12_asn.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/pkcs7/pk7_asn1.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/x509/x509_cpols.c | 3 |
6 files changed, 6 insertions, 14 deletions
diff --git a/src/lib/libcrypto/asn1/asn1t.h b/src/lib/libcrypto/asn1/asn1t.h index a4d0aaccbe..82369d3de2 100644 --- a/src/lib/libcrypto/asn1/asn1t.h +++ b/src/lib/libcrypto/asn1/asn1t.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: asn1t.h,v 1.17 2022/01/14 08:14:48 tb Exp $ */ | 1 | /* $OpenBSD: asn1t.h,v 1.18 2022/01/14 08:16:13 tb Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2000. | 3 | * project 2000. |
4 | */ | 4 | */ |
@@ -487,7 +487,6 @@ typedef struct ASN1_ADB_st ASN1_ADB; | |||
487 | struct ASN1_ADB_st { | 487 | struct ASN1_ADB_st { |
488 | unsigned long flags; /* Various flags */ | 488 | unsigned long flags; /* Various flags */ |
489 | unsigned long offset; /* Offset of selector field */ | 489 | unsigned long offset; /* Offset of selector field */ |
490 | STACK_OF(ASN1_ADB_TABLE) **app_items; /* Application defined items */ | ||
491 | const ASN1_ADB_TABLE *tbl; /* Table of possible types */ | 490 | const ASN1_ADB_TABLE *tbl; /* Table of possible types */ |
492 | long tblcount; /* Number of entries in tbl */ | 491 | long tblcount; /* Number of entries in tbl */ |
493 | const ASN1_TEMPLATE *default_tt; /* Type to use if no match */ | 492 | const ASN1_TEMPLATE *default_tt; /* Type to use if no match */ |
diff --git a/src/lib/libcrypto/cms/cms_asn1.c b/src/lib/libcrypto/cms/cms_asn1.c index ac53fec154..cc00aef0fa 100644 --- a/src/lib/libcrypto/cms/cms_asn1.c +++ b/src/lib/libcrypto/cms/cms_asn1.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cms_asn1.c,v 1.18 2019/08/11 10:43:57 jsing Exp $ */ | 1 | /* $OpenBSD: cms_asn1.c,v 1.19 2022/01/14 08:16:13 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
4 | * project. | 4 | * project. |
@@ -1323,7 +1323,6 @@ static const ASN1_ADB_TABLE CMS_ContentInfo_adbtbl[] = { | |||
1323 | static const ASN1_ADB CMS_ContentInfo_adb = { | 1323 | static const ASN1_ADB CMS_ContentInfo_adb = { |
1324 | .flags = 0, | 1324 | .flags = 0, |
1325 | .offset = offsetof(CMS_ContentInfo, contentType), | 1325 | .offset = offsetof(CMS_ContentInfo, contentType), |
1326 | .app_items = 0, | ||
1327 | .tbl = CMS_ContentInfo_adbtbl, | 1326 | .tbl = CMS_ContentInfo_adbtbl, |
1328 | .tblcount = sizeof(CMS_ContentInfo_adbtbl) / sizeof(ASN1_ADB_TABLE), | 1327 | .tblcount = sizeof(CMS_ContentInfo_adbtbl) / sizeof(ASN1_ADB_TABLE), |
1329 | .default_tt = &cms_default_tt, | 1328 | .default_tt = &cms_default_tt, |
diff --git a/src/lib/libcrypto/ec/ec_asn1.c b/src/lib/libcrypto/ec/ec_asn1.c index befeee99af..6ec8ab0874 100644 --- a/src/lib/libcrypto/ec/ec_asn1.c +++ b/src/lib/libcrypto/ec/ec_asn1.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_asn1.c,v 1.34 2021/08/31 20:14:40 tb Exp $ */ | 1 | /* $OpenBSD: ec_asn1.c,v 1.35 2022/01/14 08:16:13 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Nils Larsch for the OpenSSL project. | 3 | * Written by Nils Larsch for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -295,7 +295,6 @@ static const ASN1_ADB_TABLE X9_62_CHARACTERISTIC_TWO_adbtbl[] = { | |||
295 | static const ASN1_ADB X9_62_CHARACTERISTIC_TWO_adb = { | 295 | static const ASN1_ADB X9_62_CHARACTERISTIC_TWO_adb = { |
296 | .flags = 0, | 296 | .flags = 0, |
297 | .offset = offsetof(X9_62_CHARACTERISTIC_TWO, type), | 297 | .offset = offsetof(X9_62_CHARACTERISTIC_TWO, type), |
298 | .app_items = 0, | ||
299 | .tbl = X9_62_CHARACTERISTIC_TWO_adbtbl, | 298 | .tbl = X9_62_CHARACTERISTIC_TWO_adbtbl, |
300 | .tblcount = sizeof(X9_62_CHARACTERISTIC_TWO_adbtbl) / sizeof(ASN1_ADB_TABLE), | 299 | .tblcount = sizeof(X9_62_CHARACTERISTIC_TWO_adbtbl) / sizeof(ASN1_ADB_TABLE), |
301 | .default_tt = &char_two_def_tt, | 300 | .default_tt = &char_two_def_tt, |
@@ -387,7 +386,6 @@ static const ASN1_ADB_TABLE X9_62_FIELDID_adbtbl[] = { | |||
387 | static const ASN1_ADB X9_62_FIELDID_adb = { | 386 | static const ASN1_ADB X9_62_FIELDID_adb = { |
388 | .flags = 0, | 387 | .flags = 0, |
389 | .offset = offsetof(X9_62_FIELDID, fieldType), | 388 | .offset = offsetof(X9_62_FIELDID, fieldType), |
390 | .app_items = 0, | ||
391 | .tbl = X9_62_FIELDID_adbtbl, | 389 | .tbl = X9_62_FIELDID_adbtbl, |
392 | .tblcount = sizeof(X9_62_FIELDID_adbtbl) / sizeof(ASN1_ADB_TABLE), | 390 | .tblcount = sizeof(X9_62_FIELDID_adbtbl) / sizeof(ASN1_ADB_TABLE), |
393 | .default_tt = &fieldID_def_tt, | 391 | .default_tt = &fieldID_def_tt, |
diff --git a/src/lib/libcrypto/pkcs12/p12_asn.c b/src/lib/libcrypto/pkcs12/p12_asn.c index 3baf8f43d5..d152063e37 100644 --- a/src/lib/libcrypto/pkcs12/p12_asn.c +++ b/src/lib/libcrypto/pkcs12/p12_asn.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: p12_asn.c,v 1.9 2015/07/25 17:08:40 jsing Exp $ */ | 1 | /* $OpenBSD: p12_asn.c,v 1.10 2022/01/14 08:16:13 tb Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -230,7 +230,6 @@ static const ASN1_ADB_TABLE PKCS12_BAGS_adbtbl[] = { | |||
230 | static const ASN1_ADB PKCS12_BAGS_adb = { | 230 | static const ASN1_ADB PKCS12_BAGS_adb = { |
231 | .flags = 0, | 231 | .flags = 0, |
232 | .offset = offsetof(PKCS12_BAGS, type), | 232 | .offset = offsetof(PKCS12_BAGS, type), |
233 | .app_items = 0, | ||
234 | .tbl = PKCS12_BAGS_adbtbl, | 233 | .tbl = PKCS12_BAGS_adbtbl, |
235 | .tblcount = sizeof(PKCS12_BAGS_adbtbl) / sizeof(ASN1_ADB_TABLE), | 234 | .tblcount = sizeof(PKCS12_BAGS_adbtbl) / sizeof(ASN1_ADB_TABLE), |
236 | .default_tt = &bag_default_tt, | 235 | .default_tt = &bag_default_tt, |
@@ -369,7 +368,6 @@ static const ASN1_ADB_TABLE PKCS12_SAFEBAG_adbtbl[] = { | |||
369 | static const ASN1_ADB PKCS12_SAFEBAG_adb = { | 368 | static const ASN1_ADB PKCS12_SAFEBAG_adb = { |
370 | .flags = 0, | 369 | .flags = 0, |
371 | .offset = offsetof(PKCS12_SAFEBAG, type), | 370 | .offset = offsetof(PKCS12_SAFEBAG, type), |
372 | .app_items = 0, | ||
373 | .tbl = PKCS12_SAFEBAG_adbtbl, | 371 | .tbl = PKCS12_SAFEBAG_adbtbl, |
374 | .tblcount = sizeof(PKCS12_SAFEBAG_adbtbl) / sizeof(ASN1_ADB_TABLE), | 372 | .tblcount = sizeof(PKCS12_SAFEBAG_adbtbl) / sizeof(ASN1_ADB_TABLE), |
375 | .default_tt = &safebag_default_tt, | 373 | .default_tt = &safebag_default_tt, |
diff --git a/src/lib/libcrypto/pkcs7/pk7_asn1.c b/src/lib/libcrypto/pkcs7/pk7_asn1.c index 81e4a01f14..66659051a6 100644 --- a/src/lib/libcrypto/pkcs7/pk7_asn1.c +++ b/src/lib/libcrypto/pkcs7/pk7_asn1.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pk7_asn1.c,v 1.12 2015/07/25 15:33:06 jsing Exp $ */ | 1 | /* $OpenBSD: pk7_asn1.c,v 1.13 2022/01/14 08:16:13 tb Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2000. | 3 | * project 2000. |
4 | */ | 4 | */ |
@@ -146,7 +146,6 @@ static const ASN1_ADB_TABLE PKCS7_adbtbl[] = { | |||
146 | static const ASN1_ADB PKCS7_adb = { | 146 | static const ASN1_ADB PKCS7_adb = { |
147 | .flags = 0, | 147 | .flags = 0, |
148 | .offset = offsetof(PKCS7, type), | 148 | .offset = offsetof(PKCS7, type), |
149 | .app_items = 0, | ||
150 | .tbl = PKCS7_adbtbl, | 149 | .tbl = PKCS7_adbtbl, |
151 | .tblcount = sizeof(PKCS7_adbtbl) / sizeof(ASN1_ADB_TABLE), | 150 | .tblcount = sizeof(PKCS7_adbtbl) / sizeof(ASN1_ADB_TABLE), |
152 | .default_tt = &p7default_tt, | 151 | .default_tt = &p7default_tt, |
diff --git a/src/lib/libcrypto/x509/x509_cpols.c b/src/lib/libcrypto/x509/x509_cpols.c index 54b7178cb1..93527a4366 100644 --- a/src/lib/libcrypto/x509/x509_cpols.c +++ b/src/lib/libcrypto/x509/x509_cpols.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_cpols.c,v 1.3 2022/01/08 07:25:52 tb Exp $ */ | 1 | /* $OpenBSD: x509_cpols.c,v 1.4 2022/01/14 08:16:13 tb Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -233,7 +233,6 @@ static const ASN1_ADB_TABLE POLICYQUALINFO_adbtbl[] = { | |||
233 | static const ASN1_ADB POLICYQUALINFO_adb = { | 233 | static const ASN1_ADB POLICYQUALINFO_adb = { |
234 | .flags = 0, | 234 | .flags = 0, |
235 | .offset = offsetof(POLICYQUALINFO, pqualid), | 235 | .offset = offsetof(POLICYQUALINFO, pqualid), |
236 | .app_items = 0, | ||
237 | .tbl = POLICYQUALINFO_adbtbl, | 236 | .tbl = POLICYQUALINFO_adbtbl, |
238 | .tblcount = sizeof(POLICYQUALINFO_adbtbl) / sizeof(ASN1_ADB_TABLE), | 237 | .tblcount = sizeof(POLICYQUALINFO_adbtbl) / sizeof(ASN1_ADB_TABLE), |
239 | .default_tt = &policydefault_tt, | 238 | .default_tt = &policydefault_tt, |