diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2018-05-18 18:16:40 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2018-05-18 18:16:40 +0000 |
commit | a69250de5e5de0ab6d64e1ba14687c34f79f2ef5 (patch) | |
tree | 88bcdb84742fadccdb15a087d0e62303519d9048 /lib/libcrypto/x509/x509.h | |
parent | 43c5fbd3871b7caac1d88ca3fdfc7b66789ca4f9 (diff) |
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.h | 6 |
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. */ |