doc/functions/gnutls_dh_get_secret_bits
raw| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | @deftypefun {int} {gnutls_dh_get_secret_bits} (gnutls_session_t @var{session}) |
| 6 | @var{session}: is a gnutls session |
| 7 | |
| 8 | This function will return the bits used in the last Diffie-Hellman |
| 9 | key exchange with the peer. Should be used for both anonymous and |
| 10 | ephemeral Diffie-Hellman. |
| 11 | |
| 12 | @strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise |
| 13 | an error code is returned. |
| 14 | @end deftypefun |