Re: Is it possible to compare two SecKeychainRef?
Re: Is it possible to compare two SecKeychainRef?
- Subject: Re: Is it possible to compare two SecKeychainRef?
- From: Greg Herlihy <email@hidden>
- Date: Mon, 27 Mar 2006 12:16:58 -0800
- Thread-topic: Is it possible to compare two SecKeychainRef?
Use == to test whether two SecKeychainRef's refer to the same object:
SecKeychainRef aKeyChain;
SecKeychainRef bKeyChain;
...
if (aKeyChain == bKeyChain)
{
// a and b are the same keychain
Otherwise you could call CFEqual. But CFEqual tests whether two objects are
equal in content - not whether they both refer to the same object (though
clearly an object would be considered equal to itself).
Greg
On 3/27/06 8:47 AM, "Andrei Tchijov" <email@hidden> wrote:
> HI,
> I need to make sure that keychain I am about to delete (reference to
> which I am getting via full path and SecKeychainOpen) is NOT default
> keychain (reference to which I am getting via
> SecKeychainCopyDefault). Basically I am trying to answer the question
> if two SecKeychainRef's refer to the same keychain or not. How can I
> solve this problem?
>
> Thanks,
>
> Andrei Tchijov
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden