diff options
author | beck <> | 2000-03-19 11:13:58 +0000 |
---|---|---|
committer | beck <> | 2000-03-19 11:13:58 +0000 |
commit | 796d609550df3a33fc11468741c5d2f6d3df4c11 (patch) | |
tree | 6c6d539061caa20372dad0ac4ddb1dfae2fbe7fe /src/lib/libcrypto/x509/x509_ext.c | |
parent | 5be3114c1fd7e0dfea1e38d3abb4cbba75244419 (diff) | |
download | openbsd-796d609550df3a33fc11468741c5d2f6d3df4c11.tar.gz openbsd-796d609550df3a33fc11468741c5d2f6d3df4c11.tar.bz2 openbsd-796d609550df3a33fc11468741c5d2f6d3df4c11.zip |
OpenSSL 0.9.5 merge
*warning* this bumps shared lib minors for libssl and libcrypto from 2.1 to 2.2
if you are using the ssl26 packages for ssh and other things to work you will
need to get new ones (see ~beck/libsslsnap/<arch>) on cvs or ~beck/src-patent.tar.gz on cvs
Diffstat (limited to 'src/lib/libcrypto/x509/x509_ext.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_ext.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/libcrypto/x509/x509_ext.c b/src/lib/libcrypto/x509/x509_ext.c index f8565a60b2..2955989807 100644 --- a/src/lib/libcrypto/x509/x509_ext.c +++ b/src/lib/libcrypto/x509/x509_ext.c | |||
@@ -63,6 +63,8 @@ | |||
63 | #include <openssl/objects.h> | 63 | #include <openssl/objects.h> |
64 | #include <openssl/evp.h> | 64 | #include <openssl/evp.h> |
65 | #include <openssl/x509.h> | 65 | #include <openssl/x509.h> |
66 | #include <openssl/x509v3.h> | ||
67 | |||
66 | 68 | ||
67 | int X509_CRL_get_ext_count(X509_CRL *x) | 69 | int X509_CRL_get_ext_count(X509_CRL *x) |
68 | { | 70 | { |
@@ -94,6 +96,11 @@ X509_EXTENSION *X509_CRL_delete_ext(X509_CRL *x, int loc) | |||
94 | return(X509v3_delete_ext(x->crl->extensions,loc)); | 96 | return(X509v3_delete_ext(x->crl->extensions,loc)); |
95 | } | 97 | } |
96 | 98 | ||
99 | void *X509_CRL_get_ext_d2i(X509_CRL *x, int nid, int *crit, int *idx) | ||
100 | { | ||
101 | return X509V3_get_d2i(x->crl->extensions, nid, crit, idx); | ||
102 | } | ||
103 | |||
97 | int X509_CRL_add_ext(X509_CRL *x, X509_EXTENSION *ex, int loc) | 104 | int X509_CRL_add_ext(X509_CRL *x, X509_EXTENSION *ex, int loc) |
98 | { | 105 | { |
99 | return(X509v3_add_ext(&(x->crl->extensions),ex,loc) != NULL); | 106 | return(X509v3_add_ext(&(x->crl->extensions),ex,loc) != NULL); |
@@ -134,6 +141,11 @@ int X509_add_ext(X509 *x, X509_EXTENSION *ex, int loc) | |||
134 | return(X509v3_add_ext(&(x->cert_info->extensions),ex,loc) != NULL); | 141 | return(X509v3_add_ext(&(x->cert_info->extensions),ex,loc) != NULL); |
135 | } | 142 | } |
136 | 143 | ||
144 | void *X509_get_ext_d2i(X509 *x, int nid, int *crit, int *idx) | ||
145 | { | ||
146 | return X509V3_get_d2i(x->cert_info->extensions, nid, crit, idx); | ||
147 | } | ||
148 | |||
137 | int X509_REVOKED_get_ext_count(X509_REVOKED *x) | 149 | int X509_REVOKED_get_ext_count(X509_REVOKED *x) |
138 | { | 150 | { |
139 | return(X509v3_get_ext_count(x->extensions)); | 151 | return(X509v3_get_ext_count(x->extensions)); |
@@ -170,5 +182,10 @@ int X509_REVOKED_add_ext(X509_REVOKED *x, X509_EXTENSION *ex, int loc) | |||
170 | return(X509v3_add_ext(&(x->extensions),ex,loc) != NULL); | 182 | return(X509v3_add_ext(&(x->extensions),ex,loc) != NULL); |
171 | } | 183 | } |
172 | 184 | ||
185 | void *X509_REVOKED_get_ext_d2i(X509_REVOKED *x, int nid, int *crit, int *idx) | ||
186 | { | ||
187 | return X509V3_get_d2i(x->extensions, nid, crit, idx); | ||
188 | } | ||
189 | |||
173 | IMPLEMENT_STACK_OF(X509_EXTENSION) | 190 | IMPLEMENT_STACK_OF(X509_EXTENSION) |
174 | IMPLEMENT_ASN1_SET_OF(X509_EXTENSION) | 191 | IMPLEMENT_ASN1_SET_OF(X509_EXTENSION) |