summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_lu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/x509/x509_lu.c')
-rw-r--r--src/lib/libcrypto/x509/x509_lu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/x509/x509_lu.c b/src/lib/libcrypto/x509/x509_lu.c
index 742eb4d2bf..5121ae31ec 100644
--- a/src/lib/libcrypto/x509/x509_lu.c
+++ b/src/lib/libcrypto/x509/x509_lu.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_lu.c,v 1.28 2018/03/17 15:43:32 tb Exp $ */ 1/* $OpenBSD: x509_lu.c,v 1.29 2018/05/18 17:46:17 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -154,8 +154,8 @@ X509_LOOKUP_by_issuer_serial(X509_LOOKUP *ctx, int type, X509_NAME *name,
154} 154}
155 155
156int 156int
157X509_LOOKUP_by_fingerprint(X509_LOOKUP *ctx, int type, unsigned char *bytes, 157X509_LOOKUP_by_fingerprint(X509_LOOKUP *ctx, int type,
158 int len, X509_OBJECT *ret) 158 const unsigned char *bytes, int len, X509_OBJECT *ret)
159{ 159{
160 if ((ctx->method == NULL) || (ctx->method->get_by_fingerprint == NULL)) 160 if ((ctx->method == NULL) || (ctx->method->get_by_fingerprint == NULL))
161 return X509_LU_FAIL; 161 return X509_LU_FAIL;
@@ -163,7 +163,7 @@ X509_LOOKUP_by_fingerprint(X509_LOOKUP *ctx, int type, unsigned char *bytes,
163} 163}
164 164
165int 165int
166X509_LOOKUP_by_alias(X509_LOOKUP *ctx, int type, char *str, int len, 166X509_LOOKUP_by_alias(X509_LOOKUP *ctx, int type, const char *str, int len,
167 X509_OBJECT *ret) 167 X509_OBJECT *ret)
168{ 168{
169 if ((ctx->method == NULL) || (ctx->method->get_by_alias == NULL)) 169 if ((ctx->method == NULL) || (ctx->method->get_by_alias == NULL))