diff options
author | tb <> | 2024-08-31 10:19:17 +0000 |
---|---|---|
committer | tb <> | 2024-08-31 10:19:17 +0000 |
commit | 662de08c72cfea4b3d7d34030e55fa36c71679f4 (patch) | |
tree | 5abbbe9e721e606dcaa1424ace7bee5f6a000a13 /src/lib/libcrypto/x509/x509_lu.c | |
parent | 99f27f8fcbed150dc32592e175dace35b25a3ebf (diff) | |
download | openbsd-662de08c72cfea4b3d7d34030e55fa36c71679f4.tar.gz openbsd-662de08c72cfea4b3d7d34030e55fa36c71679f4.tar.bz2 openbsd-662de08c72cfea4b3d7d34030e55fa36c71679f4.zip |
const correct X509_LOOKUP_METHOD
With this another family of global tables becomes const as it should
always have been.
ok beck jsing
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/x509/x509_lu.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_lu.c b/src/lib/libcrypto/x509/x509_lu.c index 0edcfca7d1..8ea1d158bf 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.65 2024/03/22 06:24:54 tb Exp $ */ | 1 | /* $OpenBSD: x509_lu.c,v 1.66 2024/08/31 10:19: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 | * |
@@ -67,7 +67,7 @@ | |||
67 | #include "x509_local.h" | 67 | #include "x509_local.h" |
68 | 68 | ||
69 | static X509_LOOKUP * | 69 | static X509_LOOKUP * |
70 | X509_LOOKUP_new(X509_LOOKUP_METHOD *method) | 70 | X509_LOOKUP_new(const X509_LOOKUP_METHOD *method) |
71 | { | 71 | { |
72 | X509_LOOKUP *lu; | 72 | X509_LOOKUP *lu; |
73 | 73 | ||
@@ -245,7 +245,7 @@ X509_STORE_up_ref(X509_STORE *store) | |||
245 | LCRYPTO_ALIAS(X509_STORE_up_ref); | 245 | LCRYPTO_ALIAS(X509_STORE_up_ref); |
246 | 246 | ||
247 | X509_LOOKUP * | 247 | X509_LOOKUP * |
248 | X509_STORE_add_lookup(X509_STORE *store, X509_LOOKUP_METHOD *method) | 248 | X509_STORE_add_lookup(X509_STORE *store, const X509_LOOKUP_METHOD *method) |
249 | { | 249 | { |
250 | STACK_OF(X509_LOOKUP) *sk; | 250 | STACK_OF(X509_LOOKUP) *sk; |
251 | X509_LOOKUP *lu; | 251 | X509_LOOKUP *lu; |