Function

Valentcertificate_new

unstable since: 1.0

Declaration [src]

void
valent_certificate_new (
  const char* path,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

Get a TLS certificate and private key pair.

If path is given, this function ensures a TLS certificate with the filename certificate.pem and private key with filename private.pem exist in a directory at path.

Get the result with valent_certificate_new_finish().

Available since: 1.0

Parameters

path

Type: const char*

A directory path.

The argument can be NULL.
The data is owned by the caller of the function.
The value is a platform-native string, using the preferred OS encoding on Unix and UTF-8 on Windows.
cancellable

Type: GCancellable

GCancellable.

The argument can be NULL.
The data is owned by the caller of the function.
callback

Type: GAsyncReadyCallback

A GAsyncReadyCallback.

The argument can be NULL.
user_data

Type: gpointer

User supplied data.

The argument can be NULL.
The data is owned by the caller of the function.