Skip to content

Commit 75e9a40

Browse files
murraybogitster
authored andcommitted
http.c: Avoid username prompt for certifcate credentials
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 <[email protected]> Acked-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 086cb91 commit 75e9a40

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

http.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ static int has_cert_password(void)
236236
return 0;
237237
if (!cert_auth.password) {
238238
cert_auth.protocol = xstrdup("cert");
239+
cert_auth.username = xstrdup("");
239240
cert_auth.path = xstrdup(ssl_cert);
240241
credential_fill(&cert_auth);
241242
}

0 commit comments

Comments
 (0)