From dd1b44c6126a03c6a696fa749e2a32eb616e9131 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 10 Dec 2015 17:31:00 +0100 Subject: openssl: avoid BIO_reset() warnings since it returns a value --- lib/vtls/openssl.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/vtls') diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index f1b831126..4a705b657 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -2217,7 +2217,8 @@ static int asn1_object_dump(ASN1_OBJECT *a, char *buf, size_t len) do { \ long info_len = BIO_get_mem_data(mem, &ptr); \ Curl_ssl_push_certinfo_len(data, _num, _label, ptr, info_len); \ - BIO_reset(mem); \ + if(1!=BIO_reset(mem)) \ + break; \ } WHILE_FALSE static void pubkey_show(struct SessionHandle *data, @@ -2520,12 +2521,12 @@ static CURLcode servercert(struct connectdata *conn, ASN1_TIME_print(mem, X509_get_notBefore(connssl->server_cert)); len = BIO_get_mem_data(mem, (char **) &ptr); infof(data, "\t start date: %.*s\n", len, ptr); - BIO_reset(mem); + rc = BIO_reset(mem); ASN1_TIME_print(mem, X509_get_notAfter(connssl->server_cert)); len = BIO_get_mem_data(mem, (char **) &ptr); infof(data, "\t expire date: %.*s\n", len, ptr); - BIO_reset(mem); + rc = BIO_reset(mem); BIO_free(mem); -- cgit v1.2.3