| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hi, I don't know if this is the right list to post this to, but I'm encountering an annoying problem and I'm not sure where to turn to for help, so I apologize if this is the wrong place to ask this question. I'm writing a program that stores some secure preferences in the keychain access application, and retrieves them via this call: void *rawData = NULL; UInt32 dataLength; status = SecKeychainFindGenericPassword(keychain, LABEL_LENGTH, DEFAULT_LABEL, [key length], [key UTF8String], &dataLength, &rawData, ref); This works, sometimes, and it used to work all the time. Then suddenly, it stopped working for some reason that I've yet to pin down. Now what happens is this: On the first run of the code it works, but when I recompile the application and run it again, keychain access asks whether to allow the new binary access (which makes sense), I click the "Yes" button, and the program does not "crash" but just stops executing. I attach the debugger and I get the following stack trace: #0 0x947544a6 in mach_msg_trap () #1 0x9475bc9c in mach_msg () #2 0x935ef8b6 in ucsp_client_decrypt () #3 0x935f92ce in Security::SecurityServer::ClientSession::decrypt () #4 0x935848b4 in SSCryptContext::outputSize () #5 0x935cca92 in Security::CSPFullPluginSession::CSPContext::final () #6 0x935d6339 in cssm_DecryptDataFinal () #7 0x93557900 in CSSM_DecryptDataFinal () #8 0x935dc5fb in Security::CssmClient::Decrypt::final () #9 0x935e37f8 in Security::CssmClient::SSGroupImpl::decodeDataBlob () #10 0x935e464d in Security::CssmClient::SSDbUniqueRecordImpl::get () #11 0x9350ac03 in Security::KeychainCore::ItemImpl::getContent () #12 0x9350c9b4 in Security::KeychainCore::ItemImpl::getData () #13 0x93529f66 in SecKeychainFindGenericPassword () Furthermore, from that point on keychain access is completely broken, and any attempts at running any program results in a SIGABRT killing it. I'm forced to reboot the computer for things to behave properly again. I should mention that this problem happens with both the default keychain, and a custom keychain that I created in an attempt to fix the problem. Also, the keychain is accessed by two different programs, the main one and another helper application. Any help solving this problem would be GREATLY appreciated! Thanks, - Greg |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Apple-cdsa mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/apple-cdsa/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.