Mercurial > dropbear
comparison signkey.c @ 1252:3f4af834314d
Merge branch 'fperrad-20151231_indent'
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 15 Mar 2016 21:41:22 +0800 |
parents | c6346c63281b |
children | 55d485943eb0 139935236c72 |
comparison
equal
deleted
inserted
replaced
1248:739b3909c499 | 1252:3f4af834314d |
---|---|
315 TRACE(("type is %d", type)) | 315 TRACE(("type is %d", type)) |
316 | 316 |
317 #ifdef DROPBEAR_DSS | 317 #ifdef DROPBEAR_DSS |
318 if (type == DROPBEAR_SIGNKEY_DSS) { | 318 if (type == DROPBEAR_SIGNKEY_DSS) { |
319 buf_put_dss_priv_key(buf, key->dsskey); | 319 buf_put_dss_priv_key(buf, key->dsskey); |
320 TRACE(("leave buf_put_priv_key: dss done")) | 320 TRACE(("leave buf_put_priv_key: dss done")) |
321 return; | 321 return; |
322 } | 322 } |
323 #endif | 323 #endif |
324 #ifdef DROPBEAR_RSA | 324 #ifdef DROPBEAR_RSA |
325 if (type == DROPBEAR_SIGNKEY_RSA) { | 325 if (type == DROPBEAR_SIGNKEY_RSA) { |
326 buf_put_rsa_priv_key(buf, key->rsakey); | 326 buf_put_rsa_priv_key(buf, key->rsakey); |
327 TRACE(("leave buf_put_priv_key: rsa done")) | 327 TRACE(("leave buf_put_priv_key: rsa done")) |
328 return; | 328 return; |
329 } | 329 } |
330 #endif | 330 #endif |
331 #ifdef DROPBEAR_ECDSA | 331 #ifdef DROPBEAR_ECDSA |
332 if (signkey_is_ecdsa(type)) { | 332 if (signkey_is_ecdsa(type)) { |
333 ecc_key **eck = (ecc_key**)signkey_key_ptr(key, type); | 333 ecc_key **eck = (ecc_key**)signkey_key_ptr(key, type); |