diff options
Diffstat (limited to 'src/lib/libcrypto/x509/x509_ext.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_ext.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libcrypto/x509/x509_ext.c b/src/lib/libcrypto/x509/x509_ext.c index 2903f2b7a1..21374a26e2 100644 --- a/src/lib/libcrypto/x509/x509_ext.c +++ b/src/lib/libcrypto/x509/x509_ext.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_ext.c,v 1.11 2018/05/18 18:37:23 tb Exp $ */ | 1 | /* $OpenBSD: x509_ext.c,v 1.12 2018/05/18 19:28:27 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -121,32 +121,32 @@ X509_CRL_add_ext(X509_CRL *x, X509_EXTENSION *ex, int loc) | |||
121 | } | 121 | } |
122 | 122 | ||
123 | int | 123 | int |
124 | X509_get_ext_count(X509 *x) | 124 | X509_get_ext_count(const X509 *x) |
125 | { | 125 | { |
126 | return (X509v3_get_ext_count(x->cert_info->extensions)); | 126 | return (X509v3_get_ext_count(x->cert_info->extensions)); |
127 | } | 127 | } |
128 | 128 | ||
129 | int | 129 | int |
130 | X509_get_ext_by_NID(X509 *x, int nid, int lastpos) | 130 | X509_get_ext_by_NID(const X509 *x, int nid, int lastpos) |
131 | { | 131 | { |
132 | return (X509v3_get_ext_by_NID(x->cert_info->extensions, nid, lastpos)); | 132 | return (X509v3_get_ext_by_NID(x->cert_info->extensions, nid, lastpos)); |
133 | } | 133 | } |
134 | 134 | ||
135 | int | 135 | int |
136 | X509_get_ext_by_OBJ(X509 *x, ASN1_OBJECT *obj, int lastpos) | 136 | X509_get_ext_by_OBJ(const X509 *x, const ASN1_OBJECT *obj, int lastpos) |
137 | { | 137 | { |
138 | return (X509v3_get_ext_by_OBJ(x->cert_info->extensions, obj, lastpos)); | 138 | return (X509v3_get_ext_by_OBJ(x->cert_info->extensions, obj, lastpos)); |
139 | } | 139 | } |
140 | 140 | ||
141 | int | 141 | int |
142 | X509_get_ext_by_critical(X509 *x, int crit, int lastpos) | 142 | X509_get_ext_by_critical(const X509 *x, int crit, int lastpos) |
143 | { | 143 | { |
144 | return (X509v3_get_ext_by_critical(x->cert_info->extensions, crit, | 144 | return (X509v3_get_ext_by_critical(x->cert_info->extensions, crit, |
145 | lastpos)); | 145 | lastpos)); |
146 | } | 146 | } |
147 | 147 | ||
148 | X509_EXTENSION * | 148 | X509_EXTENSION * |
149 | X509_get_ext(X509 *x, int loc) | 149 | X509_get_ext(const X509 *x, int loc) |
150 | { | 150 | { |
151 | return (X509v3_get_ext(x->cert_info->extensions, loc)); | 151 | return (X509v3_get_ext(x->cert_info->extensions, loc)); |
152 | } | 152 | } |
@@ -164,7 +164,7 @@ X509_add_ext(X509 *x, X509_EXTENSION *ex, int loc) | |||
164 | } | 164 | } |
165 | 165 | ||
166 | void * | 166 | void * |
167 | X509_get_ext_d2i(X509 *x, int nid, int *crit, int *idx) | 167 | X509_get_ext_d2i(const X509 *x, int nid, int *crit, int *idx) |
168 | { | 168 | { |
169 | return X509V3_get_d2i(x->cert_info->extensions, nid, crit, idx); | 169 | return X509V3_get_d2i(x->cert_info->extensions, nid, crit, idx); |
170 | } | 170 | } |