Mercurial > dropbear
comparison dbutil.c @ 161:b9d3f725e00b
0.44 release changes
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 02 Jan 2005 17:08:27 +0000 |
parents | 7ceceb46d655 |
children | 0cfba3034be5 |
comparison
equal
deleted
inserted
replaced
160:7ceceb46d655 | 161:b9d3f725e00b |
---|---|
601 return ret; | 601 return ret; |
602 } | 602 } |
603 | 603 |
604 /* Clear the data, based on the method in David Wheeler's | 604 /* Clear the data, based on the method in David Wheeler's |
605 * "Secure Programming for Linux and Unix HOWTO" */ | 605 * "Secure Programming for Linux and Unix HOWTO" */ |
606 /* Beware of calling this from within dbutil.c - things might get | |
607 * optimised away */ | |
606 void m_burn(void *data, unsigned int len) { | 608 void m_burn(void *data, unsigned int len) { |
607 volatile char *p = data; | 609 volatile char *p = data; |
608 | 610 |
609 if (data == NULL) | 611 if (data == NULL) |
610 return; | 612 return; |