Mercurial > dropbear
comparison cli-kex.c @ 1702:8f93f37c01de
Allow DH to be completely disabled (#97)
Reduces binary size by ~2kB by default and by 21kB with no other
libtommath functions users, ex. with curve25519 kex and ed25519
key only.
author | Vladislav Grishenko <themiron@users.noreply.github.com> |
---|---|
date | Thu, 28 May 2020 20:01:48 +0500 |
parents | 435cfb9ec96e |
children | 6e71440b1e47 |
comparison
equal
deleted
inserted
replaced
1701:6e5037ae2c1c | 1702:8f93f37c01de |
---|---|
153 } | 153 } |
154 break; | 154 break; |
155 #endif | 155 #endif |
156 } | 156 } |
157 | 157 |
158 #if DROPBEAR_NORMAL_DH | |
158 if (cli_ses.dh_param) { | 159 if (cli_ses.dh_param) { |
159 free_kexdh_param(cli_ses.dh_param); | 160 free_kexdh_param(cli_ses.dh_param); |
160 cli_ses.dh_param = NULL; | 161 cli_ses.dh_param = NULL; |
161 } | 162 } |
163 #endif | |
162 #if DROPBEAR_ECDH | 164 #if DROPBEAR_ECDH |
163 if (cli_ses.ecdh_param) { | 165 if (cli_ses.ecdh_param) { |
164 free_kexecdh_param(cli_ses.ecdh_param); | 166 free_kexecdh_param(cli_ses.ecdh_param); |
165 cli_ses.ecdh_param = NULL; | 167 cli_ses.ecdh_param = NULL; |
166 } | 168 } |