mirror of
https://github.com/curl/curl.git
synced 2026-06-18 00:55:38 +03: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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue