Add a few more methods to OpenSSLCertUtils
authorAnirudh Ramachandran <avr@fb.com>
Tue, 7 Mar 2017 08:26:12 +0000 (00:26 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 7 Mar 2017 08:36:19 +0000 (00:36 -0800)
commit2081b775b5100a4b76a9acb8597f11ae5e60e0e0
tree3797e2eb8386f0fe14c591e6dd7f993cb373ee03
parent4b62278a910cab741622d2a1fb3706f4bd3d633b
Add a few more methods to OpenSSLCertUtils

Summary:
Add a few more getters (subject, issuer, notbefore, notafter) to
OpenSSLCertUtils.

Also add an additional API to AsyncSSLSocket to add application-generated
alert strings during the handshake, for e.g., during certificate verification

Reviewed By: knekritz

Differential Revision: D4624754

fbshipit-source-id: f01998b9e0e58b88ece8c6dc51ab590988bf0a8f
folly/io/async/AsyncSSLSocket.cpp
folly/io/async/AsyncSSLSocket.h
folly/ssl/OpenSSLCertUtils.cpp
folly/ssl/OpenSSLCertUtils.h
folly/ssl/test/OpenSSLCertUtilsTest.cpp