pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/comms/kermit/patches comms/kermit: this patch should b...
details: https://anonhg.NetBSD.org/pkgsrc/rev/90f5b285d833
branches: trunk
changeset: 426931:90f5b285d833
user: rhialto <rhialto%pkgsrc.org@localhost>
date: Wed Apr 08 16:22:00 2020 +0000
description:
comms/kermit: this patch should be added too.
diffstat:
comms/kermit/patches/patch-ckcftp.c | 31 +++++++++++++++++++++++++++++++
1 files changed, 31 insertions(+), 0 deletions(-)
diffs (35 lines):
diff -r 2aae3b5a1909 -r 90f5b285d833 comms/kermit/patches/patch-ckcftp.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/kermit/patches/patch-ckcftp.c Wed Apr 08 16:22:00 2020 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-ckcftp.c,v 1.1 2020/04/08 16:22:00 rhialto Exp $
+
+Use SSLv23_client_method() because it is version-flexible.
+The difference that Kermit makes between SSL and TLS is gone.
+
+--- ckcftp.c.orig 2011-07-14 18:17:30.000000000 +0200
++++ ckcftp.c 2020-04-06 17:01:35.943676852 +0200
+@@ -10196,19 +10196,19 @@
+ #define SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS 0L
+ #endif
+ if (auth_type && !strcmp(auth_type,"TLS")) {
+- ssl_ftp_ctx=SSL_CTX_new(SSLv3_client_method());
++ ssl_ftp_ctx=SSL_CTX_new(SSLv23_client_method());
+ if (!ssl_ftp_ctx)
+ return(0);
+ SSL_CTX_set_options(ssl_ftp_ctx,
+ SSL_OP_SINGLE_DH_USE|SSL_OP_EPHEMERAL_RSA
+ );
+ } else {
+- ssl_ftp_ctx = SSL_CTX_new(ftp_bug_use_ssl_v2 ? SSLv23_client_method() :
+- SSLv3_client_method());
++ ssl_ftp_ctx = SSL_CTX_new(SSLv23_client_method());
+ if (!ssl_ftp_ctx)
+ return(0);
+ SSL_CTX_set_options(ssl_ftp_ctx,
+- (ftp_bug_use_ssl_v2 ? 0 : SSL_OP_NO_SSLv2)|
++
++ (ftp_bug_use_ssl_v2 ? 0 : SSL_OP_NO_SSLv2/*|SSL_OP_NO_SSLv3*/)|
+ SSL_OP_SINGLE_DH_USE|SSL_OP_EPHEMERAL_RSA
+ );
+ }
Home |
Main Index |
Thread Index |
Old Index