NAME

catcert_setchecktype - set the peer certificate check type.

SYNOPSIS

#include <cat/cat.h>

int catcert_setchecktype(cat_session *sess, int type);

DESCRIPTION

This function sets to type the type of validation to be performed on the peer certificate during an authentication negotiation in sess. type can be any of the following types.

CATCERT_VERIFY_LOCAL
The certificate is received during SSL negotiation and should be verified using any locally installed certificates that are trusted. You usually need to use catcert_setcafile() to set the path to a file that contains the certificates (in Base64 encoded format).

CATCERT_VERIFY_BOKS
The certificate is received during an ALLTAAS/ALLTAK negotiation and must be verified using a Keon Security Server 4.x with the necessary certificates installed.

RETURN VALUES

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

SEE ALSO

cat, catcert

catcert_setcafile