Mercurial > dropbear
comparison dbutil.c @ 844:68facbc41273
merge again
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Fri, 01 Nov 2013 00:19:25 +0800 |
parents | 4095b6d7c9fc |
children | 30ab30e46452 |
comparison
equal
deleted
inserted
replaced
834:e378da7eae5d | 844:68facbc41273 |
---|---|
673 fprintf(stderr, " "); | 673 fprintf(stderr, " "); |
674 } | 674 } |
675 } | 675 } |
676 fprintf(stderr, "\n"); | 676 fprintf(stderr, "\n"); |
677 } | 677 } |
678 | |
679 void printmpint(const char *label, mp_int *mp) { | |
680 buffer *buf = buf_new(1000); | |
681 buf_putmpint(buf, mp); | |
682 printhex(label, buf->data, buf->len); | |
683 buf_free(buf); | |
684 | |
685 } | |
678 #endif | 686 #endif |
679 | 687 |
680 /* Strip all control characters from text (a null-terminated string), except | 688 /* Strip all control characters from text (a null-terminated string), except |
681 * for '\n', '\r' and '\t'. | 689 * for '\n', '\r' and '\t'. |
682 * The result returned is a newly allocated string, this must be free()d after | 690 * The result returned is a newly allocated string, this must be free()d after |