aboutsummaryrefslogtreecommitdiffstats
path: root/credential.h
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2024-10-30 00:52:16 +0100
committerJohannes Schindelin <johannes.schindelin@gmx.de>2024-11-26 22:14:59 +0100
commitc39c2d29e62d5bd13f390ca20f6e756aced681b1 (patch)
tree63a1b00a4df948d65f46b0d3cc382bfe4037085a /credential.h
parent337b4d400023d22207bcc3c29e9ebab31bf96fc2 (diff)
parent54ddf17f827969c989576f2411d9ff519fa8091f (diff)
downloadgit-c39c2d29e62d5bd13f390ca20f6e756aced681b1.tar.gz
Sync with 2.42.4
* maint-2.42: Git 2.42.4 Git 2.41.3 Git 2.40.4 credential: disallow Carriage Returns in the protocol by default credential: sanitize the user prompt credential_format(): also encode <host>[:<port>] t7300: work around platform-specific behaviour with long paths on MinGW compat/regex: fix argument order to calloc(3) mingw: drop bogus (and unneeded) declaration of `_pgmptr` ci: remove 'Upload failed tests' directories' step from linux32 jobs
Diffstat (limited to 'credential.h')
-rw-r--r--credential.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/credential.h b/credential.h
index acc41adf54..3b84871412 100644
--- a/credential.h
+++ b/credential.h
@@ -134,7 +134,9 @@ struct credential {
configured:1,
quit:1,
use_http_path:1,
- username_from_proto:1;
+ username_from_proto:1,
+ sanitize_prompt:1,
+ protect_protocol:1;
char *username;
char *password;
@@ -149,6 +151,8 @@ struct credential {
.helpers = STRING_LIST_INIT_DUP, \
.password_expiry_utc = TIME_MAX, \
.wwwauth_headers = STRVEC_INIT, \
+ .sanitize_prompt = 1, \
+ .protect_protocol = 1, \
}
/* Initialize a credential structure, setting all fields to empty. */