-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expose to HHVM isSSL and sslSessionReused
Summary: New functions about SSL connections added to Connection. Now exposing them to HHVM. Reviewed By: anca-agape Differential Revision: D2777300 fb-gh-sync-id: 968482f5fdf16e116b26a174325f159c3f948df3
- Loading branch information
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,6 +101,8 @@ class AsyncMysqlConnection { | |
public function close(): void{ } | ||
public function releaseConnection() { } | ||
public function serverInfo() { } | ||
public function sslSessionReused() { } | ||
public function isSSL() { } | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
drilibo
via email
Author
Contributor
|
||
public function warningCount() { } | ||
public function host(): string { } | ||
public function port(): int { } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -612,6 +612,26 @@ String HHVM_METHOD(AsyncMysqlConnection, serverInfo) { | |
return ret; | ||
} | ||
|
||
bool HHVM_METHOD(AsyncMysqlConnection, sslSessionReused) { | ||
This comment has been minimized.
Sorry, something went wrong.
fredemmott
Contributor
|
||
auto* data = Native::data<AsyncMysqlConnection>(this_); | ||
|
||
bool ret = false; | ||
if (data->m_conn && !data->m_closed) { | ||
ret = data->m_conn->sslSessionReused(); | ||
} | ||
return ret; | ||
} | ||
|
||
bool HHVM_METHOD(AsyncMysqlConnection, isSSL) { | ||
auto* data = Native::data<AsyncMysqlConnection>(this_); | ||
|
||
bool ret = false; | ||
if (data->m_conn && !data->m_closed) { | ||
ret = data->m_conn->isSSL(); | ||
} | ||
return ret; | ||
} | ||
|
||
int HHVM_METHOD(AsyncMysqlConnection, warningCount) { | ||
auto* data = Native::data<AsyncMysqlConnection>(this_); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
no return types?