From cde94ae2de81e739533b11765104c05df4c1122e Mon Sep 17 00:00:00 2001 From: reyk Date: Mon, 21 Apr 2014 16:08:47 +0000 Subject: [PATCH] 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; /* -- 2.20.1