SecTrustEvaluate - what checks does it perform

There is no documentation that clearly states the checks that this method performs on the Server SSL Certificate.


From the Technical note: TN2232 - https://developer.apple.com/library/ios/technotes/tn2232/_index.html//apple_ref/doc/navigation/#//apple_ref/doc/uid/DTS40012884-CH1-SECGLOSSARY


1. I'm unsure if this method performs the X.509 checks mentioned in the above link

2. Am also unsure if does the TLS specific tests that's also mentioned in the above link

3. Because if it does so, then In my case of SSL Pinning using certifiecates signed by the company's Test CA (not the well known global ones eg. Verisign/Digicert/Geotrust), I'm guessing I will necessarily have to provide anchor certificates before callin the SecTrustEvaluate method or am I uncorrect in saying this?


Got this link http://opensource.apple.com//source/Security/Security-55471/libsecurity_keychain/lib/SecTrust.cpp

am now reading it to see what checks are done... but have very little c++ experience, so an answer to this question will be helpful?

SecTrustEvaluate - what checks does it perform
 
 
Q