/*--------------------------------------------------------------*
 * UniMate Drive PKCS#11 global.h
 * 2015-04-10
 * Global define, value, header files
 *--------------------------------------------------------------*/


#ifndef __GLOBAL_PKCS__
#define __GLOBAL_PKCS__

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

#if (defined(_WIN32) || defined(_WIN64))
#include <conio.h>
#include <windows.h>
#endif

#include "cryptoki.h"

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

/* The user password(PIN)
*/
#define USER_PIN	(CK_CHAR *)"11111111"

/* The security officer password(PIN)
*/
#define ADMIN_PIN	(CK_CHAR *)"00000000"

/* Label of public key
*/
#define labelPu		"My public key"

/* Label of private key
*/
#define labelPr		"My private key"


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

#endif // __GLOBAL_PKCS__