Pad TLS 1.3 records written from a context up to a multiple of a block size.
Declared in <openssl/ssl.h>
int
SSL_CTX_set_block_padding(
SSL_CTX* ctx,
size_t block_size);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| ctx | SSL context whose default block padding is set (copied to new SSL objects). |
| block_size | Padding multiple; 0 or 1 disables block padding (max SSL3_RT_MAX_PLAIN_LENGTH). |