This code demonstrates how to create root keys for NSS APIs (NetWare)
#include <stdio.h>
#include <stdlib.h>
#include <zPublics.h>
int main( void) {
Key_t root_key;
STATUS ccode;
if (( ccode = zRootKey( 0, &root_key)) != zOK) {
printf( "zRootKey failed, ccode = %d\n", ccode);
return EXIT_FAILURE;
}
if (( ccode = zClose( root_key)) != zOK) {
printf( "zClose failed, ccode = %d\n", ccode);
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}
© 2008 Novell, Inc. All Rights Reserved.