Blame doc/functions/gnutls_set_default_priority
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@deftypefun {int} {gnutls_set_default_priority} (gnutls_session_t @var{session})
|
|
Packit |
aea12f |
@var{session}: is a @code{gnutls_session_t} type.
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
Sets the default priority on the ciphers, key exchange methods,
|
|
Packit |
aea12f |
and macs. This is the recommended method of
|
|
Packit |
aea12f |
setting the defaults, in order to promote consistency between applications
|
|
Packit |
aea12f |
using GnuTLS, and to allow GnuTLS using applications to update settings
|
|
Packit |
aea12f |
in par with the library. For client applications which require
|
|
Packit |
aea12f |
maximum compatibility consider calling @code{gnutls_session_enable_compatibility_mode()}
|
|
Packit |
aea12f |
after this function.
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
For an application to specify additional options to priority string
|
|
Packit |
aea12f |
consider using @code{gnutls_set_default_priority_append()} .
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
To allow a user to override the defaults (e.g., when a user interface
|
|
Packit |
aea12f |
or configuration file is available), the functions
|
|
Packit |
aea12f |
@code{gnutls_priority_set_direct()} or @code{gnutls_priority_set()} can
|
|
Packit |
aea12f |
be used.
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@strong{Returns:} @code{GNUTLS_E_SUCCESS} on success, or an error code.
|
|
Packit |
aea12f |
|
|
Packit |
aea12f |
@strong{Since:} 2.1.4
|
|
Packit |
aea12f |
@end deftypefun
|