diff options
author | tb <> | 2021-11-24 19:22:14 +0000 |
---|---|---|
committer | tb <> | 2021-11-24 19:22:14 +0000 |
commit | 39b2e104eb5610c7651117e43e96c28139410e63 (patch) | |
tree | b85d56d24e3565dbc654302e08c9cce1fe46f303 /src | |
parent | 453bfde58c50b155dc0f23b2991982e21a34e106 (diff) | |
download | openbsd-39b2e104eb5610c7651117e43e96c28139410e63.tar.gz openbsd-39b2e104eb5610c7651117e43e96c28139410e63.tar.bz2 openbsd-39b2e104eb5610c7651117e43e96c28139410e63.zip |
Add certificate transparency methods to the standard extensions.
This way, CT extensions in certs will be parsed by the new CT code
when they are encountered. This gets rid of a lot of gibberish when
looking at a cert with 'openssl x509 -text -noout -in server.pem'
ok beck jsing
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/x509/ext_dat.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/ext_dat.h b/src/lib/libcrypto/x509/ext_dat.h index 18d60b761d..59815c95a6 100644 --- a/src/lib/libcrypto/x509/ext_dat.h +++ b/src/lib/libcrypto/x509/ext_dat.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ext_dat.h,v 1.3 2021/09/02 21:27:26 job Exp $ */ | 1 | /* $OpenBSD: ext_dat.h,v 1.4 2021/11/24 19:22:14 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 | */ |
@@ -73,6 +73,7 @@ extern X509V3_EXT_METHOD v3_crl_hold, v3_pci; | |||
73 | extern X509V3_EXT_METHOD v3_policy_mappings, v3_policy_constraints; | 73 | extern X509V3_EXT_METHOD v3_policy_mappings, v3_policy_constraints; |
74 | extern X509V3_EXT_METHOD v3_name_constraints, v3_inhibit_anyp, v3_idp; | 74 | extern X509V3_EXT_METHOD v3_name_constraints, v3_inhibit_anyp, v3_idp; |
75 | extern const X509V3_EXT_METHOD v3_addr, v3_asid; | 75 | extern const X509V3_EXT_METHOD v3_addr, v3_asid; |
76 | extern const X509V3_EXT_METHOD v3_ct_scts[3]; | ||
76 | 77 | ||
77 | /* This table will be searched using OBJ_bsearch so it *must* kept in | 78 | /* This table will be searched using OBJ_bsearch so it *must* kept in |
78 | * order of the ext_nid values. | 79 | * order of the ext_nid values. |
@@ -129,6 +130,11 @@ static const X509V3_EXT_METHOD *standard_exts[] = { | |||
129 | &v3_idp, | 130 | &v3_idp, |
130 | &v3_alt[2], | 131 | &v3_alt[2], |
131 | &v3_freshest_crl, | 132 | &v3_freshest_crl, |
133 | #ifndef OPENSSL_NO_CT | ||
134 | &v3_ct_scts[0], | ||
135 | &v3_ct_scts[1], | ||
136 | &v3_ct_scts[2], | ||
137 | #endif | ||
132 | }; | 138 | }; |
133 | 139 | ||
134 | /* Number of standard extensions */ | 140 | /* Number of standard extensions */ |