gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gnutls-dev] External signing API


From: Alon Bar-Lev
Subject: Re: [gnutls-dev] External signing API
Date: Sun, 12 Aug 2007 08:13:24 +0300

On 8/11/07, Simon Josefsson <address@hidden> wrote:
> "Alon Bar-Lev" <address@hidden> writes:
> Ah, makes sense.  Added.  I also added some new error codes, see patches
> below.
>
> I've git-push'ed the changes, so tomorrow's daily snapshot should
> contain this stuff (I can't trigger generation of a new daily snapshot
> right now).

Thanks!
Working for me!

Some questions:
1. Why don't you pass pointers to datum?
2. Why only the hash is const?
3. What do you expect the cert_type to be used? Can't it queried out the cert?

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

Available at:
http://alon.barlev.googlepages.com/gnutls-pkcs11-0.02.tar.bz2

Regards,
Alon Bar-Lev.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]