summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/gendh.c
diff options
context:
space:
mode:
authorguenther <>2019-07-14 03:30:46 +0000
committerguenther <>2019-07-14 03:30:46 +0000
commitbc8d7db132e8ba050dd6707a72cea5d3b6976e03 (patch)
tree5082b2b4a1bbd244a864f580178d406f6a694e72 /src/usr.bin/openssl/gendh.c
parent7e286c6ee458c5d54810f9952a2a61b1bc9538bc (diff)
downloadopenbsd-bc8d7db132e8ba050dd6707a72cea5d3b6976e03.tar.gz
openbsd-bc8d7db132e8ba050dd6707a72cea5d3b6976e03.tar.bz2
openbsd-bc8d7db132e8ba050dd6707a72cea5d3b6976e03.zip
Mark the initialized struct options arrays as both static and const.
This moves them from .data to .data.rel.ro ok deraadt@ inoguchi@
Diffstat (limited to 'src/usr.bin/openssl/gendh.c')
-rw-r--r--src/usr.bin/openssl/gendh.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/gendh.c b/src/usr.bin/openssl/gendh.c
index 18ff504e44..facc9248f3 100644
--- a/src/usr.bin/openssl/gendh.c
+++ b/src/usr.bin/openssl/gendh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: gendh.c,v 1.10 2018/02/07 05:47:55 jsing Exp $ */ 1/* $OpenBSD: gendh.c,v 1.11 2019/07/14 03:30:45 guenther 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 *
@@ -91,7 +91,7 @@ static struct {
91 char *outfile; 91 char *outfile;
92} gendh_config; 92} gendh_config;
93 93
94static struct option gendh_options[] = { 94static const struct option gendh_options[] = {
95 { 95 {
96 .name = "2", 96 .name = "2",
97 .desc = "Generate DH parameters with a generator value of 2 " 97 .desc = "Generate DH parameters with a generator value of 2 "