1gnutls_ext_raw_parse(3) gnutls gnutls_ext_raw_parse(3)
2
3
4
6 gnutls_ext_raw_parse - API function
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_ext_raw_parse(void * ctx, gnutls_ext_raw_process_func cb,
12 const gnutls_datum_t * data, unsigned int flags);
13
15 void * ctx a pointer to pass to callback function
16
17 gnutls_ext_raw_process_func cb
18 callback function to process each extension found
19
20 const gnutls_datum_t * data
21 TLS extension data
22
23 unsigned int flags
24 should be zero or GNUTLS_EXT_RAW_FLAG_TLS_CLIENT_HELLO or
25 GNUTLS_EXT_RAW_FLAG_DTLS_CLIENT_HELLO
26
28 This function iterates through the TLS extensions as passed in
29 data , passing the individual extension data to callback. The
30 data must conform to Extension extensions<0..2^16-1> format.
31
32 If flags is GNUTLS_EXT_RAW_TLS_FLAG_CLIENT_HELLO then this function
33 will parse the extension data from the position, as if the packet in
34 data is a client hello (without record or handshake headers) - as pro‐
35 vided by gnutls_handshake_set_hook_function().
36
37 The return value of the callback will be propagated.
38
40 GNUTLS_E_SUCCESS on success, or an error code. On unknown flags it re‐
41 turns GNUTLS_E_INVALID_REQUEST.
42
44 3.6.3
45
47 Report bugs to <bugs@gnutls.org>.
48 Home page: https://www.gnutls.org
49
50
52 Copyright © 2001- Free Software Foundation, Inc., and others.
53 Copying and distribution of this file, with or without modification,
54 are permitted in any medium without royalty provided the copyright no‐
55 tice and this notice are preserved.
56
58 The full documentation for gnutls is maintained as a Texinfo manual.
59 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
60 visit
61
62 https://www.gnutls.org/manual/
63
64gnutls 3.7.6 gnutls_ext_raw_parse(3)