Added return status checks when building list of pinned public keys
Added return status checks when handling connection's authentication challenge
Merge pull request #1099 from lixar/safety-checks

Added safety checks for OSStatus value returned by SecXXX functions