Fixed the size of the string for hash entries in C_Initialize. Used rv instead of CKR_RV for a few returns. Check hSession in C_InitPIN and C_SetPIN. Removed include of stdio.h, was missed after debugging. Implemented C_GetSessionInfo, C_GetOperationState, C_SetOperationState, C_Login, C_Logout, C_CreateObject, C_CopyObject, C_DestroyObject, C_GetObjectSize, C_GetAttributeValue, C_SetAttributeValue, C_FindObjectsInit, C_FindObjects, C_FindObjectsFinal. Added __check_pTemplate and __create_CK_ATTRIBUTE functions for handling AV's with CK_ATTRIBUTE data.