From: reyk Date: Mon, 21 Apr 2014 16:08:47 +0000 (+0000) Subject: The OpenSSL engine passes a "const u_char *" to the callback but X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cde94ae2de81e739533b11765104c05df4c1122e;p=openbsd 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@ --- 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; /*