I am trying to use the code from the 'Certificate,Key and trust programming guide'. In the section about extracting and evaluating an identity from a p12 file, I am getting error and warning from using the code given in the guide.
The line
status = extractIdentityAndTrust(inPKCS12Data, &myIdentity, &myTrust);
gives the warning: "Implicit declaration of function extractIdentityAndTrust "
while the function declaration of extractIdentityAndTrust"
OSStatus extractIdentityAndTrust(CFDataRef inPKCS12Data,SecIdentityRef *outIdentity,SecTrustRef *outTrust)
gives me the error:conflicting types for extractIdentityAndTrust.
I am just trying to impement the code sample given in the guide. Please guide me where I am going wrong on this.