diff options
author | 2018-05-18 14:19:46 +0000 | |
---|---|---|
committer | 2018-05-18 14:19:46 +0000 | |
commit | a55d9c41641713c66c870a4de6535187ae4f153c (patch) | |
tree | ec492c8f4e85e8ffd46da0a99c340b162b0e62da /lib/libcrypto/x509/x509_ext.c | |
parent | Allow to omit the listen port configuration. Default to port 80, tls port 443. (diff) | |
download | wireguard-openbsd-a55d9c41641713c66c870a4de6535187ae4f153c.tar.xz wireguard-openbsd-a55d9c41641713c66c870a4de6535187ae4f153c.zip |
Add const qualifiers to the X509_CRL *x and ASN1_OBJECT *obj arguments of
X509_CRL_get_ext_count(3), X509_CRL_get_ext_by_NID(3),
X509_CRL_get_ext_by_OBJ(3), X509_CRL_get_ext_by_critical(3),
X509_CRL_get_ext(3), X509_CRL_get_ext_d2i(3).
ok jsing
Diffstat (limited to 'lib/libcrypto/x509/x509_ext.c')
-rw-r--r-- | lib/libcrypto/x509/x509_ext.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libcrypto/x509/x509_ext.c b/lib/libcrypto/x509/x509_ext.c index e90befaba11..a0f85426efc 100644 --- a/lib/libcrypto/x509/x509_ext.c +++ b/lib/libcrypto/x509/x509_ext.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_ext.c,v 1.9 2015/02/10 08:33:10 jsing Exp $ */ +/* $OpenBSD: x509_ext.c,v 1.10 2018/05/18 14:19:46 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -66,31 +66,31 @@ #include <openssl/x509v3.h> int -X509_CRL_get_ext_count(X509_CRL *x) +X509_CRL_get_ext_count(const X509_CRL *x) { return (X509v3_get_ext_count(x->crl->extensions)); } int -X509_CRL_get_ext_by_NID(X509_CRL *x, int nid, int lastpos) +X509_CRL_get_ext_by_NID(const X509_CRL *x, int nid, int lastpos) { return (X509v3_get_ext_by_NID(x->crl->extensions, nid, lastpos)); } int -X509_CRL_get_ext_by_OBJ(X509_CRL *x, ASN1_OBJECT *obj, int lastpos) +X509_CRL_get_ext_by_OBJ(const X509_CRL *x, const ASN1_OBJECT *obj, int lastpos) { return (X509v3_get_ext_by_OBJ(x->crl->extensions, obj, lastpos)); } int -X509_CRL_get_ext_by_critical(X509_CRL *x, int crit, int lastpos) +X509_CRL_get_ext_by_critical(const X509_CRL *x, int crit, int lastpos) { return (X509v3_get_ext_by_critical(x->crl->extensions, crit, lastpos)); } X509_EXTENSION * -X509_CRL_get_ext(X509_CRL *x, int loc) +X509_CRL_get_ext(const X509_CRL *x, int loc) { return (X509v3_get_ext(x->crl->extensions, loc)); } @@ -102,7 +102,7 @@ X509_CRL_delete_ext(X509_CRL *x, int loc) } void * -X509_CRL_get_ext_d2i(X509_CRL *x, int nid, int *crit, int *idx) +X509_CRL_get_ext_d2i(const X509_CRL *x, int nid, int *crit, int *idx) { return X509V3_get_d2i(x->crl->extensions, nid, crit, idx); } |