Add needsPeerVerification function to check if peer cert should be verified
authorRyan Wilson <ryantimwilson@fb.com>
Tue, 24 Jan 2017 22:22:17 +0000 (14:22 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 24 Jan 2017 22:32:57 +0000 (14:32 -0800)
commita857f83b2b25f42eeba1524ebca1bd2e74abc71a
tree2eabcc450f69708547e3b2b3d341ff5841e16d5c
parenta393e1cc0e1d29c8b4c7daef6ff4c1d9bf11f78a
Add needsPeerVerification function to check if peer cert should be verified

Summary:
This patch adds a function to AsyncSSLSocket, so the user can check if the peer cert
should be verified. This allows the user to implement custom logic for peer cert validation.

Reviewed By: Orvid

Differential Revision: D4456402

fbshipit-source-id: 2f8a5c932d0341d6c9290bcb52264dd4fa174263
folly/io/async/AsyncSSLSocket.cpp
folly/io/async/AsyncSSLSocket.h