summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2020-12-05 19:33:38 +0000
committertb <>2020-12-05 19:33:38 +0000
commite1da3120ffbd054d0d99012bcb8ce4be043c1667 (patch)
tree102b1a540c4a42454622ea002bfe06fd2aff018a /src/lib
parenteba5b622a3ad6c48a28a09d15ca32cdfac91f91b (diff)
downloadopenbsd-e1da3120ffbd054d0d99012bcb8ce4be043c1667.tar.gz
openbsd-e1da3120ffbd054d0d99012bcb8ce4be043c1667.tar.bz2
openbsd-e1da3120ffbd054d0d99012bcb8ce4be043c1667.zip
Mark nid_list[] const. This moves 116 bytes to .rodata.
ok jsing kn
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libssl/t1_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/t1_lib.c b/src/lib/libssl/t1_lib.c
index 10ca80c4fe..7c9aba90d0 100644
--- a/src/lib/libssl/t1_lib.c
+++ b/src/lib/libssl/t1_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: t1_lib.c,v 1.178 2020/10/11 12:45:52 guenther Exp $ */ 1/* $OpenBSD: t1_lib.c,v 1.179 2020/12/05 19:33:38 tb 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 *
@@ -151,7 +151,7 @@ tls1_clear(SSL *s)
151 s->version = s->method->internal->version; 151 s->version = s->method->internal->version;
152} 152}
153 153
154static int nid_list[] = { 154static const int nid_list[] = {
155 NID_sect163k1, /* sect163k1 (1) */ 155 NID_sect163k1, /* sect163k1 (1) */
156 NID_sect163r1, /* sect163r1 (2) */ 156 NID_sect163r1, /* sect163r1 (2) */
157 NID_sect163r2, /* sect163r2 (3) */ 157 NID_sect163r2, /* sect163r2 (3) */