[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Priority strings
From: |
Ludovic Courtès |
Subject: |
Priority strings |
Date: |
Sun, 27 Feb 2011 19:59:16 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux) |
Hello!
I updated the Guile bindings in ‘master’ to wrap
‘gnutls_priority_set_direct’ and deprecate the old method.
However, could someone help me convert the test cases to use priority
strings?
For instance, ‘anonymous-auth.scm’ uses these priorities, after a
‘gnutls_set_default_priority’:
(define %protos (list protocol/tls-1.0))
(define %certs '())
(define %ciphers (list cipher/null cipher/arcfour cipher/aes-128-cbc
cipher/aes-256-cbc))
(define %kx (list kx/anon-dh))
(define %macs (list mac/sha1 mac/rmd160 mac/md5))
What would be the corresponding priority string?
Besides, while the old method was more verbose, it allowed programming
errors to be spotted more easily (in the Guile bindings, you would get a
type error if trying to use a MAC name when setting the cipher priority,
for instance.) Could it coexist alongside priority strings?
Thanks,
Ludo’.
- Priority strings,
Ludovic Courtès <=