dbsechandle

Description

Install user functions to handle secure logins.

Syntax

RETCODE *dbsechandle(type, handler)
 
DBINT                type;
INTFUNCPTR     (*handler)();

Parameters

type

An integer variable with one of the symbolic values shown in Table 2-25.

Table 2-25: Values for type (dbsechandle)

Value of type

dbsechandle

DBENCRYPT

Installs a function to handle password encryption

DBLABELS

Installs a function to handle login security labels

handler

A pointer to the user function that DB-Library will call whenever the corresponding type of secure login needs to be handled.

If handler is NULL and type is DBENCRYPT, DB-Library will use its default encryption handler.

If handler is NULL and type is DBLABELS, dbsechandle uninstalls any current label handler.

Returns

SUCCEED or FAIL.

Usage


Encrypted password secure logins


Security label secure logins

See also

DBSETLENCRYPT, dbopen.