X-Git-Url: https://git.saurik.com/apple/securityd.git/blobdiff_plain/ee396ef47db58c01c7ceaecfec60781c95ffeea1..4cd1cad0dea00daa03e1b54fdf2797a02373ad5b:/src/tempdatabase.cpp diff --git a/src/tempdatabase.cpp b/src/tempdatabase.cpp index 6be1e05..e09e222 100644 --- a/src/tempdatabase.cpp +++ b/src/tempdatabase.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004 Apple Computer, Inc. All Rights Reserved. + * Copyright (c) 2004,2008 Apple Inc. All Rights Reserved. * * @APPLE_LICENSE_HEADER_START@ * @@ -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); }