While adding a client certificate to an iOS application, I'm encountering a recoverable trust failure with the cert. The iOS docs discussion for SecTrustEvaluate specifically suggests using SecTrustGetTrustResult()
to get the specifics of the failure, but the linker fails on reference to it. (It's not in any of the iOS-related header files, and there are no specific iOS docs for the function, only the mention in SecTrustGetTrustResult
. A response in another, recent stackoverflow question says it's not available on iOS, but without any supporting details.) Assuming that it, in fact, is not available, what's the right way in my iOS code to get specific details about the recoverable failure?
(That iOS manual also mentions SecTrustGetCssmResult
for the same purpose. I haven't tried it yet, but it also is not mentioned in any way in the iOS 5.1 header files, nor are there any iOS document entries dedicated to the function. Furthermore, the Mac OS X documentation, which does have details, marks it - and related SecTrustGetCssmResultCode
- as deprecated.)
Final notes: since we run both the server and the client, we are using a privately crafted cert, and I believe we can regenerate the cert at will. I didn't generate the one I'm currently using, so am not sure about its pedigree. In case it's relevant, I'm trying to compile using Xcode 4.3.3 with iPhone 5.1 or iPad 5.1 simulator targets.
Thanks for any leads!