From bc8d7db132e8ba050dd6707a72cea5d3b6976e03 Mon Sep 17 00:00:00 2001 From: guenther <> Date: Sun, 14 Jul 2019 03:30:46 +0000 Subject: Mark the initialized struct options arrays as both static and const. This moves them from .data to .data.rel.ro ok deraadt@ inoguchi@ --- src/usr.bin/openssl/pkeyutl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/usr.bin/openssl/pkeyutl.c') diff --git a/src/usr.bin/openssl/pkeyutl.c b/src/usr.bin/openssl/pkeyutl.c index b0800181b0..09a1a9755f 100644 --- a/src/usr.bin/openssl/pkeyutl.c +++ b/src/usr.bin/openssl/pkeyutl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pkeyutl.c,v 1.15 2019/02/17 15:01:08 inoguchi Exp $ */ +/* $OpenBSD: pkeyutl.c,v 1.16 2019/07/14 03:30:46 guenther Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2006. */ @@ -96,7 +96,7 @@ static int do_keyop(EVP_PKEY_CTX * ctx, int pkey_op, unsigned char *out, size_t * poutlen, unsigned char *in, size_t inlen); -struct option pkeyutl_options[] = { +static const struct option pkeyutl_options[] = { { .name = "asn1parse", .desc = "ASN.1 parse the output data", -- cgit v1.2.3-55-g6feb