Novell Home

NSS01

From Developer Community

This code demonstrates how to create root keys for NSS APIs (NetWare)

Sample Code

#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;
}

--Dmitry Mityugov

Novell® Making IT Work As One

© 2008 Novell, Inc. All Rights Reserved.