comparison signkey.c @ 793:70625eed40c9 ecc

A bit of work on ecdsa for host/auth keys
author Matt Johnston <matt@ucc.asn.au>
date Sun, 14 Apr 2013 00:50:03 +0800
parents f336d232fc63
children d386defb5376
comparison
equal deleted inserted replaced
768:6e6ce39da2fc 793:70625eed40c9
32 sign_key * new_sign_key() { 32 sign_key * new_sign_key() {
33 33
34 sign_key * ret; 34 sign_key * ret;
35 35
36 ret = (sign_key*)m_malloc(sizeof(sign_key)); 36 ret = (sign_key*)m_malloc(sizeof(sign_key));
37 #ifdef DROPBEAR_DSS
38 ret->dsskey = NULL;
39 #endif
40 #ifdef DROPBEAR_RSA
41 ret->rsakey = NULL;
42 #endif
43 ret->filename = NULL;
44 ret->type = DROPBEAR_SIGNKEY_NONE; 37 ret->type = DROPBEAR_SIGNKEY_NONE;
45 ret->source = SIGNKEY_SOURCE_INVALID; 38 ret->source = SIGNKEY_SOURCE_INVALID;
46 return ret; 39 return ret;
47 } 40 }
48 41