Blame doc/functions/gnutls_dh_get_prime_bits
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@deftypefun {int} {gnutls_dh_get_prime_bits} (gnutls_session_t @var{session})
|
|
Packit Service |
4684c1 |
@var{session}: is a gnutls session
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This function will return the bits of the prime used in the last
|
|
Packit Service |
4684c1 |
Diffie-Hellman key exchange with the peer. Should be used for both
|
|
Packit Service |
4684c1 |
anonymous and ephemeral Diffie-Hellman. Note that some ciphers,
|
|
Packit Service |
4684c1 |
like RSA and DSA without DHE, do not use a Diffie-Hellman key
|
|
Packit Service |
4684c1 |
exchange, and then this function will return 0.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Returns:} The Diffie-Hellman bit strength is returned, or 0 if no
|
|
Packit Service |
4684c1 |
Diffie-Hellman key exchange was done, or a negative error code on
|
|
Packit Service |
4684c1 |
failure.
|
|
Packit Service |
4684c1 |
@end deftypefun
|