pkgsrc/comms/kermit/patches/patch-ckuus3.c
rhialto edd0f98587 comms/kermit: Adapt patches to openssl 1.1.1e.
Parts are inspired by the FreeBSD port.
I could not easily find a telnetd with SSL support so I did not really test it.
Without SSL/TLS, it disconnects from NetBSD's telnetd  if telnetd is run
with "-a valid" ("Authentication failed: No authentication method
available"); but "telnetd -a none" works.
2020-04-08 15:22:07 +00:00

15 lines
651 B
C

$NetBSD: patch-ckuus3.c,v 1.1 2020/04/08 15:22:07 rhialto Exp $
Use version-flexible method.
--- ckuus3.c.orig 2011-06-26 18:20:07.000000000 +0000
+++ ckuus3.c
@@ -13048,7 +13048,7 @@ case XYDEBU:
if (ssl_con == NULL) {
SSL_library_init();
ssl_ctx = (SSL_CTX *)
- SSL_CTX_new((SSL_METHOD *)TLSv1_method());
+ SSL_CTX_new((SSL_METHOD *)SSLv23_method());
if (ssl_ctx != NULL)
ssl_con= (SSL *) SSL_new(ssl_ctx);
}