diff options
author | tb <> | 2023-04-17 08:43:16 +0000 |
---|---|---|
committer | tb <> | 2023-04-17 08:43:16 +0000 |
commit | 0e625a2f8a9b7894e07548dc5fcd238659a7da1d (patch) | |
tree | 23598e150b637701604569a3be2f9e9269a74816 /src/lib | |
parent | 4456727c6a8383f8ea84c89f64d4a5eb2253346c (diff) | |
download | openbsd-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.c | 11 |
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 | ||
75 | ASN1_PCTX default_pctx = { | 75 | static 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 | |||
84 | ASN1_PCTX * | 79 | ASN1_PCTX * |
85 | ASN1_PCTX_new(void) | 80 | ASN1_PCTX_new(void) |
86 | { | 81 | { |