comparison dss.c @ 179:161557a9dde8

* fix longstanding bug with connections being closed on failure to connect to auth socket (server) * differentiate between get_byte and get_bool * get rid of some // comments * general tidying
author Matt Johnston <matt@ucc.asn.au>
date Sun, 13 Mar 2005 13:58:14 +0000
parents 0cfba3034be5
children 4349ed1b3f38
comparison
equal deleted inserted replaced
178:058cc7892636 179:161557a9dde8
259 return ret; 259 return ret;
260 260
261 } 261 }
262 #endif /* DROPBEAR_SIGNKEY_VERIFY */ 262 #endif /* DROPBEAR_SIGNKEY_VERIFY */
263 263
264 #ifdef DSS_PROTOK
264 /* convert an unsigned mp into an array of bytes, malloced. 265 /* convert an unsigned mp into an array of bytes, malloced.
265 * This array must be freed after use, len contains the length of the array, 266 * This array must be freed after use, len contains the length of the array,
266 * if len != NULL */ 267 * if len != NULL */
267 static unsigned char* mptobytes(mp_int *mp, int *len) { 268 static unsigned char* mptobytes(mp_int *mp, int *len) {
268 269
277 if (len != NULL) { 278 if (len != NULL) {
278 *len = size; 279 *len = size;
279 } 280 }
280 return ret; 281 return ret;
281 } 282 }
283 #endif
282 284
283 /* Sign the data presented with key, writing the signature contents 285 /* Sign the data presented with key, writing the signature contents
284 * to the buffer 286 * to the buffer
285 * 287 *
286 * When DSS_PROTOK is #defined: 288 * When DSS_PROTOK is #defined: