summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/rsautl.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/rsautl.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/rsautl.c')
-rw-r--r--src/usr.bin/openssl/rsautl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/rsautl.c b/src/usr.bin/openssl/rsautl.c
index 7d7434c634..06d7a81ae0 100644
--- a/src/usr.bin/openssl/rsautl.c
+++ b/src/usr.bin/openssl/rsautl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rsautl.c,v 1.17 2019/02/04 11:21:05 tb Exp $ */ 1/* $OpenBSD: rsautl.c,v 1.18 2019/07/14 03:30:46 guenther Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2000. 3 * project 2000.
4 */ 4 */
@@ -89,7 +89,7 @@ struct {
89 int rsa_mode; 89 int rsa_mode;
90} rsautl_config; 90} rsautl_config;
91 91
92struct option rsautl_options[] = { 92static const struct option rsautl_options[] = {
93 { 93 {
94 .name = "asn1parse", 94 .name = "asn1parse",
95 .desc = "ASN.1 parse the output data", 95 .desc = "ASN.1 parse the output data",