1gnutls_priority_set_direct(3) gnutls gnutls_priority_set_direct(3)
2
3
4
6 gnutls_priority_set_direct - API function
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_priority_set_direct(gnutls_session_t session, const char *
12 priorities, const char ** err_pos);
13
15 gnutls_session_t session
16 is a gnutls_session_t type.
17
18 const char * priorities
19 is a string describing priorities
20
21 const char ** err_pos
22 In case of an error this will have the position in the
23 string the error occurred
24
26 Sets the priorities to use on the ciphers, key exchange methods, and
27 macs. This function avoids keeping a priority cache and is used to
28 directly set string priorities to a TLS session. For documentation
29 check the gnutls_priority_init().
30
31 To use a reasonable default, consider using gnutls_set_default_prior‐
32 ity(), or gnutls_set_default_priority_append() instead of this func‐
33 tion.
34
36 On syntax error GNUTLS_E_INVALID_REQUEST is returned, GNUTLS_E_SUCCESS
37 on success, or an error code.
38
40 Report bugs to <bugs@gnutls.org>.
41 Home page: https://www.gnutls.org
42
43
45 Copyright © 2001-2019 Free Software Foundation, Inc., and others.
46 Copying and distribution of this file, with or without modification,
47 are permitted in any medium without royalty provided the copyright
48 notice and this notice are preserved.
49
51 The full documentation for gnutls is maintained as a Texinfo manual.
52 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
53 visit
54
55 https://www.gnutls.org/manual/
56
57gnutls 3.6.8 gnutls_priority_set_direct(3)