comparison dbhelpers.h @ 1283:3017bc7d6238

move m_burn and function attributes to dbhelpers use m_burn for libtomcrypt zeromem() too
author Matt Johnston <matt@ucc.asn.au>
date Thu, 17 Mar 2016 23:21:33 +0800
parents
children d68d61e7056a
comparison
equal deleted inserted replaced
1282:a3bb15115816 1283:3017bc7d6238
1 #ifndef DROPBEAR_DBHELPERS_H_
2 #define DROPBEAR_DBHELPERS_H_
3
4 /* This header defines some things that are also used by libtomcrypt/math.
5 We avoid including normal include.h since that can result in conflicting
6 definitinos - only include config.h */
7 #include "config.h"
8
9 #ifdef __GNUC__
10 #define ATTRIB_PRINTF(fmt,args) __attribute__((format(printf, fmt, args)))
11 #define ATTRIB_NORETURN __attribute__((noreturn))
12 #define ATTRIB_SENTINEL __attribute__((sentinel))
13 #else
14 #define ATTRIB_PRINTF(fmt,args)
15 #define ATTRIB_NORETURN
16 #define ATTRIB_SENTINEL
17 #endif
18
19 void m_burn(void* data, unsigned int len);
20
21 #endif /* DROPBEAR_DBHELPERS_H_ */