ytls_decrypt_data()#
ytls_decrypt_data() decrypts encrypted data from a secure connection and delivers the clear data via the on_clear_data_cb callback.
Prototype
int ytls_decrypt_data(
hytls ytls,
hsskt sskt,
gbuffer_t *gbuf // owned
);
Parameters
Key |
Type |
Description |
|---|---|---|
|
|
TLS context handle. |
|
|
Secure socket handle. |
|
|
Encrypted data buffer, owned by the function. |
Return Value
Returns 0 on success, or a negative value on failure.
Notes
The decrypted data is provided through the on_clear_data_cb callback.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples