(PECL getdns >= 0.10.0)
php_getdns_context_get_tls_query_padding_blocksize — Get the TLS query padding block size.
$context
, int $value
)This function can be used to get the value of the EDNS(0) block size padding option. With this option, the query size will be padded to be a multiple of a block size when queried over GETDNS_TRANSPORT_TLS transport. This is designed to reduce the possibility of guessing the query by analyzing query sizes.
context
The previously created DNS context that is to be used with this request.
value
The value of the block size. Valid values range from 0 (zero) to MAXIMUM_UPSTREAM_OPTION_SPACE - 4. The value of MAXIMUM_UPSTREAM_OPTION_SPACE is a getdns library configuration parameter.
This function returns an integer response code. GETDNS_RETURN_GOOD indicates successful completion.