Second try: Modify keychains with Keychain Services
Second try: Modify keychains with Keychain Services
- Subject: Second try: Modify keychains with Keychain Services
- From: Michael Fenske <email@hidden>
- Date: Wed, 8 Jan 2003 23:04:57 +0100
I have a problem with the keychain services. I want save internet
passwords in the keychain. I do this this way:
osStatus = SecKeychainAddInternetPassword(NULL, [server length],
[server cString],
0, NULL, [name length], [name cString], 0, NULL, port,
kSecProtocolTypeNNTP, kSecAuthenticationTypeDefault,
[password length], [password cString], &itemRef);
Well, this works. But if I look in the Utility "Keychain Access" the
field 'Name' shows the same as the field 'Account'. That's not what I
want. I want to save the passwords like Mail does. So, how can I modify
the field 'Name'? I had no luck with
SecKeychainItemModifyAttributesAndData();
because, I don't know what is the right "Item Attribute Constant" to
modify.
Who can help me?
Michael
_______________________________________________
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.