[Top][All Lists]

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

Re: [PATCH] session ticket support

From: Simon Josefsson
Subject: Re: [PATCH] session ticket support
Date: Fri, 07 Aug 2009 01:59:26 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux)

Daiki Ueno <address@hidden> writes:

>>>>>> In <address@hidden> 
>>>>>>  Simon Josefsson <address@hidden> wrote:
>> >> Also, what do you think about a 'gnutls_session_ticket_key_format_t'
>> >> parameter?  I think some people may want to export the key in
>> >> text-format rather than raw binary.
>> >
>> > As another option, how about making gnutls_session_ticket_key_t a public
>> > struct so that people can write custom export function?
>> Thinking about that, doesn't a gnutls_datum_t suffice?
> Sorry, perhaps I misunderstood what you meant with "text-format".  I had
> thought that the key is represented as a set of attributes such as
> cipher/mac keys and used algorithms in human readable form.
> It is simply an option to select output format in binary or base64,
> isn't it?

I changed my mind: rather than supporting different formats and crypto
agility, the entire API would become:

  int gnutls_session_ticket_key_generate (gnutls_datum_t *key);

The algorithm used are chosen by the library.  The app has to write its
own import/export stuff.  What do you think?


reply via email to

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