From: tb Date: Thu, 9 May 2024 20:43:36 +0000 (+0000) Subject: Make the DH_METHOD static const X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fbadb84b37572b5d8113189b6ed7d1f3972aad7e;p=openbsd Make the DH_METHOD static const --- 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,