File: gnutls_ext_raw_parse

package info (click to toggle)
gnutls28 3.8.9-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 83,872 kB
  • sloc: ansic: 388,071; asm: 117,804; sh: 18,477; makefile: 6,732; yacc: 1,858; python: 1,399; cpp: 1,243; perl: 995; sed: 16
file content (29 lines) | stat: -rw-r--r-- 1,142 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29




@deftypefun {int} {gnutls_ext_raw_parse} (void * @var{ctx}, gnutls_ext_raw_process_func @var{cb}, const gnutls_datum_t * @var{data}, unsigned int @var{flags})
@var{ctx}: a pointer to pass to callback function

@var{cb}: callback function to process each extension found

@var{data}: TLS extension data

@var{flags}: should be zero or @code{GNUTLS_EXT_RAW_FLAG_TLS_CLIENT_HELLO}  or @code{GNUTLS_EXT_RAW_FLAG_DTLS_CLIENT_HELLO} 

This function iterates through the TLS extensions as passed in
 @code{data} , passing the individual extension data to callback. The
 @code{data} must conform to Extension extensions<0..2^16-1> format.

If flags is @code{GNUTLS_EXT_RAW_TLS_FLAG_CLIENT_HELLO}  then this function
will parse the extension data from the position, as if the packet in
 @code{data} is a client hello (without record or handshake headers) -
as provided by @code{gnutls_handshake_set_hook_function()} .

The return value of the callback will be propagated.

@strong{Returns:} @code{GNUTLS_E_SUCCESS}  on success, or an error code. On unknown
flags it returns @code{GNUTLS_E_INVALID_REQUEST} .

@strong{Since:} 3.6.3
@end deftypefun