[pkg-opensc-commit] [engine-pkcs11] 46/152: accept pin from openssl - patch by ahasenack at terra.com.br

Eric Dorland eric at moszumanska.debian.org
Mon Oct 19 03:11:12 UTC 2015


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository engine-pkcs11.

commit b37630766464367e30b63212ae9fcbfec5e468ce
Author: Andreas Jellinghaus <andreas at ionisiert.de>
Date:   Tue Jul 3 15:02:22 2007 +0000

    accept pin from openssl - patch by ahasenack at terra.com.br
---
 src/engine_pkcs11.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/engine_pkcs11.c b/src/engine_pkcs11.c
index 8449754..d5d3e6f 100644
--- a/src/engine_pkcs11.c
+++ b/src/engine_pkcs11.c
@@ -99,6 +99,15 @@ int inc_verbose(void)
 static char *get_pin(UI_METHOD * ui_method, void *callback_data, char *sc_pin, int maxlen)
 {
 	UI *ui;
+	struct {
+		const void *password;
+		const char *prompt_info;
+	} *mycb = callback_data;
+
+	if (mycb->password) {
+		sc_pin = set_pin(mycb->password);
+		return sc_pin;
+	}
 
 	ui = UI_new();
 	if (ui_method != NULL)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/engine-pkcs11.git



More information about the pkg-opensc-commit mailing list