Module Name: src Committed By: joerg Date: Wed Sep 16 15:32:53 UTC 2015
Modified Files: src/usr.bin/ftp: ssl.c Log Message: Workaround const issues of SSL_set_tlsext_host_name. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/usr.bin/ftp/ssl.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/ftp/ssl.c diff -u src/usr.bin/ftp/ssl.c:1.4 src/usr.bin/ftp/ssl.c:1.5 --- src/usr.bin/ftp/ssl.c:1.4 Sat Sep 12 20:23:27 2015 +++ src/usr.bin/ftp/ssl.c Wed Sep 16 15:32:53 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: ssl.c,v 1.4 2015/09/12 20:23:27 wiz Exp $ */ +/* $NetBSD: ssl.c,v 1.5 2015/09/16 15:32:53 joerg Exp $ */ /*- * Copyright (c) 1998-2004 Dag-Erling Coïdan Smørgrav @@ -34,7 +34,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: ssl.c,v 1.4 2015/09/12 20:23:27 wiz Exp $"); +__RCSID("$NetBSD: ssl.c,v 1.5 2015/09/16 15:32:53 joerg Exp $"); #endif #include <time.h> @@ -570,7 +570,7 @@ fetch_start_ssl(int sock, const char *se return NULL; } SSL_set_fd(ssl, sock); - if (!SSL_set_tlsext_host_name(ssl, servername)) { + if (!SSL_set_tlsext_host_name(ssl, __UNCONST(servername))) { fprintf(ttyout, "SSL hostname setting failed\n"); SSL_CTX_free(ctx); return NULL;