Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian Remote Packaging Team
freerdp-1.1-legacy
Commits
e42ec58a
Commit
e42ec58a
authored
Aug 12, 2017
by
Bernhard Miklautz
Committed by
Mike Gabriel
Aug 12, 2017
Browse files
debian/patches: Add 0009-enable-TLS-12.patch. Enable TLS 1+ support. (Closes: #871478).
parent
21711126
Changes
2
Hide whitespace changes
Inline
Side-by-side
debian/patches/0009-enable-TLS-12.patch
0 → 100644
View file @
e42ec58a
From 3ba81cbd5a59434f3053665e9fc4a432afd0db20 Mon Sep 17 00:00:00 2001
From: Bernhard Miklautz <bernhard.miklautz@shacknet.at>
Date: Thu, 10 Aug 2017 09:31:21 +0200
Subject: [PATCH 1/1] enable TLS 1+
Currently TLS version 1.0 is used implicitly by using the TLSv1_method.
To be able to also use TLS 1.1 and later use SSLv23_client_method
instead. To make sure SSLv2 or SSLv3 isn't used disable them.
cherry-picked from aa80f63b4ab19101cbdc376f7e0613ed410fee11
---
libfreerdp/crypto/tls.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
--- a/libfreerdp/crypto/tls.c
+++ b/libfreerdp/crypto/tls.c
@@ -102,7 +102,7 @@
int connection_status;
char *hostname;
- tls->ctx = SSL_CTX_new(TLSv1_client_method());
+ tls->ctx = SSL_CTX_new(SSLv23_client_method());
if (tls->ctx == NULL)
{
@@ -141,6 +141,12 @@
*/
options |= SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS;
+ /**
+ * disable SSLv2 and SSLv3
+ */
+ options |= SSL_OP_NO_SSLv2;
+ options |= SSL_OP_NO_SSLv3;
+
SSL_CTX_set_options(tls->ctx, options);
tls->ssl = SSL_new(tls->ctx);
debian/patches/series
View file @
e42ec58a
...
...
@@ -20,3 +20,4 @@
1012_typo-fix.patch
1013_aligned_meminfo_alignment.patch
0008-Fix-multiple-security-issues.patch
0009-enable-TLS-12.patch
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment