Adding SSL cert parameter accesors to AsyncMysqlConnection class
commit974919ece6435d2c544365475e6cbe82a6b850b9
authorMaxim Georgiev <maxgeorg@fb.com>
Mon, 14 Feb 2022 23:23:33 +0000 (14 15:23 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 14 Feb 2022 23:31:43 +0000 (14 15:31 -0800)
tree2728323d3cfaf91bbebb183275b510dd69e9f0d0
parent4a6bb63873a884919bc9303a7e290275edd2db70
Adding SSL cert parameter accesors to AsyncMysqlConnection class

Summary:
Adding methods to `AsyncMysqlConnection` class for retrieving information about server certificate presented during TLS handshake:
- getSslCertCn() returns a string containing FDQN
- getSslCertSan() returns a string containing a comma-separated list of Subject Alternative Names
- getSslCertExtensions() returns a comma-separated list of values from custom extensions requestsd by the caller upon connection initiation
- isSslCertValidationEnforced() returns boolean indicating if server cert validation was enforced.

Reviewed By: jkedgar

Differential Revision: D33663743

fbshipit-source-id: 99cf1384d51ca18bf0659aef798c4b802f90b214
hphp/hack/hhi/stdlib/builtins_async_mysql.hhi
hphp/runtime/ext/async_mysql/ext_async_mysql.cpp
hphp/runtime/ext/async_mysql/ext_async_mysql.php