Skip to content

mysql_get_tls

imshooter edited this page Nov 29, 2026 · 1 revision

The TLS version and cipher of the connection of a handle that runs ordered queries.

native bool:mysql_get_tls(
    destination[],
    max_len = sizeof (destination),
    MySQL:handle = MYSQL_DEFAULT_HANDLE
);

With open.mp names, from the same include:

native bool:MySQL_GetTLS(
    destination[],
    max_len = sizeof (destination),
    MySQL:handle = MYSQL_DEFAULT_HANDLE
);

Parameters

Parameter Description
destination[] Array for them, as TLSv1.3 TLS_AES_256_GCM_SHA384.
max_len = sizeof (destination) Size of the array.
MySQL:handle = MYSQL_DEFAULT_HANDLE The handle.

Returns

  • true when the connection uses TLS.
  • false when it does not, it is not open, or the handle does not exist.

Home

Guides

Reference

Functions

Connections
Queries
Cache
JSON cells
ORM
Queries built in pieces
Prepared statements
Batches
Transactions
Passwords
Callbacks

Clone this wiki locally