From cc1ccb3c131e74fcf78b37d834cb6cf83175ab37 Mon Sep 17 00:00:00 2001 From: tb <> Date: Thu, 9 May 2024 20:43:36 +0000 Subject: Make the DH_METHOD static const --- src/lib/libcrypto/dh/dh_key.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/lib/libcrypto/dh/dh_key.c b/src/lib/libcrypto/dh/dh_key.c index ea17f54989..93b04f398f 100644 --- a/src/lib/libcrypto/dh/dh_key.c +++ b/src/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, -- cgit v1.2.3-55-g6feb