~ubuntu-branches/ubuntu/trusty/gnustep-base/trusty

« back to all changes in this revision

Viewing changes to debian/patches/gnutls-deprecated.patch

  • Committer: Package Import Robot
  • Author(s): Benjamin Drung
  • Date: 2012-11-21 13:56:22 UTC
  • mfrom: (8.1.5 experimental)
  • Revision ID: package-import@ubuntu.com-20121121135622-1w035dpxneardw8q
Tags: 1.24.0-1ubuntu1
Backport upstream fix for recent libxml2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
2011-05-17  Yavor Doganov  <yavor@gnu.org>
2
 
 
3
 
        * Source/GSSocketStream.m ([GSStreamHandler
4
 
          -initWithInput:output]): Replace
5
 
          `gnutls_protocol_set_priority' with
6
 
          `gnutls_priority_set_direct'.
7
 
 
8
 
 
9
 
--- gnustep-base.orig/Source/GSSocketStream.m
10
 
+++ gnustep-base/Source/GSSocketStream.m
11
 
@@ -492,21 +492,11 @@
12
 
 
13
 
   if ([proto isEqualToString: NSStreamSocketSecurityLevelTLSv1] == YES)
14
 
     {
15
 
-      const int proto_prio[4] = {
16
 
-#if    defined(GNUTLS_TLS1_2)
17
 
-        GNUTLS_TLS1_2,
18
 
-#endif
19
 
-        GNUTLS_TLS1_1,
20
 
-        GNUTLS_TLS1_0,
21
 
-        0 };
22
 
-      gnutls_protocol_set_priority (session, proto_prio);
23
 
+      gnutls_priority_set_direct (session, "TLS1.2:TLS1.1:TLS1.0", NULL);
24
 
     }
25
 
   if ([proto isEqualToString: NSStreamSocketSecurityLevelSSLv3] == YES)
26
 
     {
27
 
-      const int proto_prio[2] = {
28
 
-        GNUTLS_SSL3,
29
 
-        0 };
30
 
-      gnutls_protocol_set_priority (session, proto_prio);
31
 
+      gnutls_priority_set_direct (session, "SSL3.0", NULL);
32
 
     }
33
 
 
34
 
 /*