Lines Matching defs:metainfo
135 CK_TOKEN_INFO metainfo;
148 &metainfo);
156 metainfo.ulTotalPublicMemory = CK_UNAVAILABLE_INFORMATION;
157 metainfo.ulFreePublicMemory = CK_UNAVAILABLE_INFORMATION;
158 metainfo.ulTotalPrivateMemory = CK_UNAVAILABLE_INFORMATION;
159 metainfo.ulFreePrivateMemory = CK_UNAVAILABLE_INFORMATION;
161 metainfo.flags = CKF_WRITE_PROTECTED;
163 metainfo.ulMaxPinLen = 0;
164 metainfo.ulMinPinLen = 0;
165 metainfo.hardwareVersion.major =
167 metainfo.hardwareVersion.minor =
169 metainfo.firmwareVersion.major =
171 metainfo.firmwareVersion.minor =
180 (void) memcpy(metainfo.label, METASLOT_TOKEN_LABEL, 32);
181 (void) memcpy(metainfo.manufacturerID,
183 (void) memcpy(metainfo.model, METASLOT_TOKEN_MODEL, 16);
184 (void) memset(metainfo.serialNumber, ' ', 16);
186 metainfo.ulMaxSessionCount = CK_EFFECTIVELY_INFINITE;
187 metainfo.ulSessionCount = num_meta_sessions;
188 metainfo.ulMaxRwSessionCount = CK_EFFECTIVELY_INFINITE;
189 metainfo.ulRwSessionCount = num_rw_meta_sessions;
191 metainfo.flags |= CKF_RNG;
192 metainfo.flags &= ~CKF_RESTORE_KEY_NOT_NEEDED;
193 metainfo.flags |= CKF_TOKEN_INITIALIZED;
194 metainfo.flags &= ~CKF_SECONDARY_AUTHENTICATION;
197 if (!(metainfo.flags & CKF_CLOCK_ON_TOKEN))
198 (void) memset(metainfo.utcTime, ' ', 16);
200 *pInfo = metainfo;