[gnutls-devel] gnutls_priority_set() with 'empty' priority argument

Tim Ruehsen tim.ruehsen at gmx.de
Tue Dec 20 15:07:34 CET 2016


Hi,

Nikos, after your patch on the wget mailing list I checked wget2 code.

In short:
##########
static gnutls_priority_t
	_priority_cache;

if (priorities) /* priority string from somewhere */
	gnutls_priority_init(&_priority_cache, priorities, NULL);

/* ... later ... */
gnutls_priority_set(session, _priority_cache);
##########

So, by default we give an 'empty' gnutls_priority_t var to 
gnutls_priority_set().

Q: is that correct resp. is that the same as 
gnutls_set_default_priority(session) ?

If not, should we call
	gnutls_priority_init(&_priority_cache, "NORMAL", NULL);
when no 'priorities' string is given ?

Regards, Tim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: </pipermail/attachments/20161220/5e4ac562/attachment.sig>


More information about the Gnutls-devel mailing list