NAME

catpsd_getcert - extract certificate from a Virtual Card

SYNOPSIS

#include <cat/cat.h>

int catpsd_getcert(cat_psd *handle, cat_data *certificate);

DESCRIPTION

This function returns the certificate from the open Virtual Card represented by handle. The certificate data is allocated and returned in the cat_data structure pointed to by certificate.

The data member of the certificate must be freed by the caller.

The function returns 0 if successful, or a negative code on error.

SEE ALSO

catpsd