getdns Functions
PHP Manual

php_getdns_context_set_tls_query_padding_blocksize

(PECL getdns >= 0.10.0)

php_getdns_context_set_tls_query_padding_blocksizeSet the TLS query padding block size.

Description

int php_getdns_context_set_tls_query_padding_blocksize ( int $context , int $value )

This function can be used to set 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.

Parameters

context

The previously created DNS context that is to be used with this request.

value

The value to be set. 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.

Return Values

This function returns an integer response code. GETDNS_RETURN_GOOD indicates successful completion.


getdns Functions
PHP Manual