NAME

catgen_protocol - get the protocol for a session

SYNOPSIS

#include <cat/gen.h>

int catgen_protocol(cat_session *sess);

DESCRIPTION

This function determines the encryption protocol configured to be used by sess.

RETURN VALUES

The return value indicates the encryption protocol in use. These can be the following:

CATGEN_PROTO_SSL
SSL v 3 protocol

CATGEN_PROTO_DASP
DASP (ALLTAK/ALLTAAS)

CATGEN_PROTO_PLAIN
No encryption protocol (plain pass-through proxy, used for testing purposes).

CATGEN_PROTO_UNKNOWN
The protocol is unknown or cannot be determined.

SEE ALSO

cat, catgen