Security types

Open Server supports Secure Adaptive Server boundary and sensitivity datatypes by defining the type constants CS_BOUNDARY_TYPE and CS_SENSITIVITY_TYPE.

These type constants differ from other Open Server type constants in that they do not correspond to similarly-named type definitions. Instead, they correspond to CS_CHAR.

This means that although Open Server routines accept and return CS_BOUNDARY_TYPE and CS_SENSITIVITY_TYPE to describe a column or variable’s datatype, any corresponding program variable must be of type CS_CHAR.

For example, if an application calls srv_bind with the datatype field of the CS_DATAFMT structure set to CS_SENSITIVITY_TYPE, the program variable to which the data is being bound must be of type CS_CHAR.