Lines Matching refs:provider_id
164 pkcs11_provider_lookup(char *provider_id) in pkcs11_provider_lookup() argument
170 if (!strcmp(provider_id, p->name)) in pkcs11_provider_lookup()
178 pkcs11_del_provider(char *provider_id) in pkcs11_del_provider() argument
182 if ((p = pkcs11_provider_lookup(provider_id)) != NULL) { in pkcs11_del_provider()
1489 pkcs11_register_provider(char *provider_id, char *pin, in pkcs11_register_provider() argument
1512 if (pkcs11_provider_lookup(provider_id) != NULL) { in pkcs11_register_provider()
1514 __func__, provider_id); in pkcs11_register_provider()
1518 if ((handle = dlopen(provider_id, RTLD_NOW)) == NULL) { in pkcs11_register_provider()
1519 error("dlopen %s failed: %s", provider_id, dlerror()); in pkcs11_register_provider()
1527 p->name = xstrdup(provider_id); in pkcs11_register_provider()
1532 provider_id, rv); in pkcs11_register_provider()
1538 provider_id, rv); in pkcs11_register_provider()
1544 provider_id, rv); in pkcs11_register_provider()
1551 provider_id, in pkcs11_register_provider()
1564 provider_id); in pkcs11_register_provider()
1572 provider_id, rv); in pkcs11_register_provider()
1583 "failed: %lu", provider_id, (unsigned long)i, rv); in pkcs11_register_provider()
1589 provider_id, (unsigned long)i); in pkcs11_register_provider()
1598 provider_id, (unsigned long)i, in pkcs11_register_provider()
1636 provider_id, rv); in pkcs11_register_provider()
1655 pkcs11_add_provider(char *provider_id, char *pin, struct sshkey ***keyp, in pkcs11_add_provider() argument
1661 nkeys = pkcs11_register_provider(provider_id, pin, keyp, labelsp, in pkcs11_add_provider()
1672 provider_id); in pkcs11_add_provider()
1679 pkcs11_gakp(char *provider_id, char *pin, unsigned int slotidx, char *label, in pkcs11_gakp() argument
1692 if ((p = pkcs11_provider_lookup(provider_id)) != NULL) in pkcs11_gakp()
1693 debug("%s: provider \"%s\" available", __func__, provider_id); in pkcs11_gakp()
1694 else if ((ret = pkcs11_register_provider(provider_id, pin, NULL, NULL, in pkcs11_gakp()
1697 provider_id); in pkcs11_gakp()
1740 pkcs11_del_provider(provider_id); in pkcs11_gakp()
1746 pkcs11_destroy_keypair(char *provider_id, char *pin, unsigned long slotidx, in pkcs11_destroy_keypair() argument
1764 if ((p = pkcs11_provider_lookup(provider_id)) != NULL) { in pkcs11_destroy_keypair()
1765 debug("%s: using provider \"%s\"", __func__, provider_id); in pkcs11_destroy_keypair()
1766 } else if (pkcs11_register_provider(provider_id, pin, NULL, NULL, &p, in pkcs11_destroy_keypair()
1769 provider_id); in pkcs11_destroy_keypair()
1840 pkcs11_del_provider(provider_id); in pkcs11_destroy_keypair()
1862 pkcs11_add_provider(char *provider_id, char *pin, struct sshkey ***keyp) in pkcs11_add_provider() argument