X-Git-Url: https://git.saurik.com/apple/securityd.git/blobdiff_plain/569135f537d6bd5118fa29c2fb4b6d4d436e066e..4cd1cad0dea00daa03e1b54fdf2797a02373ad5b:/src/tempdatabase.cpp diff --git a/src/tempdatabase.cpp b/src/tempdatabase.cpp index c3f29ce..e09e222 100644 --- a/src/tempdatabase.cpp +++ b/src/tempdatabase.cpp @@ -110,14 +110,10 @@ void TempDatabase::getSecurePassphrase(const Context &context, uint32 verify = context.getInt(CSSM_ATTRIBUTE_VERIFY_PASSPHRASE, CSSMERR_CSSM_ATTRIBUTE_NOT_IN_CONTEXT); CssmData *promptData = context.get(CSSM_ATTRIBUTE_PROMPT); - const char *prompt = NULL; - if (promptData) - prompt = *promptData; - QueryGenericPassphrase agentQuery; agentQuery.inferHints(Server::process()); - agentQuery(prompt, verify, passphrase); + agentQuery(promptData, verify, passphrase); }