Mercurial > dropbear
comparison dss.c @ 801:7dcb46da72d9 ecc
merge in HEAD
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 21 May 2013 12:09:35 +0800 |
parents | f336d232fc63 9a5438271556 |
children | 724c3e0c8734 |
comparison
equal
deleted
inserted
replaced
799:c344607b7341 | 801:7dcb46da72d9 |
---|---|
99 | 99 |
100 | 100 |
101 /* Clear and free the memory used by a public or private key */ | 101 /* Clear and free the memory used by a public or private key */ |
102 void dss_key_free(dropbear_dss_key *key) { | 102 void dss_key_free(dropbear_dss_key *key) { |
103 | 103 |
104 TRACE(("enter dsa_key_free")) | 104 TRACE2(("enter dsa_key_free")) |
105 if (key == NULL) { | 105 if (key == NULL) { |
106 TRACE(("enter dsa_key_free: key == NULL")) | 106 TRACE2(("enter dsa_key_free: key == NULL")) |
107 return; | 107 return; |
108 } | 108 } |
109 if (key->p) { | 109 if (key->p) { |
110 mp_clear(key->p); | 110 mp_clear(key->p); |
111 m_free(key->p); | 111 m_free(key->p); |
125 if (key->x) { | 125 if (key->x) { |
126 mp_clear(key->x); | 126 mp_clear(key->x); |
127 m_free(key->x); | 127 m_free(key->x); |
128 } | 128 } |
129 m_free(key); | 129 m_free(key); |
130 TRACE(("leave dsa_key_free")) | 130 TRACE2(("leave dsa_key_free")) |
131 } | 131 } |
132 | 132 |
133 /* put the dss public key into the buffer in the required format: | 133 /* put the dss public key into the buffer in the required format: |
134 * | 134 * |
135 * string "ssh-dss" | 135 * string "ssh-dss" |