summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/dsaparam.c
diff options
context:
space:
mode:
authorguenther <>2019-07-14 03:30:46 +0000
committerguenther <>2019-07-14 03:30:46 +0000
commitce9daaa0080f6ec467441aa485eb3f11ad6fb74a (patch)
tree5082b2b4a1bbd244a864f580178d406f6a694e72 /src/usr.bin/openssl/dsaparam.c
parente9ef26d0b799866960d5d8ea8c87d53cea6b50ff (diff)
downloadopenbsd-ce9daaa0080f6ec467441aa485eb3f11ad6fb74a.tar.gz
openbsd-ce9daaa0080f6ec467441aa485eb3f11ad6fb74a.tar.bz2
openbsd-ce9daaa0080f6ec467441aa485eb3f11ad6fb74a.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/dsaparam.c')
-rw-r--r--src/usr.bin/openssl/dsaparam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/dsaparam.c b/src/usr.bin/openssl/dsaparam.c
index 8b189cf559..3c2ac89800 100644
--- a/src/usr.bin/openssl/dsaparam.c
+++ b/src/usr.bin/openssl/dsaparam.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: dsaparam.c,v 1.10 2018/02/07 05:47:55 jsing Exp $ */ 1/* $OpenBSD: dsaparam.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 *
@@ -90,7 +90,7 @@ static struct {
90 int text; 90 int text;
91} dsaparam_config; 91} dsaparam_config;
92 92
93static struct option dsaparam_options[] = { 93static const struct option dsaparam_options[] = {
94 { 94 {
95 .name = "C", 95 .name = "C",
96 .desc = "Convert DSA parameters into C code", 96 .desc = "Convert DSA parameters into C code",