Blame doc/functions/gnutls_hex_encode
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@deftypefun {int} {gnutls_hex_encode} (const gnutls_datum_t * @var{data}, char * @var{result}, size_t * @var{result_size})
|
|
Packit Service |
4684c1 |
@var{data}: contain the raw data
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{result}: the place where hex data will be copied
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{result_size}: holds the size of the result
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This function will convert the given data to printable data, using
|
|
Packit Service |
4684c1 |
the hex encoding, as used in the PSK password files.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
Note that the size of the result includes the null terminator.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@strong{Returns:} @code{GNUTLS_E_SHORT_MEMORY_BUFFER} if the buffer given is not
|
|
Packit Service |
4684c1 |
long enough, or 0 on success.
|
|
Packit Service |
4684c1 |
@end deftypefun
|