Lines Matching refs:pin
240 char *pin = NULL, prompt[1024]; in pkcs11_rsa_private_encrypt() local
268 pin = read_passphrase(prompt, RP_ALLOW_EOF); in pkcs11_rsa_private_encrypt()
269 if (pin == NULL) in pkcs11_rsa_private_encrypt()
272 rv = f->C_Login(si->session, CKU_USER, (u_char *)pin, in pkcs11_rsa_private_encrypt()
273 (pin != NULL) ? strlen(pin) : 0); in pkcs11_rsa_private_encrypt()
274 if (pin != NULL) { in pkcs11_rsa_private_encrypt()
275 explicit_bzero(pin, strlen(pin)); in pkcs11_rsa_private_encrypt()
276 free(pin); in pkcs11_rsa_private_encrypt()
360 pkcs11_open_session(struct pkcs11_provider *p, CK_ULONG slotidx, char *pin) in pkcs11_open_session() argument
369 if (pin && login_required && !strlen(pin)) { in pkcs11_open_session()
379 if (login_required && pin) { in pkcs11_open_session()
381 (u_char *)pin, strlen(pin)); in pkcs11_open_session()
567 pkcs11_add_provider(char *provider_id, char *pin, struct sshkey ***keyp) in pkcs11_add_provider() argument
668 if (pkcs11_open_session(p, i, pin) == 0) in pkcs11_add_provider()