]> git.saurik.com Git - apple/securityd.git/blobdiff - src/tempdatabase.cpp
securityd-55199.3.tar.gz
[apple/securityd.git] / src / tempdatabase.cpp
index 6be1e05f83a05127b3abb789d31400c381ed5cbd..e09e222e839727642e811d97ce6c6366ce8d929a 100644 (file)
@@ -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<CssmData>(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);
 }