diff options
author | 2018-05-18 17:56:12 +0000 | |
---|---|---|
committer | 2018-05-18 17:56:12 +0000 | |
commit | 6014a7bb8fdc3eaa962c926aa94f44f6d97dca68 (patch) | |
tree | 87d13c18686a238c8a8840dd951fe86cd0f898db | |
parent | Add const qualifiers to the 'obj' and 'bytes' arguments of (diff) | |
download | wireguard-openbsd-6014a7bb8fdc3eaa962c926aa94f44f6d97dca68.tar.xz wireguard-openbsd-6014a7bb8fdc3eaa962c926aa94f44f6d97dca68.zip |
Add const to the argument of X509_NAME_ENTRY_get_data(3).
Tested in a bulk build by sthen
ok jsing
-rw-r--r-- | lib/libcrypto/x509/x509.h | 4 | ||||
-rw-r--r-- | lib/libcrypto/x509/x509name.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/libcrypto/x509/x509.h b/lib/libcrypto/x509/x509.h index 44585c943fb..0b3a63b6ec6 100644 --- a/lib/libcrypto/x509/x509.h +++ b/lib/libcrypto/x509/x509.h @@ -1,4 +1,4 @@ -/* $OpenBSD: x509.h,v 1.52 2018/05/18 17:53:09 tb Exp $ */ +/* $OpenBSD: x509.h,v 1.53 2018/05/18 17:56:12 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1123,7 +1123,7 @@ int X509_NAME_ENTRY_set_object(X509_NAME_ENTRY *ne, int X509_NAME_ENTRY_set_data(X509_NAME_ENTRY *ne, int type, const unsigned char *bytes, int len); ASN1_OBJECT * X509_NAME_ENTRY_get_object(const X509_NAME_ENTRY *ne); -ASN1_STRING * X509_NAME_ENTRY_get_data(X509_NAME_ENTRY *ne); +ASN1_STRING * X509_NAME_ENTRY_get_data(const X509_NAME_ENTRY *ne); int X509_NAME_ENTRY_set(const X509_NAME_ENTRY *ne); int X509v3_get_ext_count(const STACK_OF(X509_EXTENSION) *x); diff --git a/lib/libcrypto/x509/x509name.c b/lib/libcrypto/x509/x509name.c index 678b073a399..9ff2a907b4e 100644 --- a/lib/libcrypto/x509/x509name.c +++ b/lib/libcrypto/x509/x509name.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509name.c,v 1.18 2018/05/18 17:53:09 tb Exp $ */ +/* $OpenBSD: x509name.c,v 1.19 2018/05/18 17:56:12 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -396,7 +396,7 @@ X509_NAME_ENTRY_get_object(const X509_NAME_ENTRY *ne) } ASN1_STRING * -X509_NAME_ENTRY_get_data(X509_NAME_ENTRY *ne) +X509_NAME_ENTRY_get_data(const X509_NAME_ENTRY *ne) { if (ne == NULL) return (NULL); |