comparison svr-kex.c @ 1122:aaf576b27a10

Merge pull request #13 from gazoo74/fix-warnings Fix warnings
author Matt Johnston <matt@ucc.asn.au>
date Thu, 04 Jun 2015 23:08:50 +0800
parents 2b62f26cf808
children c8f52c19e949
comparison
equal deleted inserted replaced
1087:1e486f368ec3 1122:aaf576b27a10
245 case DROPBEAR_KEX_CURVE25519: 245 case DROPBEAR_KEX_CURVE25519:
246 #ifdef DROPBEAR_CURVE25519 246 #ifdef DROPBEAR_CURVE25519
247 { 247 {
248 struct kex_curve25519_param *param = gen_kexcurve25519_param(); 248 struct kex_curve25519_param *param = gen_kexcurve25519_param();
249 kexcurve25519_comb_key(param, ecdh_qs, svr_opts.hostkey); 249 kexcurve25519_comb_key(param, ecdh_qs, svr_opts.hostkey);
250 buf_putstring(ses.writepayload, param->pub, CURVE25519_LEN); 250 buf_putstring(ses.writepayload, (const char*)param->pub, CURVE25519_LEN);
251 free_kexcurve25519_param(param); 251 free_kexcurve25519_param(param);
252 } 252 }
253 #endif 253 #endif
254 break; 254 break;
255 } 255 }