Lines Matching defs:pInfo
97 C_GetSlotInfo(CK_SLOT_ID slotID, CK_SLOT_INFO_PTR pInfo)
107 if (pInfo == NULL)
111 (void) strncpy((char *)pInfo->slotDescription, SLOT_DESCRIPTION,
113 (void) strncpy((char *)pInfo->manufacturerID, MANUFACTURER_ID, 32);
114 pInfo->flags = CKF_TOKEN_PRESENT;
115 pInfo->hardwareVersion.major = HARDWARE_VERSION_MAJOR;
116 pInfo->hardwareVersion.minor = HARDWARE_VERSION_MINOR;
117 pInfo->firmwareVersion.major = FIRMWARE_VERSION_MAJOR;
118 pInfo->firmwareVersion.minor = FIRMWARE_VERSION_MINOR;
124 C_GetTokenInfo(CK_SLOT_ID slotID, CK_TOKEN_INFO_PTR pInfo)
136 if (pInfo == NULL)
140 (void) strncpy((char *)pInfo->label, KMS_TOKEN_LABEL, 32);
141 (void) strncpy((char *)pInfo->manufacturerID, MANUFACTURER_ID, 32);
142 (void) strncpy((char *)pInfo->model, KMS_TOKEN_MODEL, 16);
143 (void) strncpy((char *)pInfo->serialNumber, KMS_TOKEN_SERIAL, 16);
145 pInfo->flags = KMS_TOKEN_FLAGS;
146 pInfo->ulMaxSessionCount = CK_EFFECTIVELY_INFINITE;
147 pInfo->ulSessionCount = kms_session_cnt;
148 pInfo->ulMaxRwSessionCount = CK_EFFECTIVELY_INFINITE;
149 pInfo->ulRwSessionCount = kms_session_rw_cnt;
150 pInfo->ulMaxPinLen = MAX_PIN_LEN;
151 pInfo->ulMinPinLen = MIN_PIN_LEN;
152 pInfo->ulTotalPublicMemory = CK_UNAVAILABLE_INFORMATION;
153 pInfo->ulFreePublicMemory = CK_UNAVAILABLE_INFORMATION;
154 pInfo->ulTotalPrivateMemory = CK_UNAVAILABLE_INFORMATION;
155 pInfo->ulFreePrivateMemory = CK_UNAVAILABLE_INFORMATION;
156 pInfo->hardwareVersion.major = HARDWARE_VERSION_MAJOR;
157 pInfo->hardwareVersion.minor = HARDWARE_VERSION_MINOR;
158 pInfo->firmwareVersion.major = FIRMWARE_VERSION_MAJOR;
159 pInfo->firmwareVersion.minor = FIRMWARE_VERSION_MINOR;
160 (void) memset(pInfo->utcTime, ' ', 16);
168 pInfo->flags |= CKF_TOKEN_INITIALIZED;
170 pInfo->flags &= ~CKF_TOKEN_INITIALIZED;
228 CK_MECHANISM_INFO_PTR pInfo)
239 if (pInfo == NULL) {
253 pInfo->ulMinKeySize = kms_mechanism_info[i].ulMinKeySize;
254 pInfo->ulMaxKeySize = kms_mechanism_info[i].ulMaxKeySize;
255 pInfo->flags = kms_mechanism_info[i].flags;