549 extern CK_BYTE ber_AlgSha1[];
550 extern CK_ULONG ber_AlgSha1Len;
551
552 extern CK_C_INITIALIZE_ARGS cinit_args;
553
554 /*
555 * Function Prototypes
556 */
557 void *attach_shared_memory();
558 void detach_shared_memory(char *);
559
560 int API_Initialized();
561 void Terminate_All_Process_Sessions();
562 int API_Register();
563 void API_UnRegister();
564
565 void CreateXProcLock(void *);
566 int XProcLock(void *);
567 int XProcUnLock(void *);
568
569 void _init(void);
570 void loginit();
571 void logterm();
572 void logit(int, char *, ...);
573 void AddToSessionList(Session_Struct_t *);
574 void RemoveFromSessionList(Session_Struct_t *);
575
576 int Valid_Session(Session_Struct_t *, ST_SESSION_T *);
577
578 CK_BBOOL pin_expired(CK_SESSION_INFO *, CK_FLAGS);
579 CK_BBOOL pin_locked(CK_SESSION_INFO *, CK_FLAGS);
580 void set_login_flags(CK_USER_TYPE, CK_FLAGS *);
581
582 extern void init_slot_info(TOKEN_DATA *);
583
584 CK_RV update_migration_data(TSS_HCONTEXT,
585 TSS_HKEY, TSS_HKEY, char *, char *, BYTE *, BYTE *);
586 CK_RV token_rng(TSS_HCONTEXT, CK_BYTE *, CK_ULONG);
587
588 TSS_RESULT set_public_modulus(TSS_HCONTEXT, TSS_HKEY,
589 unsigned long, unsigned char *);
|
549 extern CK_BYTE ber_AlgSha1[];
550 extern CK_ULONG ber_AlgSha1Len;
551
552 extern CK_C_INITIALIZE_ARGS cinit_args;
553
554 /*
555 * Function Prototypes
556 */
557 void *attach_shared_memory();
558 void detach_shared_memory(char *);
559
560 int API_Initialized();
561 void Terminate_All_Process_Sessions();
562 int API_Register();
563 void API_UnRegister();
564
565 void CreateXProcLock(void *);
566 int XProcLock(void *);
567 int XProcUnLock(void *);
568
569 void loginit();
570 void logterm();
571 void logit(int, char *, ...);
572 void AddToSessionList(Session_Struct_t *);
573 void RemoveFromSessionList(Session_Struct_t *);
574
575 int Valid_Session(Session_Struct_t *, ST_SESSION_T *);
576
577 CK_BBOOL pin_expired(CK_SESSION_INFO *, CK_FLAGS);
578 CK_BBOOL pin_locked(CK_SESSION_INFO *, CK_FLAGS);
579 void set_login_flags(CK_USER_TYPE, CK_FLAGS *);
580
581 extern void init_slot_info(TOKEN_DATA *);
582
583 CK_RV update_migration_data(TSS_HCONTEXT,
584 TSS_HKEY, TSS_HKEY, char *, char *, BYTE *, BYTE *);
585 CK_RV token_rng(TSS_HCONTEXT, CK_BYTE *, CK_ULONG);
586
587 TSS_RESULT set_public_modulus(TSS_HCONTEXT, TSS_HKEY,
588 unsigned long, unsigned char *);
|