From ad8d3c150d35a46ac3cfd8b6b43f265a8f55a2bc Mon Sep 17 00:00:00 2001 From: joe Date: Tue, 3 May 2011 15:27:18 +0000 Subject: * src/ne_socket.c (ne_sock_accept_ssl) [HAVE_GNUTLS]: Require a client cert if necessary, matching behaviour w/ OpenSSL. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1845 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845 --- src/ne_socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ne_socket.c b/src/ne_socket.c index 9f3f7d5..d950c7e 100644 --- a/src/ne_socket.c +++ b/src/ne_socket.c @@ -1693,7 +1693,7 @@ int ne_sock_accept_ssl(ne_socket *sock, ne_ssl_context *ctx) gnutls_db_set_ptr(ssl, ctx); if (ctx->verify) - gnutls_certificate_server_set_request(ssl, GNUTLS_CERT_REQUEST); + gnutls_certificate_server_set_request(ssl, GNUTLS_CERT_REQUIRE); sock->ssl = ssl; gnutls_transport_set_ptr(sock->ssl, (gnutls_transport_ptr)(long)sock->fd); -- cgit v1.2.1