diff options
author | tb <> | 2018-05-13 10:25:06 +0000 |
---|---|---|
committer | tb <> | 2018-05-13 10:25:06 +0000 |
commit | 5a08ef9f8f680e09cfb2655898a8aa7e6077b03a (patch) | |
tree | 7a29d8732c419561fea204c6992dad3c9107de7b /src/lib | |
parent | 583a09c8fc1223d311c580a49606645740ab6048 (diff) | |
download | openbsd-5a08ef9f8f680e09cfb2655898a8aa7e6077b03a.tar.gz openbsd-5a08ef9f8f680e09cfb2655898a8aa7e6077b03a.tar.bz2 openbsd-5a08ef9f8f680e09cfb2655898a8aa7e6077b03a.zip |
Add const qualifier to the ASN1_OBJECT * parameter of
X509v3_get_ext_by_OBJ(3).
tested in a bulk build by sthen
ok jsing (as part of a larger diff)
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/x509/x509.h | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/x509/x509_v3.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/x509/x509.h b/src/lib/libcrypto/x509/x509.h index 349265891a..314236919b 100644 --- a/src/lib/libcrypto/x509/x509.h +++ b/src/lib/libcrypto/x509/x509.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509.h,v 1.47 2018/05/13 06:48:00 tb Exp $ */ | 1 | /* $OpenBSD: x509.h,v 1.48 2018/05/13 10:25:06 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 | * |
@@ -1130,7 +1130,7 @@ int X509v3_get_ext_count(const STACK_OF(X509_EXTENSION) *x); | |||
1130 | int X509v3_get_ext_by_NID(const STACK_OF(X509_EXTENSION) *x, | 1130 | int X509v3_get_ext_by_NID(const STACK_OF(X509_EXTENSION) *x, |
1131 | int nid, int lastpos); | 1131 | int nid, int lastpos); |
1132 | int X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *x, | 1132 | int X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *x, |
1133 | ASN1_OBJECT *obj,int lastpos); | 1133 | const ASN1_OBJECT *obj, int lastpos); |
1134 | int X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *x, | 1134 | int X509v3_get_ext_by_critical(const STACK_OF(X509_EXTENSION) *x, |
1135 | int crit, int lastpos); | 1135 | int crit, int lastpos); |
1136 | X509_EXTENSION *X509v3_get_ext(const STACK_OF(X509_EXTENSION) *x, int loc); | 1136 | X509_EXTENSION *X509v3_get_ext(const STACK_OF(X509_EXTENSION) *x, int loc); |
diff --git a/src/lib/libcrypto/x509/x509_v3.c b/src/lib/libcrypto/x509/x509_v3.c index 446ef319f8..d56a602795 100644 --- a/src/lib/libcrypto/x509/x509_v3.c +++ b/src/lib/libcrypto/x509/x509_v3.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_v3.c,v 1.14 2017/01/29 17:49:23 beck Exp $ */ | 1 | /* $OpenBSD: x509_v3.c,v 1.15 2018/05/13 10:25:06 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 | * |
@@ -86,8 +86,8 @@ X509v3_get_ext_by_NID(const STACK_OF(X509_EXTENSION) *x, int nid, int lastpos) | |||
86 | } | 86 | } |
87 | 87 | ||
88 | int | 88 | int |
89 | X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *sk, ASN1_OBJECT *obj, | 89 | X509v3_get_ext_by_OBJ(const STACK_OF(X509_EXTENSION) *sk, |
90 | int lastpos) | 90 | const ASN1_OBJECT *obj, int lastpos) |
91 | { | 91 | { |
92 | int n; | 92 | int n; |
93 | X509_EXTENSION *ex; | 93 | X509_EXTENSION *ex; |