summaryrefslogtreecommitdiffstats
path: root/doc/functions/gnutls_priority_set_direct
diff options
context:
space:
mode:
Diffstat (limited to 'doc/functions/gnutls_priority_set_direct')
-rw-r--r--doc/functions/gnutls_priority_set_direct22
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/functions/gnutls_priority_set_direct b/doc/functions/gnutls_priority_set_direct
new file mode 100644
index 0000000..d1e40b8
--- /dev/null
+++ b/doc/functions/gnutls_priority_set_direct
@@ -0,0 +1,22 @@
+
+
+
+
+@deftypefun {int} {gnutls_priority_set_direct} (gnutls_session_t @var{session}, const char * @var{priorities}, const char ** @var{err_pos})
+@var{session}: is a @code{gnutls_session_t} type.
+
+@var{priorities}: is a string describing priorities
+
+@var{err_pos}: In case of an error this will have the position in the string the error occurred
+
+Sets the priorities to use on the ciphers, key exchange methods,
+and macs. This function avoids keeping a
+priority cache and is used to directly set string priorities to a
+TLS session. For documentation check the @code{gnutls_priority_init()} .
+
+To use a reasonable default, consider using @code{gnutls_set_default_priority()} ,
+or @code{gnutls_set_default_priority_append()} instead of this function.
+
+@strong{Returns:} On syntax error @code{GNUTLS_E_INVALID_REQUEST} is returned,
+@code{GNUTLS_E_SUCCESS} on success, or an error code.
+@end deftypefun