summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/pkcs8.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/pkcs8.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/pkcs8.c')
-rw-r--r--src/usr.bin/openssl/pkcs8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/pkcs8.c b/src/usr.bin/openssl/pkcs8.c
index 7938bf8b09..0629b20c37 100644
--- a/src/usr.bin/openssl/pkcs8.c
+++ b/src/usr.bin/openssl/pkcs8.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: pkcs8.c,v 1.13 2018/08/24 22:56:45 jmc Exp $ */ 1/* $OpenBSD: pkcs8.c,v 1.14 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 1999-2004. 3 * project 1999-2004.
4 */ 4 */
@@ -103,7 +103,7 @@ pkcs8_opt_v2(char *arg)
103 return (0); 103 return (0);
104} 104}
105 105
106static struct option pkcs8_options[] = { 106static const struct option pkcs8_options[] = {
107 { 107 {
108 .name = "in", 108 .name = "in",
109 .argname = "file", 109 .argname = "file",