diff options
author | Vladimir Kotal <vlada@kotalovi.cz> | 2023-02-27 23:07:27 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2023-02-27 23:07:30 +0000 |
commit | 9630e237abcf255e3b2cff88248fb15ffaf3e778 (patch) | |
tree | 08b2f619b0bfbacb504a22f0b55d4de3601cd36f | |
parent | 55747938b5c4c913f742fd03189f0c660ced7bef (diff) | |
download | src-9630e237abcf255e3b2cff88248fb15ffaf3e778.tar.gz src-9630e237abcf255e3b2cff88248fb15ffaf3e778.zip |
report full error string on SSL_connect() failure
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/575
-rw-r--r-- | usr.sbin/rpc.tlsclntd/rpc.tlsclntd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/rpc.tlsclntd/rpc.tlsclntd.c b/usr.sbin/rpc.tlsclntd/rpc.tlsclntd.c index caa3b5266e48..b473d642c257 100644 --- a/usr.sbin/rpc.tlsclntd/rpc.tlsclntd.c +++ b/usr.sbin/rpc.tlsclntd/rpc.tlsclntd.c @@ -680,8 +680,8 @@ rpctls_connect(SSL_CTX *ctx, int s, char *certname, u_int certlen, X509 **certp) ret = SSL_connect(ssl); if (ret != 1) { rpctls_verbose_out("rpctls_connect: " - "SSL_connect failed %d\n", - ret); + "SSL_connect failed %d: %s\n", + ret, ERR_error_string(ERR_get_error(), NULL)); SSL_free(ssl); return (NULL); } |