summaryrefslogtreecommitdiffstats
path: root/lib/libcrypto/x509/x509.h
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2018-05-18 18:16:39 +0000
committertb <tb@openbsd.org>2018-05-18 18:16:39 +0000
commitcd40eaedad1795336ceb92175e445db7c7f2e38c (patch)
tree9bbad411dab156c6078557cb86dbec5c30c86d85 /lib/libcrypto/x509/x509.h
parentAdd a const qualififer to the 'name' argument of X509_NAME_get_entry(3) (diff)
downloadwireguard-openbsd-cd40eaedad1795336ceb92175e445db7c7f2e38c.tar.xz
wireguard-openbsd-cd40eaedad1795336ceb92175e445db7c7f2e38c.zip
Add const to the 'obj' argument of X509_NAME_get_text_by_OBJ(3).
tested in a bulk by sthen ok jsing
Diffstat (limited to 'lib/libcrypto/x509/x509.h')
-rw-r--r--lib/libcrypto/x509/x509.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcrypto/x509/x509.h b/lib/libcrypto/x509/x509.h
index 85270b1b653..80c7941663b 100644
--- a/lib/libcrypto/x509/x509.h
+++ b/lib/libcrypto/x509/x509.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509.h,v 1.57 2018/05/18 18:12:08 tb Exp $ */
+/* $OpenBSD: x509.h,v 1.58 2018/05/18 18:16:39 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1093,8 +1093,8 @@ int X509_REQ_print(BIO *bp,X509_REQ *req);
int X509_NAME_entry_count(const X509_NAME *name);
int X509_NAME_get_text_by_NID(X509_NAME *name, int nid,
char *buf,int len);
-int X509_NAME_get_text_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj,
- char *buf,int len);
+int X509_NAME_get_text_by_OBJ(X509_NAME *name,
+ const ASN1_OBJECT *obj, char *buf,int len);
/* NOTE: you should be passsing -1, not 0 as lastpos. The functions that use
* lastpos, search after that position on. */