diff options
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) |