diff options
author | Douglas Creager <dcreager@google.com> | 2015-11-10 15:05:18 -0500 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-11-10 22:34:07 +0100 |
commit | 3e0d64d075f7907f1ba322eb427fd07b96c1258c (patch) | |
tree | d41b156d849327523fbd31febff6448e38fc1259 | |
parent | 01b7d8274c4c9ad33cd8d0eeb5eeaa9a28a23c15 (diff) |
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
-rw-r--r-- | lib/vtls/openssl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index 3bc079e7e..d3c63c7cb 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -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); |