Skip to content

Commit c7ea7e7

Browse files
committed
use const X509 * APIs.
1 parent 655df15 commit c7ea7e7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

modules/ssl/ssl_engine_log.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,14 @@ static void ssl_log_cert_error(const char *file, int line, int level,
167167
}
168168

169169
BIO_puts(bio, " / serial: ");
170-
if (i2a_ASN1_INTEGER(bio, X509_get_serialNumber(cert)) == -1)
170+
if (i2a_ASN1_INTEGER(bio, X509_get0_serialNumber(cert)) == -1)
171171
BIO_puts(bio, "(ERROR)");
172172

173173
BIO_puts(bio, " / notbefore: ");
174-
ASN1_TIME_print(bio, X509_get_notBefore(cert));
174+
ASN1_TIME_print(bio, X509_get0_notBefore(cert));
175175

176176
BIO_puts(bio, " / notafter: ");
177-
ASN1_TIME_print(bio, X509_get_notAfter(cert));
177+
ASN1_TIME_print(bio, X509_get0_notAfter(cert));
178178

179179
BIO_puts(bio, "]");
180180

0 commit comments

Comments
 (0)