prompt multiple time for decryption password on autoload; close
@@ -58,6 +58,7 @@ char* getAutoloadConfig(const char* shortname, const char* issuer,
oidc_errno = OIDC_ENOACCOUNT;
return NULL;
}
+ for (size_t i = 0; i < MAX_PASS_TRIES; i++) {
char* password =
issuer ? askpass_getPasswordForAutoloadWithIssuer(issuer, shortname,
application_hint)
@@ -67,8 +68,12 @@ char* getAutoloadConfig(const char* shortname, const char* issuer,
}
char* config = decryptOidcFile(shortname, password);
secFree(password);
+ if (config != NULL) {
return config;
}
+ }
+ return NULL;
+}
char* getDefaultAccountConfigForIssuer(const char* issuer_url) {
if (issuer_url == NULL) {
