diff options
author | 2018-05-13 10:36:35 +0000 | |
---|---|---|
committer | 2018-05-13 10:36:35 +0000 | |
commit | 39f4a7f23f3d81a5b8735b93758c414d947b51f5 (patch) | |
tree | f8c13cd4fb3df5f73b9475542b145f2fef95bd37 /lib/libcrypto/x509 | |
parent | Add const qualifier to the X509_NAME *, ASN1_BIT_STRING *, and (diff) | |
download | wireguard-openbsd-39f4a7f23f3d81a5b8735b93758c414d947b51f5.tar.xz wireguard-openbsd-39f4a7f23f3d81a5b8735b93758c414d947b51f5.zip |
Add const qualifier to the argument of X509_get_issuer_name(3) and
X509_get_subject_name(3).
tested in a bulk build by sthen
ok jsing (as part of a larger diff)
Diffstat (limited to 'lib/libcrypto/x509')
-rw-r--r-- | lib/libcrypto/x509/x509.h | 6 | ||||
-rw-r--r-- | lib/libcrypto/x509/x509_cmp.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/libcrypto/x509/x509.h b/lib/libcrypto/x509/x509.h index 314236919bf..aac63ea92b9 100644 --- a/lib/libcrypto/x509/x509.h +++ b/lib/libcrypto/x509/x509.h @@ -1,4 +1,4 @@ -/* $OpenBSD: x509.h,v 1.48 2018/05/13 10:25:06 tb Exp $ */ +/* $OpenBSD: x509.h,v 1.49 2018/05/13 10:36:35 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -987,9 +987,9 @@ int X509_set_version(X509 *x, long version); int X509_set_serialNumber(X509 *x, ASN1_INTEGER *serial); ASN1_INTEGER * X509_get_serialNumber(X509 *x); int X509_set_issuer_name(X509 *x, X509_NAME *name); -X509_NAME * X509_get_issuer_name(X509 *a); +X509_NAME * X509_get_issuer_name(const X509 *a); int X509_set_subject_name(X509 *x, X509_NAME *name); -X509_NAME * X509_get_subject_name(X509 *a); +X509_NAME * X509_get_subject_name(const X509 *a); int X509_set_notBefore(X509 *x, const ASN1_TIME *tm); int X509_set1_notBefore(X509 *x, const ASN1_TIME *tm); int X509_set_notAfter(X509 *x, const ASN1_TIME *tm); diff --git a/lib/libcrypto/x509/x509_cmp.c b/lib/libcrypto/x509/x509_cmp.c index 73d060f4045..b8d1cd46803 100644 --- a/lib/libcrypto/x509/x509_cmp.c +++ b/lib/libcrypto/x509/x509_cmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_cmp.c,v 1.31 2018/05/01 19:01:28 tb Exp $ */ +/* $OpenBSD: x509_cmp.c,v 1.32 2018/05/13 10:36:35 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -145,7 +145,7 @@ X509_CRL_match(const X509_CRL *a, const X509_CRL *b) #endif X509_NAME * -X509_get_issuer_name(X509 *a) +X509_get_issuer_name(const X509 *a) { return (a->cert_info->issuer); } @@ -165,7 +165,7 @@ X509_issuer_name_hash_old(X509 *x) #endif X509_NAME * -X509_get_subject_name(X509 *a) +X509_get_subject_name(const X509 *a) { return (a->cert_info->subject); } |