Adding SSL cert parameter accessors to AsyncMysqlResult class
commit4a6bb63873a884919bc9303a7e290275edd2db70
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:36 +0000 (14 15:31 -0800)
treecc27e88e47247ca2f47e9cf29ad46a199850421c
parent2f62d0a9099e0ce17c656a60d8b499c21f2e1b17
Adding SSL cert parameter accessors to AsyncMysqlResult class

Summary:
Adding methods to `AsyncMysqlResult` 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: aditya-jalan

Differential Revision: D33663742

fbshipit-source-id: 177c3dfec8b71030e82afdd9c2ecca274e53d825
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.h
hphp/runtime/ext/async_mysql/ext_async_mysql.php