comparison rsa.c @ 731:9a5438271556

Move the more verbose TRACE() statements into TRACE2()
author Matt Johnston <matt@ucc.asn.au>
date Mon, 01 Apr 2013 00:07:26 +0800
parents a98a2138364a
children 7dcb46da72d9
comparison
equal deleted inserted replaced
730:714b9106e335 731:9a5438271556
137 137
138 138
139 /* Clear and free the memory used by a public or private key */ 139 /* Clear and free the memory used by a public or private key */
140 void rsa_key_free(dropbear_rsa_key *key) { 140 void rsa_key_free(dropbear_rsa_key *key) {
141 141
142 TRACE(("enter rsa_key_free")) 142 TRACE2(("enter rsa_key_free"))
143 143
144 if (key == NULL) { 144 if (key == NULL) {
145 TRACE(("leave rsa_key_free: key == NULL")) 145 TRACE2(("leave rsa_key_free: key == NULL"))
146 return; 146 return;
147 } 147 }
148 if (key->d) { 148 if (key->d) {
149 mp_clear(key->d); 149 mp_clear(key->d);
150 m_free(key->d); 150 m_free(key->d);
164 if (key->q) { 164 if (key->q) {
165 mp_clear(key->q); 165 mp_clear(key->q);
166 m_free(key->q); 166 m_free(key->q);
167 } 167 }
168 m_free(key); 168 m_free(key);
169 TRACE(("leave rsa_key_free")) 169 TRACE2(("leave rsa_key_free"))
170 } 170 }
171 171
172 /* Put the public rsa key into the buffer in the required format: 172 /* Put the public rsa key into the buffer in the required format:
173 * 173 *
174 * string "ssh-rsa" 174 * string "ssh-rsa"