Differences From Artifact [cdbb0353fa]:
- File misc.h — part of check-in [27157daada] at 2011-10-02 09:03:47 on branch trunk — Another utility function, to free a string containing sensitive data. (user: simon size: 3690)
To Artifact [bc3eabd583]:
- File misc.h — part of check-in [b41c0f9a37] at 2012-07-28 11:33:51 on branch trunk — Move the declaration of smemclr() out of putty.h into misc.h, because one of its uses (in sshaes.c) wasn't picking up the former. Thanks to Ubuntu's gcc for spotting that. (user: simon size: 3726)
| ︙ | |||
45 46 47 48 49 50 51 52 53 54 55 56 57 58 | 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | + + | int bufchain_size(bufchain *ch); void bufchain_add(bufchain *ch, const void *data, int len); void bufchain_prefix(bufchain *ch, void **data, int *len); void bufchain_consume(bufchain *ch, int len); void bufchain_fetch(bufchain *ch, void *data, int len); struct tm ltime(void); void smemclr(void *b, size_t len); /* * Debugging functions. * * Output goes to debug.log * * debug(()) (note the double brackets) is like printf(). |
| ︙ |