diff options
| author | tb <> | 2018-05-18 18:30:03 +0000 |
|---|---|---|
| committer | tb <> | 2018-05-18 18:30:03 +0000 |
| commit | 2c0fed57d798deeb5b436a401bcfe6524db1ddf7 (patch) | |
| tree | 90c6cf234d0bdffd62bca08dd2a5a40b63b6b1cc /src/lib/libcrypto/x509v3/x509v3.h | |
| parent | 5926c5b63c6dc5165df0ea09f9557f930bfb41ac (diff) | |
| download | openbsd-2c0fed57d798deeb5b436a401bcfe6524db1ddf7.tar.gz openbsd-2c0fed57d798deeb5b436a401bcfe6524db1ddf7.tar.bz2 openbsd-2c0fed57d798deeb5b436a401bcfe6524db1ddf7.zip | |
Add const qualifiers to the 'name', 'sname' and 'X509_PURPOSE *'
arguments of X509_PURPOSE_add(3), X509_PURPOSE_get0_name(3),
X509_PURPOSE_get0_sname(3), X509_PURPOSE_get_by_sname(3),
X509_PURPOSE_get_id(3), X509_PURPOSE_get_trust(3).
tested in a bulk build by sthen
ok jsing
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/x509v3/x509v3.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/lib/libcrypto/x509v3/x509v3.h b/src/lib/libcrypto/x509v3/x509v3.h index 429239424c..0d636d7bf4 100644 --- a/src/lib/libcrypto/x509v3/x509v3.h +++ b/src/lib/libcrypto/x509v3/x509v3.h | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: x509v3.h,v 1.25 2018/05/13 17:49:03 tb Exp $ */ | 1 | /* $OpenBSD: x509v3.h,v 1.26 2018/05/18 18:30:03 tb Exp $ */ |
| 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
| 3 | * project 1999. | 3 | * project 1999. |
| 4 | */ | 4 | */ |
| @@ -782,16 +782,16 @@ int X509_check_issued(X509 *issuer, X509 *subject); | |||
| 782 | int X509_check_akid(X509 *issuer, AUTHORITY_KEYID *akid); | 782 | int X509_check_akid(X509 *issuer, AUTHORITY_KEYID *akid); |
| 783 | int X509_PURPOSE_get_count(void); | 783 | int X509_PURPOSE_get_count(void); |
| 784 | X509_PURPOSE * X509_PURPOSE_get0(int idx); | 784 | X509_PURPOSE * X509_PURPOSE_get0(int idx); |
| 785 | int X509_PURPOSE_get_by_sname(char *sname); | 785 | int X509_PURPOSE_get_by_sname(const char *sname); |
| 786 | int X509_PURPOSE_get_by_id(int id); | 786 | int X509_PURPOSE_get_by_id(int id); |
| 787 | int X509_PURPOSE_add(int id, int trust, int flags, | 787 | int X509_PURPOSE_add(int id, int trust, int flags, |
| 788 | int (*ck)(const X509_PURPOSE *, const X509 *, int), | 788 | int (*ck)(const X509_PURPOSE *, const X509 *, int), |
| 789 | char *name, char *sname, void *arg); | 789 | const char *name, const char *sname, void *arg); |
| 790 | char *X509_PURPOSE_get0_name(X509_PURPOSE *xp); | 790 | char *X509_PURPOSE_get0_name(const X509_PURPOSE *xp); |
| 791 | char *X509_PURPOSE_get0_sname(X509_PURPOSE *xp); | 791 | char *X509_PURPOSE_get0_sname(const X509_PURPOSE *xp); |
| 792 | int X509_PURPOSE_get_trust(X509_PURPOSE *xp); | 792 | int X509_PURPOSE_get_trust(const X509_PURPOSE *xp); |
| 793 | void X509_PURPOSE_cleanup(void); | 793 | void X509_PURPOSE_cleanup(void); |
| 794 | int X509_PURPOSE_get_id(X509_PURPOSE *); | 794 | int X509_PURPOSE_get_id(const X509_PURPOSE *); |
| 795 | 795 | ||
| 796 | STACK_OF(OPENSSL_STRING) *X509_get1_email(X509 *x); | 796 | STACK_OF(OPENSSL_STRING) *X509_get1_email(X509 *x); |
| 797 | STACK_OF(OPENSSL_STRING) *X509_REQ_get1_email(X509_REQ *x); | 797 | STACK_OF(OPENSSL_STRING) *X509_REQ_get1_email(X509_REQ *x); |
