Version 1.0.5
+- Fixed a bug where 'server name' extension was always sent.
- Backported several things from the development branch:
- Added CRL verification functionality to certtool.
- Corrected the CRL distribution point extension handling.
*/
#define GNUTLS_MAX_ALGORITHM_NUM 16
+#define GNUTLS_COMP_ZLIB GNUTLS_COMP_DEFLATE
typedef enum gnutls_compression_method { GNUTLS_COMP_NULL=1,
- GNUTLS_COMP_ZLIB,
+ GNUTLS_COMP_DEFLATE,
GNUTLS_COMP_LZO /* only available if gnutls-extra has been initialized
*/
} gnutls_compression_method;
/* allow the use of private ciphersuites.
*/
- if (disable_extensions == 0)
+ if (disable_extensions == 0) {
gnutls_handshake_set_private_extensions(session, 1);
-
- if (disable_extensions == 0)
gnutls_server_name_set(session, GNUTLS_NAME_DNS, hostname,
strlen(hostname));
+ gnutls_certificate_type_set_priority(session, cert_type_priority);
+ }
gnutls_cipher_set_priority(session, cipher_priority);
gnutls_compression_set_priority(session, comp_priority);
gnutls_kx_set_priority(session, kx_priority);
gnutls_protocol_set_priority(session, protocol_priority);
gnutls_mac_set_priority(session, mac_priority);
- gnutls_certificate_type_set_priority(session, cert_type_priority);
gnutls_dh_set_prime_bits(session, 512);