A new Open Server library bit mask SRV_EXTENDED_ENCRYPT is provided, allowing server applications to obtain negotiated properties of server threads used with the extended password encryption feature. srv_thread_props(CS_GET, SRV_T_NEGLOGIN) is used to obtain negotiation properties of server threads.
CS_RETCODE srv_thread_props(SRV_PROC *spp, CS_INT cmd, CS_INT property, CS_VOID *bufp, CS_INT buflen, CS_INT *outlenp)
spp
Pointer to internal thread control structure.
action
Symbolic value for CS_GET.
property
Symbolic name for SRV_T_NEGLOGIN.
buffer
Pointer to CS_INT variable. This CS_INT is the bit mask “or” value of all negotiation types. All possible values for SRV_T_NEGLOGIN are:
SRV_CHALLENGE ((CS_INT)0X0001)
SRV_ENCRYPT ((CS_INT)0X0002)
SRV_SECLABEL ((CS_INT)0X0004)
SRV_APPDEFINED ((CS_INT)0X0008)
SRV_EXTENDED_ENCRYPT ((CS_INT)0X0010)
buflen
Size of CS_INT.
outlen
Unused parameter that should be passed as NULL.