• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Security.framework problem [REPOSTING WITH MORE INFO]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Pasteboard and... How to tell an application to paste or to copy...
  • Next by Date: RE: Get RTF or HTML from web and show in NSTextView
  • Previous by thread: Pasteboard and... How to tell an application to paste or to copy...
  • Next by thread: multiple table views
  • Index(es):
    • Date
    • Thread