NAME

catcert_getcert - get the local certificate

SYNOPSIS

#include <cat/cat.h>

int catcert_getcert(cat_session *sess, cat_data *mycert);

DESCRIPTION

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.

RETURN VALUES

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

SEE ALSO

cat, catcert, catcert_parse

catpsd_setpsd