git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] http.c: Avoid username prompt for certifcate credentials

From
RBRene Bredlau <git@unrelated.de>
Date
Dec 21, 2012, 16:31 UTC
Message-ID
<1356107479-6668-1-git-send-email-git@unrelated.de>
If sslCertPasswordProtected is set to true do not ask for username to decrypt rsa key. This question is pointless, the key is only protected by a password. Internaly the username is simply set to "".
Signed-off-by: Rene Bredlau <git@unrelated.de>
---
 http.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/http.c b/http.c
index 0a8abf3..44f3525 100644
--- a/http.c
+++ b/http.c
@@ -236,6 +236,7 @@ static int has_cert_password(void)
 		return 0;
 	if (!cert_auth.password) {
 		cert_auth.protocol = xstrdup("cert");
+		cert_auth.username = xstrdup("");
 		cert_auth.path = xstrdup(ssl_cert);
 		credential_fill(&cert_auth);
 	}
-- 
1.7.9
Next: Jeff King
Message 1 of 3 in “http.c: Avoid username prompt for certifcate credentials”
  1. http.c: Avoid username prompt for certifcate credentialsRene Bredlau, Dec 21, 2012
  2. Jeff KingDec 21, 2012
  3. Junio C HamanoDec 21, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.