diff options
Diffstat (limited to 'lib/libcrypto/asn1')
-rw-r--r-- | lib/libcrypto/asn1/bio_asn1.c | 20 | ||||
-rw-r--r-- | lib/libcrypto/asn1/x_crl.c | 7 |
2 files changed, 12 insertions, 15 deletions
diff --git a/lib/libcrypto/asn1/bio_asn1.c b/lib/libcrypto/asn1/bio_asn1.c index 36b82758ed3..327355eeda5 100644 --- a/lib/libcrypto/asn1/bio_asn1.c +++ b/lib/libcrypto/asn1/bio_asn1.c @@ -124,16 +124,16 @@ static int asn1_bio_setup_ex(BIO *b, BIO_ASN1_BUF_CTX *ctx, asn1_bio_state_t other_state); static BIO_METHOD methods_asn1 = { - BIO_TYPE_ASN1, - "asn1", - asn1_bio_write, - asn1_bio_read, - asn1_bio_puts, - asn1_bio_gets, - asn1_bio_ctrl, - asn1_bio_new, - asn1_bio_free, - asn1_bio_callback_ctrl, + .type = BIO_TYPE_ASN1, + .name = "asn1", + .bwrite = asn1_bio_write, + .bread = asn1_bio_read, + .bputs = asn1_bio_puts, + .bgets = asn1_bio_gets, + .ctrl = asn1_bio_ctrl, + .create = asn1_bio_new, + .destroy = asn1_bio_free, + .callback_ctrl = asn1_bio_callback_ctrl }; BIO_METHOD * diff --git a/lib/libcrypto/asn1/x_crl.c b/lib/libcrypto/asn1/x_crl.c index 674cca4a1c9..097a39c4d16 100644 --- a/lib/libcrypto/asn1/x_crl.c +++ b/lib/libcrypto/asn1/x_crl.c @@ -78,11 +78,8 @@ static int def_crl_lookup(X509_CRL *crl, X509_REVOKED **ret, ASN1_INTEGER *serial, X509_NAME *issuer); static X509_CRL_METHOD int_crl_meth = { - 0, - 0, - 0, - def_crl_lookup, - def_crl_verify + .crl_lookup = def_crl_lookup, + .crl_verify = def_crl_verify }; static const X509_CRL_METHOD *default_crl_method = &int_crl_meth; |