summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/nsseq.c
diff options
context:
space:
mode:
authorjsing <>2015-02-11 04:00:39 +0000
committerjsing <>2015-02-11 04:00:39 +0000
commit049efcbf6850b4b7cb7b66f303c7f35a88efa2ff (patch)
tree9a3e16feaaa38e364b197e209eb7978d0cea7d57 /src/lib/libcrypto/asn1/nsseq.c
parent4a2309d8058f17b675c178c4996662495981382e (diff)
downloadopenbsd-049efcbf6850b4b7cb7b66f303c7f35a88efa2ff.tar.gz
openbsd-049efcbf6850b4b7cb7b66f303c7f35a88efa2ff.tar.bz2
openbsd-049efcbf6850b4b7cb7b66f303c7f35a88efa2ff.zip
Remove initialisers with default values from the ASN1 data structures.
Minor changes in generated assembly due to the compiler swapping from .quad 0/.long 0 to .zero, along with changes due to line numbering.
Diffstat (limited to 'src/lib/libcrypto/asn1/nsseq.c')
-rw-r--r--src/lib/libcrypto/asn1/nsseq.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/lib/libcrypto/asn1/nsseq.c b/src/lib/libcrypto/asn1/nsseq.c
index dff9b189d9..8b39278692 100644
--- a/src/lib/libcrypto/asn1/nsseq.c
+++ b/src/lib/libcrypto/asn1/nsseq.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: nsseq.c,v 1.9 2015/02/11 03:39:51 jsing Exp $ */ 1/* $OpenBSD: nsseq.c,v 1.10 2015/02/11 04:00:39 jsing 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. 3 * project 1999.
4 */ 4 */
@@ -76,24 +76,16 @@ nsseq_cb(int operation, ASN1_VALUE **pval, const ASN1_ITEM *it, void *exarg)
76/* Netscape certificate sequence structure */ 76/* Netscape certificate sequence structure */
77 77
78static const ASN1_AUX NETSCAPE_CERT_SEQUENCE_aux = { 78static const ASN1_AUX NETSCAPE_CERT_SEQUENCE_aux = {
79 .app_data = NULL,
80 .flags = 0,
81 .ref_offset = 0,
82 .ref_lock = 0,
83 .asn1_cb = nsseq_cb, 79 .asn1_cb = nsseq_cb,
84 .enc_offset = 0,
85}; 80};
86static const ASN1_TEMPLATE NETSCAPE_CERT_SEQUENCE_seq_tt[] = { 81static const ASN1_TEMPLATE NETSCAPE_CERT_SEQUENCE_seq_tt[] = {
87 { 82 {
88 .flags = 0,
89 .tag = 0,
90 .offset = offsetof(NETSCAPE_CERT_SEQUENCE, type), 83 .offset = offsetof(NETSCAPE_CERT_SEQUENCE, type),
91 .field_name = "type", 84 .field_name = "type",
92 .item = &ASN1_OBJECT_it, 85 .item = &ASN1_OBJECT_it,
93 }, 86 },
94 { 87 {
95 .flags = ASN1_TFLG_EXPLICIT | ASN1_TFLG_SEQUENCE_OF | ASN1_TFLG_OPTIONAL, 88 .flags = ASN1_TFLG_EXPLICIT | ASN1_TFLG_SEQUENCE_OF | ASN1_TFLG_OPTIONAL,
96 .tag = 0,
97 .offset = offsetof(NETSCAPE_CERT_SEQUENCE, certs), 89 .offset = offsetof(NETSCAPE_CERT_SEQUENCE, certs),
98 .field_name = "certs", 90 .field_name = "certs",
99 .item = &X509_it, 91 .item = &X509_it,