1gnutls_set_default_priority_append(3)gnutlsgnutls_set_default_priority_append(3)
2
3
4
6 gnutls_set_default_priority_append - API function
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_set_default_priority_append(gnutls_session_t session, const
12 char * add_prio, const char ** err_pos, unsigned flags);
13
15 gnutls_session_t session
16 is a gnutls_session_t type.
17
18 const char * add_prio
19 is a string describing priorities to be appended to default
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
25 unsigned flags
26 must be zero
27
29 Sets the default priority on the ciphers, key exchange methods, and
30 macs with the additional options in add_prio . This is the recommended
31 method of setting the defaults when only few additional options are to
32 be added. This promotes consistency between applications using GnuTLS,
33 and allows GnuTLS using applications to update settings in par with the
34 library.
35
36 The add_prio string should start as a normal priority string, e.g.,
37 with ':'.
38
39 To allow a user to override the defaults (e.g., when a user interface
40 or configuration file is available), the functions gnutls_prior‐
41 ity_set_direct() or gnutls_priority_set() can be used.
42
44 GNUTLS_E_SUCCESS on success, or an error code.
45
47 3.6.3
48
50 Report bugs to <bugs@gnutls.org>.
51 Home page: https://www.gnutls.org
52
53
55 Copyright © 2001-2023 Free Software Foundation, Inc., and others.
56 Copying and distribution of this file, with or without modification,
57 are permitted in any medium without royalty provided the copyright no‐
58 tice and this notice are preserved.
59
61 The full documentation for gnutls is maintained as a Texinfo manual.
62 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
63 visit
64
65 https://www.gnutls.org/manual/
66
67gnutls 3.8.2gnutls_set_default_priority_append(3)