View | Details | Raw Unified | Return to bug 203693 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-2 / +2 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=		ftimes
4
PORTNAME=		ftimes
5
PORTVERSION=		3.11.0
5
PORTVERSION=		3.11.0
6
PORTREVISION=	1
6
PORTREVISION=	2
7
CATEGORIES=		security sysutils
7
CATEGORIES=		security sysutils
8
MASTER_SITES=		SF
8
MASTER_SITES=		SF
9
9
Lines 53-59 Link Here
53
			${WRKSRC}/tools/zipmap/zipmap
53
			${WRKSRC}/tools/zipmap/zipmap
54
54
55
OPTIONS_DEFINE=		DBM_TOOLS DIG_TOOLS FILE_HOOKS HASHDIG_TOOLS MAP_TOOLS SSL XMAGIC
55
OPTIONS_DEFINE=		DBM_TOOLS DIG_TOOLS FILE_HOOKS HASHDIG_TOOLS MAP_TOOLS SSL XMAGIC
56
OPTIONS_DEFAULT=	DBM_TOOLS DIG_TOOLS FILE_HOOKS HASHDIG_TOOLS MAP_TOOLS SSL XMAGIC
56
OPTIONS_DEFAULT=	DBM_TOOLS DIG_TOOLS FILE_HOOKS HASHDIG_TOOLS MAP_TOOLS XMAGIC
57
DBM_TOOLS_DESC=		Install DBM tools
57
DBM_TOOLS_DESC=		Install DBM tools
58
DIG_TOOLS_DESC=		Install dig tools
58
DIG_TOOLS_DESC=		Install dig tools
59
FILE_HOOKS_DESC=	Include file hooks support
59
FILE_HOOKS_DESC=	Include file hooks support
(-)files/patch-src__ssl.c (+46 lines)
Line 0 Link Here
1
diff -urN ftimes-3.11.0.old/src/ssl.c ftimes-3.11.0.new/src/ssl.c
2
--- src/ssl.c	2014-07-18 02:40:44.000000000 -0400
3
+++ src/ssl.c	2016-01-13 17:18:29.073028573 -0500
4
@@ -251,7 +251,7 @@
5
    *
6
    *********************************************************************
7
    */
8
-  psProperties->psslCTX = SSL_CTX_new(SSLv3_client_method());
9
+  psProperties->psslCTX = SSL_CTX_new(SSLv23_client_method());
10
   if (psProperties->psslCTX == NULL)
11
   {
12
     ERR_error_string(ERR_get_error(), acLocalError);
13
@@ -262,6 +262,33 @@
14
   /*-
15
    *********************************************************************
16
    *
17
+   * Disable protocol versions that are no longer safe to use.
18
+   *
19
+   *********************************************************************
20
+   */
21
+  SSL_CTX_set_options
22
+  (
23
+    psProperties->psslCTX,
24
+    (
25
+        0
26
+#ifdef  SSL_OP_NO_SSLv2
27
+      | SSL_OP_NO_SSLv2
28
+#endif
29
+#ifdef  SSL_OP_NO_SSLv3
30
+      | SSL_OP_NO_SSLv3
31
+#endif
32
+#ifdef  SSL_OP_NO_TLSv1
33
+      | SSL_OP_NO_TLSv1
34
+#endif
35
+#ifdef  SSL_OP_NO_TLSv1_1
36
+      | SSL_OP_NO_TLSv1_1
37
+#endif
38
+    )
39
+  );
40
+
41
+  /*-
42
+   *********************************************************************
43
+   *
44
    * Setup SSL certificate verification. Load the bundled certificate
45
    * authorities file. A common name (CN) and a positive chain length
46
    * must be specified to activate PEER verification. If you want to

Return to bug 203693