search for: sc_prkey_op_init

Displaying 3 results from an estimated 3 matches for "sc_prkey_op_init".

2003 Jun 03
6
[Bug 584] scard-opensc.c doesn't work without PIN
...OpenSSH Version: -current Platform: All OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Smartcard AssignedTo: openssh-bugs at mindrot.org ReportedBy: larsch at trustcenter.de The function sc_prkey_op_init (in scard-opensc.c) requires for every private key a PKCS#15 AuthenticationObject object, but the this object is optional => sc_prkey_op_init fails if the key is not protected by a PIN. If sc_pkcs15_find_pin_by_auth_id retuns SC_ERROR_OBJECT_NOT_FOUND then (most likely) a PIN is not required to...
2002 Jul 20
0
opensc smartcard support does not work
...ect_card(ctx->reader[sc_reader_id], 0, &card); if (r) goto err; *************** *** 190,212 **** unsigned char *sigret, unsigned int *siglen, RSA *rsa) { struct sc_pkcs15_object *key_obj; ! int r; unsigned long flags = 0; r = sc_prkey_op_init(rsa, &key_obj); ! if (r) ! return -1; /* FIXME: length of sigret correct? */ /* FIXME: check 'type' and modify flags accordingly */ ! flags = SC_ALGORITHM_RSA_PAD_PKCS1 | SC_ALGORITHM_RSA_HASH_SHA1; r = sc_pkcs15_compute_signature(p15car...
2007 Mar 11
4
[Bug 1294] includes.h should pull in string.h based on HAVE_STRING_H
...e str* and mem* functions but are inconsistent as to whether they include string.h ... for example, these files do not include string.h, yet they use funcs: entropy.c scard-opensc.c ssh-rand-helper.c in the case of scard-opensc.c, it results in ugly warnings like: scard-opensc.c: In function 'sc_prkey_op_init': scard-opensc.c:176: warning: implicit declaration of function 'strcmp' scard-opensc.c:188: warning: implicit declaration of function 'strlen' scard-opensc.c:188: warning: incompatible implicit declaration of built-in function 'strlen' scard-opensc.c:198: warning: impli...