summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2023-04-17 08:43:16 +0000
committertb <>2023-04-17 08:43:16 +0000
commit0e625a2f8a9b7894e07548dc5fcd238659a7da1d (patch)
tree23598e150b637701604569a3be2f9e9269a74816 /src/lib
parent4456727c6a8383f8ea84c89f64d4a5eb2253346c (diff)
downloadopenbsd-0e625a2f8a9b7894e07548dc5fcd238659a7da1d.tar.gz
openbsd-0e625a2f8a9b7894e07548dc5fcd238659a7da1d.tar.bz2
openbsd-0e625a2f8a9b7894e07548dc5fcd238659a7da1d.zip
Use C99 initializers for the default_pctx and mark it static const
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/asn1/tasn_prn.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/lib/libcrypto/asn1/tasn_prn.c b/src/lib/libcrypto/asn1/tasn_prn.c
index 7f93e4876a..9652a9766a 100644
--- a/src/lib/libcrypto/asn1/tasn_prn.c
+++ b/src/lib/libcrypto/asn1/tasn_prn.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tasn_prn.c,v 1.23 2022/11/26 16:08:50 tb Exp $ */ 1/* $OpenBSD: tasn_prn.c,v 1.24 2023/04/17 08:43:16 tb 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 */
@@ -72,15 +72,10 @@
72 72
73/* ASN1_PCTX routines */ 73/* ASN1_PCTX routines */
74 74
75ASN1_PCTX default_pctx = { 75static const ASN1_PCTX default_pctx = {
76 ASN1_PCTX_FLAGS_SHOW_ABSENT, /* flags */ 76 .flags = ASN1_PCTX_FLAGS_SHOW_ABSENT,
77 0, /* nm_flags */
78 0, /* cert_flags */
79 0, /* oid_flags */
80 0 /* str_flags */
81}; 77};
82 78
83
84ASN1_PCTX * 79ASN1_PCTX *
85ASN1_PCTX_new(void) 80ASN1_PCTX_new(void)
86{ 81{