Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/ftp Workaround const issues of SSL_set_tlsext_host_n...
details: https://anonhg.NetBSD.org/src/rev/6e5dc6bd2b32
branches: trunk
changeset: 340598:6e5dc6bd2b32
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Sep 16 15:32:53 2015 +0000
description:
Workaround const issues of SSL_set_tlsext_host_name.
diffstat:
usr.bin/ftp/ssl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0fbaf06d2900 -r 6e5dc6bd2b32 usr.bin/ftp/ssl.c
--- a/usr.bin/ftp/ssl.c Wed Sep 16 05:48:52 2015 +0000
+++ b/usr.bin/ftp/ssl.c Wed Sep 16 15:32:53 2015 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index