summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/by_file.c
diff options
context:
space:
mode:
authortb <>2024-08-31 10:19:17 +0000
committertb <>2024-08-31 10:19:17 +0000
commit662de08c72cfea4b3d7d34030e55fa36c71679f4 (patch)
tree5abbbe9e721e606dcaa1424ace7bee5f6a000a13 /src/lib/libcrypto/x509/by_file.c
parent99f27f8fcbed150dc32592e175dace35b25a3ebf (diff)
downloadopenbsd-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_file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/by_file.c b/src/lib/libcrypto/x509/by_file.c
index bfab3761d3..9b0fd2542c 100644
--- a/src/lib/libcrypto/x509/by_file.c
+++ b/src/lib/libcrypto/x509/by_file.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: by_file.c,v 1.30 2023/12/25 22:14:23 tb Exp $ */ 1/* $OpenBSD: by_file.c,v 1.31 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 *
@@ -71,7 +71,7 @@
71static int by_file_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc, 71static int by_file_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc,
72 long argl, char **ret); 72 long argl, char **ret);
73 73
74static X509_LOOKUP_METHOD x509_file_lookup = { 74static const X509_LOOKUP_METHOD x509_file_lookup = {
75 .name = "Load file into cache", 75 .name = "Load file into cache",
76 .new_item = NULL, 76 .new_item = NULL,
77 .free = NULL, 77 .free = NULL,
@@ -79,7 +79,7 @@ static X509_LOOKUP_METHOD x509_file_lookup = {
79 .get_by_subject = NULL, 79 .get_by_subject = NULL,
80}; 80};
81 81
82X509_LOOKUP_METHOD * 82const X509_LOOKUP_METHOD *
83X509_LOOKUP_file(void) 83X509_LOOKUP_file(void)
84{ 84{
85 return &x509_file_lookup; 85 return &x509_file_lookup;