Re: KeychainCore.h: Where is KCAddGenericPassword?
Re: KeychainCore.h: Where is KCAddGenericPassword?
- Subject: Re: KeychainCore.h: Where is KCAddGenericPassword?
- From: Andreas Monitzer <email@hidden>
- Date: Sun, 27 Jan 2002 21:46:23 +0100
On Sunday, January 27, 2002, at 09:05 , Manfred Lippert wrote:
What is the quickest and easiest way to add a password (program
specific) to
the default keychain, when I have this password as NSString?
I'm using:
NSString *name, *newPassword;
//...
kcaddgenericpassword(
[name UTF8String],
<domain>,
strlen([newPassword UTF8String]),
[newPassword UTF8String],
NULL);
Don't forget to #import <SecurityHI/KeychainHI.h>! And add
SecurityHI.framework to your project, but don't link to it (it's only
required for the search path).
andy