Commit c0ec5ce0 authored by Marc's avatar Marc Committed by Dmitry Belyavskiy

Use _get0_ functions instead of _get_.

Fix build error on some platforms
Reviewed-by: default avatarMatt Caswell <matt@openssl.org>
Reviewed-by: default avatarDmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/10757)
parent 2f84d2a1
......@@ -3186,9 +3186,9 @@ static void print_stuff(BIO *bio, SSL *s, int full)
EVP_PKEY_free(public_key);
}
BIO_printf(bio, " v:NotBefore: ");
ASN1_TIME_print(bio, X509_get_notBefore(sk_X509_value(sk, i)));
ASN1_TIME_print(bio, X509_get0_notBefore(sk_X509_value(sk, i)));
BIO_printf(bio, "; NotAfter: ");
ASN1_TIME_print(bio, X509_get_notAfter(sk_X509_value(sk, i)));
ASN1_TIME_print(bio, X509_get0_notAfter(sk_X509_value(sk, i)));
BIO_puts(bio, "\n");
if (c_showcerts)
PEM_write_bio_X509(bio, sk_X509_value(sk, i));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment