[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
6.1.3 Common types
All strings that are to provided as input to GnuTLS functions should be in UTF-8 unless otherwise specified. Output strings are also in UTF-8 format unless otherwise specified.
When data of a fixed size are provided to GnuTLS functions then
the helper structure gnutls_datum_t
is often used. Its definition is
shown below.
typedef struct { unsigned char *data; unsigned int size; } gnutls_datum_t;
Other functions that require data for scattered read use a structure similar
to struct iovec
typically used by readv
. It is shown
below.
typedef struct { void *iov_base; /* Starting address */ size_t iov_len; /* Number of bytes to transfer */ } giovec_t;
This document was generated on February 9, 2014 using texi2html 5.0.