comparison dss.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 d6067dd60490
children 7dcb46da72d9
comparison
equal deleted inserted replaced
730:714b9106e335 731:9a5438271556
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"