str

str

Functions

#define _()
#define N_()
int gnutls_utf8_password_normalize ()
#define BUFFER_APPEND()
#define BUFFER_APPEND_PFX4()
#define BUFFER_APPEND_PFX3()
#define BUFFER_APPEND_PFX2()
#define BUFFER_APPEND_PFX1()
#define BUFFER_APPEND_NUM()
#define BUFFER_APPEND_TS()
#define BUFFER_POP()
#define BUFFER_POP_DATUM()
#define BUFFER_POP_NUM()
#define BUFFER_POP_CAST_NUM()
#define BUFFER_POP_TS()

Types and Values

  gnutls_buffer_st
#define MAX_CN
#define MAX_DN

Description

Functions

_()

#define             _(String)

N_()

# define N_(String) gettext_noop (String)

gnutls_utf8_password_normalize ()

int
gnutls_utf8_password_normalize (const uint8_t *password,
                                unsigned  password_len,
                                gnutls_datum_t *out,
                                unsigned  flags);

This function will convert the provided UTF-8 password according to the normalization rules in RFC7613.

If the flag GNUTLS_UTF8_IGNORE_ERRS is specified, any UTF-8 encoding errors will be ignored, and in that case the output will be a copy of the input.

Parameters

password

contain the UTF-8 formatted password

 

plen

the length of the provided password

 

out

the result in an null-terminated allocated string

 

flags

should be zero

 

Returns

GNUTLS_E_INVALID_UTF8_STRING on invalid UTF-8 data, or 0 on success.

Since: 3.5.7


BUFFER_APPEND()

#define             BUFFER_APPEND(b, x, s)

BUFFER_APPEND_PFX4()

#define             BUFFER_APPEND_PFX4(b, x, s)

BUFFER_APPEND_PFX3()

#define             BUFFER_APPEND_PFX3(b, x, s)

BUFFER_APPEND_PFX2()

#define             BUFFER_APPEND_PFX2(b, x, s)

BUFFER_APPEND_PFX1()

#define             BUFFER_APPEND_PFX1(b, x, s)

BUFFER_APPEND_NUM()

#define             BUFFER_APPEND_NUM(b, s)

BUFFER_APPEND_TS()

#define             BUFFER_APPEND_TS(b, s)

BUFFER_POP()

#define             BUFFER_POP(b, x, s)

BUFFER_POP_DATUM()

#define             BUFFER_POP_DATUM(b, o)

BUFFER_POP_NUM()

#define             BUFFER_POP_NUM(b, o)

BUFFER_POP_CAST_NUM()

#define             BUFFER_POP_CAST_NUM(b, o)

BUFFER_POP_TS()

#define             BUFFER_POP_TS(b, o)

Types and Values

gnutls_buffer_st

typedef struct {
	uint8_t *allocd; /* pointer to allocated data */
	uint8_t *data;		/* API: pointer to data to copy from */
	size_t max_length;
	size_t length;		/* API: current length */
} gnutls_buffer_st;

MAX_CN

#define MAX_CN 256

MAX_DN

#define MAX_DN 1024