diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2014-04-21 16:08:48 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2014-04-21 16:08:48 +0000 |
commit | 820017337b5f6b3ea6a6aea85687f4e139e99e6c (patch) | |
tree | 80e4579c199517eaaeb78a02732a40f1b7f38258 | |
parent | 9cea2678613ca3882854f0e3eb2d0239f34a4499 (diff) |
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@
-rw-r--r-- | usr.sbin/relayd/ca.c | 4 |
1 files 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 <reyk@openbsd.org> @@ -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; /* |