1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

gnutls: don't use gnutls_certificate_type_set_priority.

This commit is contained in:
Giuseppe Scrivano 2011-08-11 10:32:44 +02:00
parent a73e3a914e
commit 76c651e3a1
2 changed files with 3 additions and 4 deletions

View File

@ -1,5 +1,8 @@
2011-08-11 Giuseppe Scrivano <gscrivano@gnu.org>
* gnutls.c (ssl_connect_wget): Remove call to deprecated function
`gnutls_certificate_type_set_priority'.
* Makefile.am (version.c): Don't invoke hg to set version string.
2011-08-10 Giuseppe Scrivano <gscrivano@gnu.org>

View File

@ -240,15 +240,11 @@ static struct transport_implementation wgnutls_transport =
bool
ssl_connect_wget (int fd)
{
static const int cert_type_priority[] = {
GNUTLS_CRT_X509, GNUTLS_CRT_OPENPGP, 0
};
struct wgnutls_transport_context *ctx;
gnutls_session session;
int err;
gnutls_init (&session, GNUTLS_CLIENT);
gnutls_set_default_priority (session);
gnutls_certificate_type_set_priority (session, cert_type_priority);
gnutls_credentials_set (session, GNUTLS_CRD_CERTIFICATE, credentials);
#ifndef FD_TO_SOCKET
# define FD_TO_SOCKET(X) (X)