Re: Security.framework problem [REPOSTING WITH MORE INFO]
Re: Security.framework problem [REPOSTING WITH MORE INFO]
- Subject: Re: Security.framework problem [REPOSTING WITH MORE INFO]
- From: Phillip Ulrich <email@hidden>
- Date: Tue, 22 Apr 2003 10:34:09 -0400
Warwick,
I have to ask first off: what version of OS X are you using?
Secondly. Comparing the documentation (both online and off) and the
header for SecKey.h, the HTML documentation is badly out of date. Many
methods no longer exist, and the definition for SecKeyCreatePair has,
in fact, changed. My guess is that this change has something to do
with why you are getting a nonexistent symbol error.
The new definition for SecKeyCreatePair looks like this (taken straight
from the header).
OSStatus SecKeyCreatePair(
SecKeychainRef keychainRef,
CSSM_ALGORITHMS algorithm,
uint32 keySizeInBits,
CSSM_CC_HANDLE contextHandle,
CSSM_KEYUSE publicKeyUsage,
uint32 publicKeyAttr,
CSSM_KEYUSE privateKeyUsage,
uint32 privateKeyAttr,
SecAccessRef initialAccess,
SecKeyRef* publicKey,
SecKeyRef* privateKey);
I will send you my main.m offlist; basically, I tried implementing it
like this (just pass 0 for CSSM_CC_HANDLE; read the comment header of
SecKeyCreatePair to see why) and now it compiles, runs, but dies with a
very generic error -25300, or errSecItemNotFound. Both SecBase.h and
the HTML documentation describe this, unhelpfully, as "The item could
not be found." I've narrowed it down to the access variable, but now
I'm stuck, as well. Hopefully this is enough to help you with your
project.
--Phil Ulrich
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.