Common Data Security Architecture (CDSA) White Paper
How to Create a CDSA Add-In Module for HP-UX
Please contact HP when you have need for these functions.
Sample Code Showing Bilateral Authentication in AddInAuthenticate()
Here is an example of typical code that might be added to an AddInAuthenticate function to accomplish bilateral authentication:
.
.
.
ISL_VERIFIED_MODULE_PTR VerifiedCLModulePtr = NULL;
ISL_STATUS islret;
void* retAddress;
ISL_CONST_DATA key = {0, NULL};
ISL_CONST_DATA signer = {0, NULL};
CSSM_PROC_ADDR tmp;
int i;
shl_t pImage = NULL; uint8 work[2][1024];
key.Data = (uint8 *)&work[0]; key.Length = 1024; signer.Data = (uint8 *)&work[1]; signer.Length = 1024;
pImage =
tmp = NULL;
if ((i = shl_findsym( (shl_t *)&pImage, “ISL_RetrieveRootIssuerKey”,
TYPE_PROCEDURE,
(void *)&tmp ) ) != 0 )
Chapter 1 | 61 |