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/by_dir.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/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; |