diff options
author | 2018-05-18 18:40:38 +0000 | |
---|---|---|
committer | 2018-05-18 18:40:38 +0000 | |
commit | ab05a41ac7b1054190f8cbc700097f4910401aa0 (patch) | |
tree | 3ae0d600380b098dcfe1db3c0b1c0afa09ab2eed /lib/libcrypto/x509/x509.h | |
parent | Add const qualifiers to the x and obj qualifiers of (diff) | |
download | wireguard-openbsd-ab05a41ac7b1054190f8cbc700097f4910401aa0.tar.xz wireguard-openbsd-ab05a41ac7b1054190f8cbc700097f4910401aa0.zip |
Add const qualifiers to the name and xp arguments of X509_TRUST_add(3),
X509_TRUST_get0_name(3), X509_TRUST_get_flags(3), and X509_TRUST_get_trust(3).
tested in a bulk build by sthen
ok jsing
Diffstat (limited to 'lib/libcrypto/x509/x509.h')
-rw-r--r-- | lib/libcrypto/x509/x509.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libcrypto/x509/x509.h b/lib/libcrypto/x509/x509.h index 2be1e3c0007..56c1b8a1a03 100644 --- a/lib/libcrypto/x509/x509.h +++ b/lib/libcrypto/x509/x509.h @@ -1,4 +1,4 @@ -/* $OpenBSD: x509.h,v 1.61 2018/05/18 18:37:23 tb Exp $ */ +/* $OpenBSD: x509.h,v 1.62 2018/05/18 18:40:38 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1318,11 +1318,11 @@ int X509_TRUST_get_count(void); X509_TRUST * X509_TRUST_get0(int idx); int X509_TRUST_get_by_id(int id); int X509_TRUST_add(int id, int flags, int (*ck)(X509_TRUST *, X509 *, int), - char *name, int arg1, void *arg2); + const char *name, int arg1, void *arg2); void X509_TRUST_cleanup(void); -int X509_TRUST_get_flags(X509_TRUST *xp); -char *X509_TRUST_get0_name(X509_TRUST *xp); -int X509_TRUST_get_trust(X509_TRUST *xp); +int X509_TRUST_get_flags(const X509_TRUST *xp); +char *X509_TRUST_get0_name(const X509_TRUST *xp); +int X509_TRUST_get_trust(const X509_TRUST *xp); int X509_up_ref(X509 *x); STACK_OF(X509) *X509_chain_up_ref(STACK_OF(X509) *chain); |