/*--
	global.h

	2009-1-16	

	Global define, value, header files
--*/


#ifndef __GLOBAL_PKCS__
#define __GLOBAL_PKCS__


#include <stdlib.h>
#include <stdio.h>
#include <memory.h>
#include <string.h>

#pragma warning(disable:4103) 

#include "cryptoki.h"

/*	return value	*/
#define PKCS_OK		0
#define PKCS_FAILED	1


#define USER_PIN	(CK_CHAR *)"11111111"	//The user password(PIN)
#define ADMIN_PIN	(CK_CHAR *)"00000000"	//The security officer password
#define labelPu		"My public key"		//Label of public key
#define labelPr		"My private key"	//Label of private key


/*	title of program	*/
void ShowTitle(void);
int leave (char * c);
CK_FUNCTION_LIST_PTR InitFunctionList();
void Finalize();

#endif // __GLOBAL_PKCS__

// -- eof
