* [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
* Re: [PATCH] http.c: Avoid username prompt for certifcate credentials
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
0 siblings, 1 reply; 3+ messages in thread
From: Jeff King @ 2012-12-21 17:09 UTC (permalink / raw)
To: Rene Bredlau; +Cc: git, gitster
On Fri, Dec 21, 2012 at 05:31:19PM +0100, Rene Bredlau wrote:
> 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 "".
Yeah, that makes sense. I suspect the cert-unlocking code paths for
credential helpers are not that well used (and I do not think we have
any test coverage for them at all), so I am not too surprised that this
went unreported for a long time.
Thanks.
> Signed-off-by: Rene Bredlau <git@unrelated.de>
Acked-by: Jeff King <peff@peff.net>
-Peff
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] http.c: Avoid username prompt for certifcate credentials
2012-12-21 17:09 ` Jeff King
@ 2012-12-21 18:19 ` Junio C Hamano
0 siblings, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2012-12-21 18:19 UTC (permalink / raw)
To: Jeff King; +Cc: Rene Bredlau, git
Thanks, both.
^ permalink raw reply [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