NAME

catboks_certtouser - map certificate to Keon 4.x user name

SYNOPSIS

#include <cat/boks.h>

int catboks_certtouser(cat_session *sess, char **user, int maxlen);

DESCRIPTION

This function asks the server to map the peer certificate onto a Keon 4.x user name.

If *user is null, it will be allocated and must be freed by the caller, otherwise it should point to at least maxlen bytes of memory.

RETURN VALUES

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

SEE ALSO

cat, catboks