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_mem.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_mem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/by_mem.c b/src/lib/libcrypto/x509/by_mem.c index ac3a24dea2..71afefa8a4 100644 --- a/src/lib/libcrypto/x509/by_mem.c +++ b/src/lib/libcrypto/x509/by_mem.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: by_mem.c,v 1.9 2023/12/25 22:14:23 tb Exp $ */ | 1 | /* $OpenBSD: by_mem.c,v 1.10 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 | * |
@@ -72,7 +72,7 @@ | |||
72 | 72 | ||
73 | static int by_mem_ctrl(X509_LOOKUP *, int, const char *, long, char **); | 73 | static int by_mem_ctrl(X509_LOOKUP *, int, const char *, long, char **); |
74 | 74 | ||
75 | static X509_LOOKUP_METHOD x509_mem_lookup = { | 75 | static const X509_LOOKUP_METHOD x509_mem_lookup = { |
76 | .name = "Load cert from memory", | 76 | .name = "Load cert from memory", |
77 | .new_item = NULL, | 77 | .new_item = NULL, |
78 | .free = NULL, | 78 | .free = NULL, |
@@ -80,7 +80,7 @@ static X509_LOOKUP_METHOD x509_mem_lookup = { | |||
80 | .get_by_subject = NULL, | 80 | .get_by_subject = NULL, |
81 | }; | 81 | }; |
82 | 82 | ||
83 | X509_LOOKUP_METHOD * | 83 | const X509_LOOKUP_METHOD * |
84 | X509_LOOKUP_mem(void) | 84 | X509_LOOKUP_mem(void) |
85 | { | 85 | { |
86 | return (&x509_mem_lookup); | 86 | return (&x509_mem_lookup); |