diff options
author | 2018-05-18 18:02:07 +0000 | |
---|---|---|
committer | 2018-05-18 18:02:07 +0000 | |
commit | 3df650afe229ce91c6bdad35a407502c0065ea1d (patch) | |
tree | f0c882c0be87cc284c71132c1d1ea426c9f8e19e /lib | |
parent | Add a const qualifier to the 'X509_NAME_ENTRY *ne' argument of (diff) | |
download | wireguard-openbsd-3df650afe229ce91c6bdad35a407502c0065ea1d.tar.xz wireguard-openbsd-3df650afe229ce91c6bdad35a407502c0065ea1d.zip |
The 'bytes' arguments of X509_NAME_add_entry_by_NID(3) and
X509_NAME_add_entry_by_OBJ(3) are now const.
tested in a bulk build by sthen
ok jsing
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/x509/x509.h | 6 | ||||
-rw-r--r-- | lib/libcrypto/x509/x509name.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/libcrypto/x509/x509.h b/lib/libcrypto/x509/x509.h index 43af6266136..788d97aaa4a 100644 --- a/lib/libcrypto/x509/x509.h +++ b/lib/libcrypto/x509/x509.h @@ -1,4 +1,4 @@ -/* $OpenBSD: x509.h,v 1.54 2018/05/18 17:59:16 tb Exp $ */ +/* $OpenBSD: x509.h,v 1.55 2018/05/18 18:02:07 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1106,9 +1106,9 @@ X509_NAME_ENTRY *X509_NAME_delete_entry(X509_NAME *name, int loc); int X509_NAME_add_entry(X509_NAME *name, const X509_NAME_ENTRY *ne, int loc, int set); int X509_NAME_add_entry_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj, int type, - unsigned char *bytes, int len, int loc, int set); + const unsigned char *bytes, int len, int loc, int set); int X509_NAME_add_entry_by_NID(X509_NAME *name, int nid, int type, - unsigned char *bytes, int len, int loc, int set); + const unsigned char *bytes, int len, int loc, int set); X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_txt(X509_NAME_ENTRY **ne, const char *field, int type, const unsigned char *bytes, int len); X509_NAME_ENTRY *X509_NAME_ENTRY_create_by_NID(X509_NAME_ENTRY **ne, int nid, diff --git a/lib/libcrypto/x509/x509name.c b/lib/libcrypto/x509/x509name.c index fc804f54286..0c932133527 100644 --- a/lib/libcrypto/x509/x509name.c +++ b/lib/libcrypto/x509/x509name.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509name.c,v 1.20 2018/05/18 17:59:16 tb Exp $ */ +/* $OpenBSD: x509name.c,v 1.21 2018/05/18 18:02:07 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -189,7 +189,7 @@ X509_NAME_delete_entry(X509_NAME *name, int loc) int X509_NAME_add_entry_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj, int type, - unsigned char *bytes, int len, int loc, int set) + const unsigned char *bytes, int len, int loc, int set) { X509_NAME_ENTRY *ne; int ret; @@ -204,7 +204,7 @@ X509_NAME_add_entry_by_OBJ(X509_NAME *name, ASN1_OBJECT *obj, int type, int X509_NAME_add_entry_by_NID(X509_NAME *name, int nid, int type, - unsigned char *bytes, int len, int loc, int set) + const unsigned char *bytes, int len, int loc, int set) { X509_NAME_ENTRY *ne; int ret; |