From nobody Mon Feb 27 23:10:14 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PQbnM13GVz3tJ3n; Mon, 27 Feb 2023 23:10:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PQbnM0RpPz3v7d; Mon, 27 Feb 2023 23:10:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677539415; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aHBFiVvL+PR0/o86KJ9KFsZdK99i4Jz1K7hyMPj92pY=; b=LoRqOe4e7pSJ+QdGN82Wq8EWyBA42TiLTzzGNfCr4FMWpZYojwi9bD8eA83bAkQDRTiBYu DlvthN2/6sJDuoMhczqYP7wQq9rtgvVp5avGvYGC5Sy0DafT4Ri6aVKIVsYdVLK5wRsEkb jzenBdtmeZcUcAfn8UNgHH2TdYHImmS/Jkp0/v0DhYwoYo2/bDKim1SqfK2j/38/tDLZmK s13eD3Hr4nX2FnYqt7kSoAzlwn5fD7vTykH3H+yiavv9FQAmqGXRnc+oZzC2EMhfTM4hjI NcRBv/bZtmHfONRLJxMfA0shkMK4vomzIggFndZEzk9dDkdKrIsJp1RzvDbUcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677539415; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=aHBFiVvL+PR0/o86KJ9KFsZdK99i4Jz1K7hyMPj92pY=; b=Na8WiRp5La9qsFMJ6KyeZyURD8oTdlaq4xAvhZbA2c/orZ1gCS8Y/EXWRf6va99GSwvfkA mAx0xvpD6wmFgwCLYe91tpY3K/ASlXBXNqqXSjuxX2JnuZo+veyGkMkr5VNgnRp/NBPE6H C3IYb8i2h7M0LlMWLu3o9GBLDrlImrdsGKnDO0SrjRFaaNjf19ENKeIvYky0+Ssmo6ipt4 Jiu9cQSXvCAFI+baNGolO6PaCEjG4EyLvTlNs4c27Vwhi6zcKfZ5ESf1tP89pNY6Rg+0Oe bDcJRnENvCDFplPx6Ze9GPTy6IjcEgJoGeUNGZmxtP2O3kwQVa7h2NL0PVW+8Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677539415; a=rsa-sha256; cv=none; b=eY3TyC+kMjgBPkDOPCJTovtKqRhLdTkpH3hWg9g20yO/68ztzEYCZsKvQpF5AaoY1NupOi 8u+szzabvZMaBzVKpH6ahAWidf4W3mwddJkizqotCzxL52HhXhrgNYeEPZizA50cLbi42T 6x18ya06PknoJfbVxNz62i8SQf9U/38wX6FdpjiVYdA2VjqaAAPfez2GjY3iDtXHjUqzZi 83DDgB3B6VKuZjoCmSa9UBK1Lm+f40twgL3SSHYMyc1mEJYo8RfHmeeyPob1SQqmHG3sLt SwHYQExC/Tas6RU+1ya3W06SB37/ty4ezFikBWTQfPB6ijW3HkGs9ORut7M8ng== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PQbnL6Wfxzkkl; Mon, 27 Feb 2023 23:10:14 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31RNAE1Z019511; Mon, 27 Feb 2023 23:10:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31RNAEmm019505; Mon, 27 Feb 2023 23:10:14 GMT (envelope-from git) Date: Mon, 27 Feb 2023 23:10:14 GMT Message-Id: <202302272310.31RNAEmm019505@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 9630e237abcf - main - report full error string on SSL_connect() failure List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9630e237abcf255e3b2cff88248fb15ffaf3e778 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=9630e237abcf255e3b2cff88248fb15ffaf3e778 commit 9630e237abcf255e3b2cff88248fb15ffaf3e778 Author: Vladimir Kotal AuthorDate: 2023-02-27 23:07:27 +0000 Commit: Warner Losh CommitDate: 2023-02-27 23:07:30 +0000 report full error string on SSL_connect() failure Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/575 --- usr.sbin/rpc.tlsclntd/rpc.tlsclntd.c | 4 ++-- 1 file 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); }