From 1a4db21fe4e06f4a5e5b74e35027091370b54abb Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Thu, 4 Jun 2015 23:08:50 +0800 Subject: buf_getstring and buf_putstring now use non-unsigned char* --- svr-kex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svr-kex.c') diff --git a/svr-kex.c b/svr-kex.c index 6cc5433..96f4508 100644 --- a/svr-kex.c +++ b/svr-kex.c @@ -247,7 +247,7 @@ static void send_msg_kexdh_reply(mp_int *dh_e, buffer *ecdh_qs) { { struct kex_curve25519_param *param = gen_kexcurve25519_param(); kexcurve25519_comb_key(param, ecdh_qs, svr_opts.hostkey); - buf_putstring(ses.writepayload, param->pub, CURVE25519_LEN); + buf_putstring(ses.writepayload, (const char*)param->pub, CURVE25519_LEN); free_kexcurve25519_param(param); } #endif -- cgit v1.2.3