summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_v3.c
diff options
context:
space:
mode:
authortb <>2018-05-18 16:55:58 +0000
committertb <>2018-05-18 16:55:58 +0000
commit3964dcb80ce6ec60aee2ff5e6bbf2afbc35cd93d (patch)
tree5387f6893327de7a2dcd5bbf210321c2aa11a1df /src/lib/libcrypto/x509/x509_v3.c
parente3ffb24eb2064c648f986f34ac6918a0e7163531 (diff)
downloadopenbsd-3964dcb80ce6ec60aee2ff5e6bbf2afbc35cd93d.tar.gz
openbsd-3964dcb80ce6ec60aee2ff5e6bbf2afbc35cd93d.tar.bz2
openbsd-3964dcb80ce6ec60aee2ff5e6bbf2afbc35cd93d.zip
X509_EXTENSION_get_critical(3) now takes a 'const ASN1_OBJECT *obj' and
X509_EXTENSION_set_object(3) a 'const X509_EXTENSION *ex'. tested in a bulk build by sthen, ok jsing
Diffstat (limited to 'src/lib/libcrypto/x509/x509_v3.c')
-rw-r--r--src/lib/libcrypto/x509/x509_v3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_v3.c b/src/lib/libcrypto/x509/x509_v3.c
index d56a602795..1b4e89e893 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.15 2018/05/13 10:25:06 tb Exp $ */ 1/* $OpenBSD: x509_v3.c,v 1.16 2018/05/18 16:55:58 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 *
@@ -240,7 +240,7 @@ err:
240} 240}
241 241
242int 242int
243X509_EXTENSION_set_object(X509_EXTENSION *ex, ASN1_OBJECT *obj) 243X509_EXTENSION_set_object(X509_EXTENSION *ex, const ASN1_OBJECT *obj)
244{ 244{
245 if ((ex == NULL) || (obj == NULL)) 245 if ((ex == NULL) || (obj == NULL))
246 return (0); 246 return (0);
@@ -288,7 +288,7 @@ X509_EXTENSION_get_data(X509_EXTENSION *ex)
288} 288}
289 289
290int 290int
291X509_EXTENSION_get_critical(X509_EXTENSION *ex) 291X509_EXTENSION_get_critical(const X509_EXTENSION *ex)
292{ 292{
293 if (ex == NULL) 293 if (ex == NULL)
294 return (0); 294 return (0);