#include <stdio.h>
#include <nss.h>
#include <nspr.h>

int main (int argc, char *argv[])
{
	PR_Init (PR_SYSTEM_THREAD, PR_PRIORITY_NORMAL, 10);
	
	if (NSS_InitReadWrite ("/tmp") == SECFailure) {
		if (NSS_NoDB_Init ("/tmp") == SECFailure) {
			printf ("Failed to initialize NSS");
			return -1;
		}
	}
	
	printf ("NSS init OK\n");
	
	return 0;
}
