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: Fri, 10 Aug 2007 15:12:31 +0300

Hi!

You need a way get the userdata (gnutls_sign_callback_get).

I guess integrating between certificate and private key to a single
object will take time... But it will be the simplest solution as they
are the same entity.

Please also add something like:
#define GNUTLS_E_LIBEXTESION_DEFINED_BASE -2000
#define GNUTLS_E_USER_DEFINED_BASE -3000

So that external library/user may define its own set of codes.

Best Regards,
Alon Bar-Lev.

On 8/10/07, Simon Josefsson <address@hidden> wrote:
> I'm now finally working on integrating the external signing API into the
> main branch.  Here is what I've came up with API-wise.  The names are
> intentionally slightly different from any other existing namespace since
> this is an experimental interface.  Do you need any other parameters?
>
>   /* External signing callback.  Experimental. */
>   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);
>
>   void gnutls_sign_callback_set (gnutls_session_t session,
>                                  gnutls_sign_func sign_func,
>                                  void *userdata);
>
> Thanks,
> Simon
>
> _______________________________________________
> Gnutls-dev mailing list
> address@hidden
> http://lists.gnupg.org/mailman/listinfo/gnutls-dev
>



reply via email to

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