From 662de08c72cfea4b3d7d34030e55fa36c71679f4 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 31 Aug 2024 10:19:17 +0000 Subject: const correct X509_LOOKUP_METHOD With this another family of global tables becomes const as it should always have been. ok beck jsing --- src/lib/libcrypto/x509/by_file.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/libcrypto/x509/by_file.c') 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 @@ -/* $OpenBSD: by_file.c,v 1.30 2023/12/25 22:14:23 tb Exp $ */ +/* $OpenBSD: by_file.c,v 1.31 2024/08/31 10:19:17 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -71,7 +71,7 @@ static int by_file_ctrl(X509_LOOKUP *ctx, int cmd, const char *argc, long argl, char **ret); -static X509_LOOKUP_METHOD x509_file_lookup = { +static const X509_LOOKUP_METHOD x509_file_lookup = { .name = "Load file into cache", .new_item = NULL, .free = NULL, @@ -79,7 +79,7 @@ static X509_LOOKUP_METHOD x509_file_lookup = { .get_by_subject = NULL, }; -X509_LOOKUP_METHOD * +const X509_LOOKUP_METHOD * X509_LOOKUP_file(void) { return &x509_file_lookup; -- cgit v1.2.3-55-g6feb