SRV_NEG_EXTENDED_ENCRYPT, SRV_NEG_EXTENDED_LOCPWD, and SRV_NEG_EXTENDED_REMPWD

Three Open Server library negotiation types, SRV_NEG_EXTENDED_ENCRYPT, SRV_NEG_EXTENDED_LOCPWD, and SRV_NEG_EXTENDED_REMPWD, are provided for Open Server applications to send and receive data from a client.

Calling srv_negotiate(CS_SET, SRV_NEG_EXTENDED_ENCRYPT) is used to send to a client the negotiated login information and public key used to encrypt the password.

Calling srv_negotiate (CS_GET, SRV_NEG_EXTENDED_LOCPWD) allows an Open Server application to get the public key encrypted password that was sent by the client.

Calling srv_negotiate (CS_GET, SRV_NEG_EXTENDED_REMPWD) allows an Open Server application to get the variable number of pairs of remote server names and corresponding public key encrypted passwords sent by the client.

The usage of srv_negotiate sending SRV_NEG_EXTENDED_ENCRYPT and receiving SRV_NEG_EXTENDED_LOCPWD/SRV_NEG_EXTENDED_REMPWD is as follows:

Syntax

CS_RETCODE srv_negotiate (SRV_PROC *spp, CS_INT cmd, 
                       CS_INT type)

Parameters

spp

Pointer to internal thread control structure.

cmd

Symbolic value for CS_SET or CS_GET.

type

Symbolic name for SRV_NEG_EXTENDED_ENCRYPT (CS_SET only) or SRV_NEG_EXTENDED_LOCPWD/SRV_NEG_EXTENDED_REMPWD (CS_GET only).