diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/x509/by_dir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/by_dir.c b/src/lib/libcrypto/x509/by_dir.c index bb14e72806..2b2733a04b 100644 --- a/src/lib/libcrypto/x509/by_dir.c +++ b/src/lib/libcrypto/x509/by_dir.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: by_dir.c,v 1.47 2024/03/25 00:05:49 beck Exp $ */ | 1 | /* $OpenBSD: by_dir.c,v 1.48 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 | * |
@@ -96,7 +96,7 @@ static int add_cert_dir(BY_DIR *ctx, const char *dir, int type); | |||
96 | static int get_cert_by_subject(X509_LOOKUP *xl, int type, X509_NAME *name, | 96 | static int get_cert_by_subject(X509_LOOKUP *xl, int type, X509_NAME *name, |
97 | X509_OBJECT *ret); | 97 | X509_OBJECT *ret); |
98 | 98 | ||
99 | static X509_LOOKUP_METHOD x509_dir_lookup = { | 99 | static const X509_LOOKUP_METHOD x509_dir_lookup = { |
100 | .name = "Load certs from files in a directory", | 100 | .name = "Load certs from files in a directory", |
101 | .new_item = new_dir, | 101 | .new_item = new_dir, |
102 | .free = free_dir, | 102 | .free = free_dir, |
@@ -104,7 +104,7 @@ static X509_LOOKUP_METHOD x509_dir_lookup = { | |||
104 | .get_by_subject = get_cert_by_subject, | 104 | .get_by_subject = get_cert_by_subject, |
105 | }; | 105 | }; |
106 | 106 | ||
107 | X509_LOOKUP_METHOD * | 107 | const X509_LOOKUP_METHOD * |
108 | X509_LOOKUP_hash_dir(void) | 108 | X509_LOOKUP_hash_dir(void) |
109 | { | 109 | { |
110 | return &x509_dir_lookup; | 110 | return &x509_dir_lookup; |