Key Acquisition Functions

By default, the SSP supplies encryption keys to server programs that request them. Each SSP implements its own system of generating keys. The format of the keys that the SSP generates are specific to the SSP.

RPC provides you with the ability to override the default method of generating encryption keys. Your application can call the RpcServerRegisterAuthInfo function and pass it a pointer to a key acquisition function. You can write the key acquisition function so that it generates keys using any method you choose. However, the key it passes to the server program must match the format that the SSP requires.


Most applications do not need to use key acquisition functions, and can simply supply NULL to all parameters where a key acquisition function is requested.