| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_dh_get_prime_bits} (gnutls_session_t @var{session}) |
| 6 |
@var{session}: is a gnutls session |
| 7 |
|
| 8 |
This function will return the bits of the prime used in the last |
| 9 |
Diffie-Hellman key exchange with the peer. Should be used for both |
| 10 |
anonymous and ephemeral Diffie-Hellman. Note that some ciphers, |
| 11 |
like RSA and DSA without DHE, do not use a Diffie-Hellman key |
| 12 |
exchange, and then this function will return 0. |
| 13 |
|
| 14 |
@strong{Returns:} The Diffie-Hellman bit strength is returned, or 0 if no |
| 15 |
Diffie-Hellman key exchange was done, or a negative error code on |
| 16 |
failure. |
| 17 |
@end deftypefun |