aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-12-10 17:31:00 +0100
committerDaniel Stenberg <daniel@haxx.se>2015-12-10 17:31:37 +0100
commitdd1b44c6126a03c6a696fa749e2a32eb616e9131 (patch)
tree3bfa8e6c5b828ec14b7171e428040ec3845fe1a2 /lib
parentfa9332d3cafe9c36f7096d46633dd9c7b332ffff (diff)
openssl: avoid BIO_reset() warnings since it returns a value
Diffstat (limited to 'lib')
-rw-r--r--lib/vtls/openssl.c7
1 files changed, 4 insertions, 3 deletions
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);