summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2018-05-19 10:54:40 +0000
committertb <tb@openbsd.org>2018-05-19 10:54:40 +0000
commit2b25478e3aa4c506c93cffbdf08ca103f7c8d17e (patch)
treea7a1dc52b2347fdd76026fe1de68d81ce468eb95
parentAdditionally send no next header protocol 59 packets through the (diff)
downloadwireguard-openbsd-2b25478e3aa4c506c93cffbdf08ca103f7c8d17e.tar.xz
wireguard-openbsd-2b25478e3aa4c506c93cffbdf08ca103f7c8d17e.zip
Add const to the 'obj' argument of X509_EXTENSION_create_by_OBJ().
tested in a bulk build by sthen ok jsing
-rw-r--r--lib/libcrypto/x509/x509.h4
-rw-r--r--lib/libcrypto/x509/x509_v3.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/libcrypto/x509/x509.h b/lib/libcrypto/x509/x509.h
index e77d090d963..26568eacdd0 100644
--- a/lib/libcrypto/x509/x509.h
+++ b/lib/libcrypto/x509/x509.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509.h,v 1.65 2018/05/18 19:28:27 tb Exp $ */
+/* $OpenBSD: x509.h,v 1.66 2018/05/19 10:54:40 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1186,7 +1186,7 @@ int X509_REVOKED_add1_ext_i2d(X509_REVOKED *x, int nid, void *value,
X509_EXTENSION *X509_EXTENSION_create_by_NID(X509_EXTENSION **ex,
int nid, int crit, ASN1_OCTET_STRING *data);
X509_EXTENSION *X509_EXTENSION_create_by_OBJ(X509_EXTENSION **ex,
- ASN1_OBJECT *obj,int crit,ASN1_OCTET_STRING *data);
+ const ASN1_OBJECT *obj, int crit, ASN1_OCTET_STRING *data);
int X509_EXTENSION_set_object(X509_EXTENSION *ex,
const ASN1_OBJECT *obj);
int X509_EXTENSION_set_critical(X509_EXTENSION *ex, int crit);
diff --git a/lib/libcrypto/x509/x509_v3.c b/lib/libcrypto/x509/x509_v3.c
index 1b4e89e8932..524d5511ed2 100644
--- a/lib/libcrypto/x509/x509_v3.c
+++ b/lib/libcrypto/x509/x509_v3.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509_v3.c,v 1.16 2018/05/18 16:55:58 tb Exp $ */
+/* $OpenBSD: x509_v3.c,v 1.17 2018/05/19 10:54:40 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -209,8 +209,8 @@ X509_EXTENSION_create_by_NID(X509_EXTENSION **ex, int nid, int crit,
}
X509_EXTENSION *
-X509_EXTENSION_create_by_OBJ(X509_EXTENSION **ex, ASN1_OBJECT *obj, int crit,
- ASN1_OCTET_STRING *data)
+X509_EXTENSION_create_by_OBJ(X509_EXTENSION **ex, const ASN1_OBJECT *obj,
+ int crit, ASN1_OCTET_STRING *data)
{
X509_EXTENSION *ret;