The OpenSSL engine passes a "const u_char *" to the callback but
authorreyk <reyk@openbsd.org>
Mon, 21 Apr 2014 14:57:17 +0000 (14:57 +0000)
committerreyk <reyk@openbsd.org>
Mon, 21 Apr 2014 14:57:17 +0000 (14:57 +0000)
relayd's RSA privsep engine uses an iovec that expects a non-cast
"void *".  Cast it and disable the -Wcast-qual warning because I don't
want to copy the data and I didn't find a better way to implement it.

ok guenther@

usr.sbin/relayd/Makefile

index 6266eaa..e573d9a 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile,v 1.26 2014/04/18 13:55:26 reyk Exp $
+#      $OpenBSD: Makefile,v 1.27 2014/04/21 14:57:17 reyk Exp $
 
 PROG=          relayd
 SRCS=          parse.y
@@ -14,7 +14,7 @@ DPADD=                ${LIBEVENT} ${LIBSSL} ${LIBCRYPTO} ${LIBUTIL}
 CFLAGS+=       -Wall -I${.CURDIR} -I${.CURDIR}/../snmpd
 CFLAGS+=       -Wstrict-prototypes -Wmissing-prototypes
 CFLAGS+=       -Wmissing-declarations
-CFLAGS+=       -Wshadow -Wpointer-arith -Wcast-qual
+CFLAGS+=       -Wshadow -Wpointer-arith
 CFLAGS+=       -Wsign-compare
 CLEANFILES+=   y.tab.h