diff options
author | FdaSilvaYY <fdasilvayy@gmail.com> | 2016-07-31 19:19:49 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-08-04 17:02:48 +0200 |
commit | cfc5e0aa739abeb8861d2127ca31addcc1149a3e (patch) | |
tree | 6c12d51182ce219c954ecaa29daba95fa1cf45f5 /crypto/x509/x509_lu.c | |
parent | 924212a67020be9ab7a62af6bddd9d4db2635ffc (diff) | |
download | openssl-cfc5e0aa739abeb8861d2127ca31addcc1149a3e.zip openssl-cfc5e0aa739abeb8861d2127ca31addcc1149a3e.tar.gz openssl-cfc5e0aa739abeb8861d2127ca31addcc1149a3e.tar.bz2 |
Constify inputs of two X509_LOOKUP_METHOD methods
... get_by_fingerprint() and get_by_alias()
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/x509/x509_lu.c')
-rw-r--r-- | crypto/x509/x509_lu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/x509/x509_lu.c b/crypto/x509/x509_lu.c index 79c68fe..952cbfb 100644 --- a/crypto/x509/x509_lu.c +++ b/crypto/x509/x509_lu.c @@ -101,7 +101,7 @@ int X509_LOOKUP_by_issuer_serial(X509_LOOKUP *ctx, X509_LOOKUP_TYPE type, } int X509_LOOKUP_by_fingerprint(X509_LOOKUP *ctx, X509_LOOKUP_TYPE type, - unsigned char *bytes, int len, + const unsigned char *bytes, int len, X509_OBJECT *ret) { if ((ctx->method == NULL) || (ctx->method->get_by_fingerprint == NULL)) @@ -110,7 +110,7 @@ int X509_LOOKUP_by_fingerprint(X509_LOOKUP *ctx, X509_LOOKUP_TYPE type, } int X509_LOOKUP_by_alias(X509_LOOKUP *ctx, X509_LOOKUP_TYPE type, - char *str, int len, X509_OBJECT *ret) + const char *str, int len, X509_OBJECT *ret) { if ((ctx->method == NULL) || (ctx->method->get_by_alias == NULL)) return 0; |