catcert_getcert - get the local certificate
#include <cat/cat.h>
int catcert_getcert(cat_session *sess, cat_data *mycert);
This function gets the local certificate for session sess as set by a previous call to catpsd_setpsd(). The certificate is returned in the structure pointed to by mycert.
The data
field of mycert is allocated and must be freed by the caller.
The function returns 0 if successful, or a negative code otherwise.
cat, catcert, catcert_parse
catpsd_setpsd