diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-06-08 00:05:05 +0200 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-06-15 13:22:38 -0400 |
commit | 82643254d6d85e7875dbba0df85cea8751b1c3a0 (patch) | |
tree | 5cf9b077f9f45e8e64e814116dc9c04ba3140c1c /crypto/x509 | |
parent | bd227450d45317f82ae908f56e0fd833a50ee066 (diff) |
Constify X509_TRUST_add method.
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1215)
Diffstat (limited to 'crypto/x509')
-rw-r--r-- | crypto/x509/x509_trs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/x509/x509_trs.c b/crypto/x509/x509_trs.c index d736418cbe..f7d89bfd83 100644 --- a/crypto/x509/x509_trs.c +++ b/crypto/x509/x509_trs.c @@ -120,7 +120,7 @@ int X509_TRUST_set(int *t, int trust) } 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) { int idx; X509_TRUST *trtmp; @@ -201,17 +201,17 @@ void X509_TRUST_cleanup(void) trtable = NULL; } -int X509_TRUST_get_flags(X509_TRUST *xp) +int X509_TRUST_get_flags(const X509_TRUST *xp) { return xp->flags; } -char *X509_TRUST_get0_name(X509_TRUST *xp) +char *X509_TRUST_get0_name(const X509_TRUST *xp) { return xp->name; } -int X509_TRUST_get_trust(X509_TRUST *xp) +int X509_TRUST_get_trust(const X509_TRUST *xp) { return xp->trust; } |