Lines Matching defs:hPK11

33 static void *hPK11 = NULL;
40 if (hPK11 != NULL)
43 hPK11 = dlopen(pk11_get_lib_name(), RTLD_NOW);
45 if (hPK11 == NULL) {
51 sym = (CK_C_Initialize)dlsym(hPK11, "C_Initialize");
66 if (hPK11 == NULL)
68 sym = (CK_C_Finalize)dlsym(hPK11, "C_Finalize");
72 if ((rv == CKR_OK) && (dlclose(hPK11) != 0))
74 hPK11 = NULL;
85 if (hPK11 == NULL)
87 if ((sym == NULL) || (hPK11 != pPK11)) {
88 pPK11 = hPK11;
89 sym = (CK_C_GetSlotList)dlsym(hPK11, "C_GetSlotList");
101 if (hPK11 == NULL)
103 if ((sym == NULL) || (hPK11 != pPK11)) {
104 pPK11 = hPK11;
105 sym = (CK_C_GetTokenInfo)dlsym(hPK11, "C_GetTokenInfo");
119 if (hPK11 == NULL)
121 if ((sym == NULL) || (hPK11 != pPK11)) {
122 pPK11 = hPK11;
123 sym = (CK_C_GetMechanismInfo)dlsym(hPK11,
142 if (hPK11 == NULL)
143 hPK11 = dlopen(pk11_get_lib_name(), RTLD_NOW);
144 if (hPK11 == NULL) {
150 if ((sym == NULL) || (hPK11 != pPK11)) {
151 pPK11 = hPK11;
152 sym = (CK_C_OpenSession)dlsym(hPK11, "C_OpenSession");
164 if (hPK11 == NULL)
166 if ((sym == NULL) || (hPK11 != pPK11)) {
167 pPK11 = hPK11;
168 sym = (CK_C_CloseSession)dlsym(hPK11, "C_CloseSession");
182 if (hPK11 == NULL)
184 if ((sym == NULL) || (hPK11 != pPK11)) {
185 pPK11 = hPK11;
186 sym = (CK_C_Login)dlsym(hPK11, "C_Login");
198 if (hPK11 == NULL)
200 if ((sym == NULL) || (hPK11 != pPK11)) {
201 pPK11 = hPK11;
202 sym = (CK_C_Logout)dlsym(hPK11, "C_Logout");
216 if (hPK11 == NULL)
218 if ((sym == NULL) || (hPK11 != pPK11)) {
219 pPK11 = hPK11;
220 sym = (CK_C_CreateObject)dlsym(hPK11, "C_CreateObject");
232 if (hPK11 == NULL)
234 if ((sym == NULL) || (hPK11 != pPK11)) {
235 pPK11 = hPK11;
236 sym = (CK_C_DestroyObject)dlsym(hPK11, "C_DestroyObject");
250 if (hPK11 == NULL)
252 if ((sym == NULL) || (hPK11 != pPK11)) {
253 pPK11 = hPK11;
254 sym = (CK_C_GetAttributeValue)dlsym(hPK11,
269 if (hPK11 == NULL)
271 if ((sym == NULL) || (hPK11 != pPK11)) {
272 pPK11 = hPK11;
273 sym = (CK_C_SetAttributeValue)dlsym(hPK11,
288 if (hPK11 == NULL)
290 if ((sym == NULL) || (hPK11 != pPK11)) {
291 pPK11 = hPK11;
292 sym = (CK_C_FindObjectsInit)dlsym(hPK11, "C_FindObjectsInit");
306 if (hPK11 == NULL)
308 if ((sym == NULL) || (hPK11 != pPK11)) {
309 pPK11 = hPK11;
310 sym = (CK_C_FindObjects)dlsym(hPK11, "C_FindObjects");
323 if (hPK11 == NULL)
325 if ((sym == NULL) || (hPK11 != pPK11)) {
326 pPK11 = hPK11;
327 sym = (CK_C_FindObjectsFinal)dlsym(hPK11,
342 if (hPK11 == NULL)
344 if ((sym == NULL) || (hPK11 != pPK11)) {
345 pPK11 = hPK11;
346 sym = (CK_C_EncryptInit)dlsym(hPK11, "C_EncryptInit");
361 if (hPK11 == NULL)
363 if ((sym == NULL) || (hPK11 != pPK11)) {
364 pPK11 = hPK11;
365 sym = (CK_C_Encrypt)dlsym(hPK11, "C_Encrypt");
378 if (hPK11 == NULL)
380 if ((sym == NULL) || (hPK11 != pPK11)) {
381 pPK11 = hPK11;
382 sym = (CK_C_DigestInit)dlsym(hPK11, "C_DigestInit");
396 if (hPK11 == NULL)
398 if ((sym == NULL) || (hPK11 != pPK11)) {
399 pPK11 = hPK11;
400 sym = (CK_C_DigestUpdate)dlsym(hPK11, "C_DigestUpdate");
414 if (hPK11 == NULL)
416 if ((sym == NULL) || (hPK11 != pPK11)) {
417 pPK11 = hPK11;
418 sym = (CK_C_DigestFinal)dlsym(hPK11, "C_DigestFinal");
432 if (hPK11 == NULL)
434 if ((sym == NULL) || (hPK11 != pPK11)) {
435 pPK11 = hPK11;
436 sym = (CK_C_SignInit)dlsym(hPK11, "C_SignInit");
451 if (hPK11 == NULL)
453 if ((sym == NULL) || (hPK11 != pPK11)) {
454 pPK11 = hPK11;
455 sym = (CK_C_Sign)dlsym(hPK11, "C_Sign");
469 if (hPK11 == NULL)
471 if ((sym == NULL) || (hPK11 != pPK11)) {
472 pPK11 = hPK11;
473 sym = (CK_C_SignUpdate)dlsym(hPK11, "C_SignUpdate");
487 if (hPK11 == NULL)
489 if ((sym == NULL) || (hPK11 != pPK11)) {
490 pPK11 = hPK11;
491 sym = (CK_C_SignFinal)dlsym(hPK11, "C_SignFinal");
505 if (hPK11 == NULL)
507 if ((sym == NULL) || (hPK11 != pPK11)) {
508 pPK11 = hPK11;
509 sym = (CK_C_VerifyInit)dlsym(hPK11, "C_VerifyInit");
524 if (hPK11 == NULL)
526 if ((sym == NULL) || (hPK11 != pPK11)) {
527 pPK11 = hPK11;
528 sym = (CK_C_Verify)dlsym(hPK11, "C_Verify");
542 if (hPK11 == NULL)
544 if ((sym == NULL) || (hPK11 != pPK11)) {
545 pPK11 = hPK11;
546 sym = (CK_C_VerifyUpdate)dlsym(hPK11, "C_VerifyUpdate");
560 if (hPK11 == NULL)
562 if ((sym == NULL) || (hPK11 != pPK11)) {
563 pPK11 = hPK11;
564 sym = (CK_C_VerifyFinal)dlsym(hPK11, "C_VerifyFinal");
579 if (hPK11 == NULL)
581 if ((sym == NULL) || (hPK11 != pPK11)) {
582 pPK11 = hPK11;
583 sym = (CK_C_GenerateKey)dlsym(hPK11, "C_GenerateKey");
603 if (hPK11 == NULL)
605 if ((sym == NULL) || (hPK11 != pPK11)) {
606 pPK11 = hPK11;
607 sym = (CK_C_GenerateKeyPair)dlsym(hPK11, "C_GenerateKeyPair");
629 if (hPK11 == NULL)
631 if ((sym == NULL) || (hPK11 != pPK11)) {
632 pPK11 = hPK11;
633 sym = (CK_C_DeriveKey)dlsym(hPK11, "C_DeriveKey");
652 if (hPK11 == NULL)
654 if ((sym == NULL) || (hPK11 != pPK11)) {
655 pPK11 = hPK11;
656 sym = (CK_C_SeedRandom)dlsym(hPK11, "C_SeedRandom");
670 if (hPK11 == NULL)
672 if ((sym == NULL) || (hPK11 != pPK11)) {
673 pPK11 = hPK11;
674 sym = (CK_C_GenerateRandom)dlsym(hPK11, "C_GenerateRandom");