mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
BoringSSL: Work with stricter BIO_get_mem_data()
BoringSSL implements `BIO_get_mem_data` as a function, instead of a macro, and expects the output pointer to be a `char **`. We have to add an explicit cast to grab the pointer as a `const char **`. Closes #524
This commit is contained in:
parent
01b7d8274c
commit
3e0d64d075
@ -2517,12 +2517,12 @@ static CURLcode servercert(struct connectdata *conn,
|
||||
infof(data, "\t subject: %s\n", rc?"[NONE]":buffer);
|
||||
|
||||
ASN1_TIME_print(mem, X509_get_notBefore(connssl->server_cert));
|
||||
len = BIO_get_mem_data(mem, &ptr);
|
||||
len = BIO_get_mem_data(mem, (char **) &ptr);
|
||||
infof(data, "\t start date: %.*s\n", len, ptr);
|
||||
BIO_reset(mem);
|
||||
|
||||
ASN1_TIME_print(mem, X509_get_notAfter(connssl->server_cert));
|
||||
len = BIO_get_mem_data(mem, &ptr);
|
||||
len = BIO_get_mem_data(mem, (char **) &ptr);
|
||||
infof(data, "\t expire date: %.*s\n", len, ptr);
|
||||
BIO_reset(mem);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user