Constructor

GioTlsPasswordnew

Declaration

GTlsPassword*
g_tls_password_new (
  GTlsPasswordFlags flags,
  const gchar* description
)

Description

Create a new GTlsPassword object.

Parameters

flags GTlsPasswordFlags
 

The password flags.

description const gchar*
 

Description of what the password is for.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.

Return value

Returns: GTlsPassword
 

The newly allocated password object.

 The caller of the function takes ownership of the data, and is responsible for freeing it.