"Jonathan Manktelow" <[email protected]> writes:

> Hi, Is there any support for using certificates on smartcards with Gnutls?

You can set a callback used for signing using the API below.  There is a
branch in git, origin/gnutls_1_7_14_with_pkcs11, which uses the
interface to talk to a PKCS#11 library.  I tried it using Scute and my
Swedish eID identity card some time ago, and it seemed to work.

/Simon

  typedef int (*gnutls_sign_func) (gnutls_session_t session,
                                   void *userdata,
                                   gnutls_certificate_type_t cert_type,
                                   const gnutls_datum_t * cert,
                                   const gnutls_datum_t * hash,
                                   gnutls_datum_t * signature);

  void gnutls_sign_callback_set (gnutls_session_t session,
                                 gnutls_sign_func sign_func,
                                 void *userdata);


_______________________________________________
Help-gnutls mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gnutls

Reply via email to