[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gnutls] Re: Gnutls Smartcard support?
From: |
Simon Josefsson |
Subject: |
[Help-gnutls] Re: Gnutls Smartcard support? |
Date: |
Thu, 05 Mar 2009 20:01:48 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.90 (gnu/linux) |
"Jonathan Manktelow" <address@hidden> 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);