Mercurial > dropbear
comparison common-kex.c @ 1459:06d52bcb8094
Pointer parameter could be declared as pointing to const
author | Francois Perrad <francois.perrad@gadz.org> |
---|---|
date | Sat, 19 Aug 2017 17:16:13 +0200 |
parents | 553c6bb80265 |
children | 5916af64acd4 |
comparison
equal
deleted
inserted
replaced
1458:bdd3802c8ac6 | 1459:06d52bcb8094 |
---|---|
712 { | 712 { |
713 m_burn(param->priv, CURVE25519_LEN); | 713 m_burn(param->priv, CURVE25519_LEN); |
714 m_free(param); | 714 m_free(param); |
715 } | 715 } |
716 | 716 |
717 void kexcurve25519_comb_key(struct kex_curve25519_param *param, buffer *buf_pub_them, | 717 void kexcurve25519_comb_key(const struct kex_curve25519_param *param, const buffer *buf_pub_them, |
718 sign_key *hostkey) { | 718 sign_key *hostkey) { |
719 unsigned char out[CURVE25519_LEN]; | 719 unsigned char out[CURVE25519_LEN]; |
720 const unsigned char* Q_C = NULL; | 720 const unsigned char* Q_C = NULL; |
721 const unsigned char* Q_S = NULL; | 721 const unsigned char* Q_S = NULL; |
722 char zeroes[CURVE25519_LEN] = {0}; | 722 char zeroes[CURVE25519_LEN] = {0}; |