diff options
author | June McEnroe <june@causal.agency> | 2021-04-18 17:20:54 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-04-18 17:20:54 -0400 |
commit | be8eb3b67ce4718ca94287a68e0babc715afcd21 (patch) | |
tree | 5ca8bea74d0b5b03e7c6906fa9183b959d5c2b87 /tls_keypair.c | |
parent | Import LibreSSL 3.3.1 (diff) | |
download | libretls-be8eb3b67ce4718ca94287a68e0babc715afcd21.tar.gz libretls-be8eb3b67ce4718ca94287a68e0babc715afcd21.zip |
Import LibreSSL 3.3.2
Diffstat (limited to '')
-rw-r--r-- | tls_keypair.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tls_keypair.c b/tls_keypair.c index a98e5c2..a12d21d 100644 --- a/tls_keypair.c +++ b/tls_keypair.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls_keypair.c,v 1.6 2018/04/07 16:35:34 jsing Exp $ */ +/* $OpenBSD: tls_keypair.c,v 1.8 2021/01/05 17:37:12 jsing Exp $ */ /* * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> * @@ -137,7 +137,7 @@ tls_keypair_load_cert(struct tls_keypair *keypair, struct tls_error *error, { char *errstr = "unknown"; BIO *cert_bio = NULL; - int ssl_err; + unsigned long ssl_err; int rv = -1; X509_free(*cert); @@ -155,7 +155,7 @@ tls_keypair_load_cert(struct tls_keypair *keypair, struct tls_error *error, if ((*cert = PEM_read_bio_X509(cert_bio, NULL, tls_password_cb, NULL)) == NULL) { if ((ssl_err = ERR_peek_error()) != 0) - errstr = ERR_error_string(ssl_err, NULL); + errstr = ERR_error_string(ssl_err, NULL); tls_error_set(error, "failed to load certificate: %s", errstr); goto err; } |