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_dir.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/libcrypto/x509/by_dir.c') 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 @@ -/* $OpenBSD: by_dir.c,v 1.47 2024/03/25 00:05:49 beck Exp $ */ +/* $OpenBSD: by_dir.c,v 1.48 2024/08/31 10:19:17 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -96,7 +96,7 @@ static int add_cert_dir(BY_DIR *ctx, const char *dir, int type); static int get_cert_by_subject(X509_LOOKUP *xl, int type, X509_NAME *name, X509_OBJECT *ret); -static X509_LOOKUP_METHOD x509_dir_lookup = { +static const X509_LOOKUP_METHOD x509_dir_lookup = { .name = "Load certs from files in a directory", .new_item = new_dir, .free = free_dir, @@ -104,7 +104,7 @@ static X509_LOOKUP_METHOD x509_dir_lookup = { .get_by_subject = get_cert_by_subject, }; -X509_LOOKUP_METHOD * +const X509_LOOKUP_METHOD * X509_LOOKUP_hash_dir(void) { return &x509_dir_lookup; -- cgit v1.2.3-55-g6feb