Git development
 help / color / mirror / Atom feed
* [PATCH] http.c: Avoid username prompt for certifcate credentials
@ 2012-12-21 16:31 Rene Bredlau
  2012-12-21 17:09 ` Jeff King
  0 siblings, 1 reply; 3+ messages in thread
From: Rene Bredlau @ 2012-12-21 16:31 UTC (permalink / raw)
  To: git; +Cc: peff, gitster, Rene Bredlau

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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-12-21 18:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-21 16:31 [PATCH] http.c: Avoid username prompt for certifcate credentials Rene Bredlau
2012-12-21 17:09 ` Jeff King
2012-12-21 18:19   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox