• 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: KeychainCore.h: Where is KCAddGenericPassword?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >KeychainCore.h: Where is KCAddGenericPassword? (From: Manfred Lippert <email@hidden>)

  • Prev by Date: NSHTTPURLHandle bugs
  • Next by Date: Limitations on Carbon plugins in Cocoa app? (was Re: [LONG] Making the right choice)
  • Previous by thread: KeychainCore.h: Where is KCAddGenericPassword?
  • Next by thread: NSHTTPURLHandle bugs
  • Index(es):
    • Date
    • Thread