Lines Matching refs:rv
34 CK_RV rv;
121 rv = C_Initialize(NULL_PTR);
123 if (rv != CKR_OK) {
124 fprintf(stderr, "C_Initialize: Error = 0x%.8X\n", rv);
129 rv = C_OpenSession(slot, CKF_RW_SESSION+CKF_SERIAL_SESSION,
132 if (rv != CKR_OK) {
133 fprintf(stderr, "C_OpenSession: Error = 0x%.8X\n", rv);
145 rv = C_Login(hSession, CKU_USER, pin, strlen((char *)pin));
147 if (rv != CKR_OK) {
148 fprintf(stderr, "C_Login: Error = 0x%.8X\n", rv);
154 rv = C_FindObjectsInit(hSession, search_template, 1);
155 if (rv != CKR_OK) {
156 fprintf(stderr, "C_FindObjectsInit: Error = 0x%.8X\n", rv);
160 rv = C_FindObjects(hSession, &privatekey, 1, &ulObjectCount);
161 if (rv != CKR_OK) {
162 fprintf(stderr, "C_FindObjects: Error = 0x%.8X\n", rv);
179 rv = C_GenerateKeyPair(hSession, &genmech, publickey_template,
187 if (rv != CKR_OK) {
188 fprintf(stderr, "C_GenerateKeyPair: Error = 0x%.8X\n", rv);
193 rv = C_FindObjectsFinal(hSession);
194 if (rv != CKR_OK) {
195 fprintf(stderr, "C_FindObjectsFinal: Error = 0x%.8X\n", rv);