#include <cat/cat.h>
int catpsd_getcert(cat_psd *handle, cat_data *certificate);
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.