Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/httpd - need string.h



details:   https://anonhg.NetBSD.org/src/rev/ee17c9931c4c
branches:  trunk
changeset: 829596:ee17c9931c4c
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Feb 06 15:48:46 2018 +0000

description:
- need string.h
- cast options to long for OpenSSL-1.1

diffstat:

 libexec/httpd/ssl-bozo.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 498a4ac55e81 -r ee17c9931c4c libexec/httpd/ssl-bozo.c
--- a/libexec/httpd/ssl-bozo.c  Tue Feb 06 15:48:02 2018 +0000
+++ b/libexec/httpd/ssl-bozo.c  Tue Feb 06 15:48:46 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ssl-bozo.c,v 1.22 2015/12/28 07:37:59 mrg Exp $        */
+/*     $NetBSD: ssl-bozo.c,v 1.23 2018/02/06 15:48:46 christos Exp $   */
 
 /*     $eterna: ssl-bozo.c,v 1.15 2011/11/18 09:21:15 mrg Exp $        */
 
@@ -34,6 +34,7 @@
 
 #include <stdarg.h>
 #include <stdio.h>
+#include <string.h>
 #include <syslog.h>
 #include <unistd.h>
 
@@ -62,7 +63,7 @@
 
 #ifndef BOZO_SSL_OPTIONS
 #define BOZO_SSL_OPTIONS                                       \
-       (SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_TLSv1)
+       ((long)(SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_TLSv1))
 #endif
 
   /* this structure encapsulates the ssl info */



Home | Main Index | Thread Index | Old Index