| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {size_t} {gnutls_est_record_overhead_size} (gnutls_protocol_t @var{version}, gnutls_cipher_algorithm_t @var{cipher}, gnutls_mac_algorithm_t @var{mac}, gnutls_compression_method_t @var{comp}, unsigned int @var{flags}) |
| 6 |
@var{version}: is a @code{gnutls_protocol_t} value |
| 7 |
|
| 8 |
@var{cipher}: is a @code{gnutls_cipher_algorithm_t} value |
| 9 |
|
| 10 |
@var{mac}: is a @code{gnutls_mac_algorithm_t} value |
| 11 |
|
| 12 |
@var{comp}: is a @code{gnutls_compression_method_t} value (ignored) |
| 13 |
|
| 14 |
@var{flags}: must be zero |
| 15 |
|
| 16 |
This function will return the set size in bytes of the overhead |
| 17 |
due to TLS (or DTLS) per record. |
| 18 |
|
| 19 |
Note that this function may provide inaccurate values when TLS |
| 20 |
extensions that modify the record format are negotiated. In these |
| 21 |
cases a more accurate value can be obtained using @code{gnutls_record_overhead_size()} |
| 22 |
after a completed handshake. |
| 23 |
|
| 24 |
@strong{Since:} 3.2.2 |
| 25 |
@end deftypefun |