summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2024-05-09 20:43:36 +0000
committertb <>2024-05-09 20:43:36 +0000
commitcc1ccb3c131e74fcf78b37d834cb6cf83175ab37 (patch)
tree2ad305ccd206d5db3fabdb8ce8f62a8189b32384 /src
parentd0813594aa688abaa37cdcaa84fdeb6b0634071d (diff)
downloadopenbsd-cc1ccb3c131e74fcf78b37d834cb6cf83175ab37.tar.gz
openbsd-cc1ccb3c131e74fcf78b37d834cb6cf83175ab37.tar.bz2
openbsd-cc1ccb3c131e74fcf78b37d834cb6cf83175ab37.zip
Make the DH_METHOD static const
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/dh/dh_key.c4
1 files changed, 2 insertions, 2 deletions
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 @@
1/* $OpenBSD: dh_key.c,v 1.41 2024/05/09 20:40:42 tb Exp $ */ 1/* $OpenBSD: dh_key.c,v 1.42 2024/05/09 20:43:36 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -223,7 +223,7 @@ DH_compute_key(unsigned char *key, const BIGNUM *pub_key, DH *dh)
223} 223}
224LCRYPTO_ALIAS(DH_compute_key); 224LCRYPTO_ALIAS(DH_compute_key);
225 225
226static DH_METHOD dh_ossl = { 226static const DH_METHOD dh_ossl = {
227 .name = "OpenSSL DH Method", 227 .name = "OpenSSL DH Method",
228 .generate_key = generate_key, 228 .generate_key = generate_key,
229 .compute_key = compute_key, 229 .compute_key = compute_key,