From fbadb84b37572b5d8113189b6ed7d1f3972aad7e Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 9 May 2024 20:43:36 +0000 Subject: [PATCH] Make the DH_METHOD static const --- lib/libcrypto/dh/dh_key.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libcrypto/dh/dh_key.c b/lib/libcrypto/dh/dh_key.c index ea17f549892..93b04f398fe 100644 --- a/lib/libcrypto/dh/dh_key.c +++ b/lib/libcrypto/dh/dh_key.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dh_key.c,v 1.41 2024/05/09 20:40:42 tb Exp $ */ +/* $OpenBSD: dh_key.c,v 1.42 2024/05/09 20:43:36 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -223,7 +223,7 @@ DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh) } LCRYPTO_ALIAS(DH_compute_key); -static DH_METHOD dh_ossl = { +static const DH_METHOD dh_ossl = { .name = "OpenSSL DH Method", .generate_key = generate_key, .compute_key = compute_key, -- 2.20.1