CS_EXTENDED_ENCRYPT_CB

A callback handler type, CS_EXTENDED_ENCRYPT_CB, is provided to set the extended password encryption feature.

CS_EXTENDED_ENCRYPT_CB allows you to set the feature using the non-default public key encryption handler. The default handle performs the encryption expected by ASE as most applications connecting directly to ASE or to ASE via an Open Server gateway rely on default encryption.

Alternatively, CS_EXTENDED_ENCRYPT_CB sets the feature with the application’s public key encryption handler installed with ct_callback.

Syntax

CS_RETCODE ct_callback(CS_CONTEXT *context,
                      CS_CONNECTION *connection, 
                      CS_INT action, CS_INT type,
                      CS_VOID *func)

Parameters

context

Pointer to CS_CONTEXT structure.

connection

Pointer to CS_CONNECTION structure.

NoteEither context or connection must be NULL.

action

Symbolic value for CS_SET or CS_GET.

type

Symbolic name for CS_EXTENDED_ENCRYPT_CB.

func

Function pointer to encryption callback function.