mirror of https://github.com/cirruslabs/tart.git
StdinCredentials: increase maxCharacters to 8,192 (#1203)
This commit is contained in:
parent
e26b376d51
commit
d45ef38cf7
|
|
@ -15,7 +15,7 @@ class StdinCredentials {
|
|||
return (user, password)
|
||||
}
|
||||
|
||||
private static func readStdinCredential(name: String, prompt: String, maxCharacters: Int = 1024, isSensitive: Bool) throws -> String {
|
||||
private static func readStdinCredential(name: String, prompt: String, maxCharacters: Int = 8192, isSensitive: Bool) throws -> String {
|
||||
var buf = [CChar](repeating: 0, count: maxCharacters + 1 /* sentinel */ + 1 /* NUL */)
|
||||
guard let rawCredential = readpassphrase(prompt, &buf, buf.count, isSensitive ? RPP_ECHO_OFF : RPP_ECHO_ON) else {
|
||||
throw StdinCredentialsError.CredentialRequired(which: name)
|
||||
|
|
|
|||
Loading…
Reference in New Issue