From 820017337b5f6b3ea6a6aea85687f4e139e99e6c Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Mon, 21 Apr 2014 16:08:48 +0000 Subject: The OpenSSL engine passes a "const u_char *" to the callback but 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/ca.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/relayd/ca.c b/usr.sbin/relayd/ca.c index 9b3b7513f16..2b0cbb390bc 100644 --- a/usr.sbin/relayd/ca.c +++ b/usr.sbin/relayd/ca.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ca.c,v 1.4 2014/04/18 16:08:06 reyk Exp $ */ +/* $OpenBSD: ca.c,v 1.5 2014/04/21 16:08:47 reyk Exp $ */ /* * Copyright (c) 2014 Reyk Floeter @@ -269,7 +269,7 @@ rsae_send_imsg(int flen, const u_char *from, u_char *to, RSA *rsa, iov[cnt].iov_base = &cko; iov[cnt++].iov_len = sizeof(cko); - iov[cnt].iov_base = from; + iov[cnt].iov_base = (void *)from; iov[cnt++].iov_len = flen; /* -- cgit v1.2.3