X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=secnet.git;a=blobdiff_plain;f=secnet.h;h=49afd322e83130506da37f96e3036e7ea57efed0;hp=9cc22059ad0272e189a4b54d3b5a505d67b7e71f;hb=076bb54e68477f883033bee696c9c5f801ece2f2;hpb=90a39563035b70196da9c5bdc7c17a63b64449b0 diff --git a/secnet.h b/secnet.h index 9cc2205..49afd32 100644 --- a/secnet.h +++ b/secnet.h @@ -438,7 +438,7 @@ struct dh_if { /* HASH interface */ typedef void *hash_init_fn(void); -typedef void hash_update_fn(void *st, uint8_t const *buf, int32_t len); +typedef void hash_update_fn(void *st, const void *buf, int32_t len); typedef void hash_final_fn(void *st, uint8_t *digest); struct hash_if { int32_t len; /* Hash output length in bytes */ @@ -495,4 +495,9 @@ extern void log_from_fd(int fd, cstring_t prefix, struct log_if *log); /***** END of log functions *****/ +#define STRING2(x) #x +#define STRING(x) STRING2(x) + +#define FILLZERO(obj) (memset(&(obj),0,sizeof((obj)))) + #endif /* secnet_h */