Mercurial > dropbear
view dbhelpers.h @ 1442:517c67cbcd31
dropbear server: support -T max auth tries
Add support for '-T n' for a run-time specification for maximum number
of authentication attempts where 'n' is between 1 and compile time
option MAX_AUTH_TRIES.
A default number of tries can be specified at compile time using
'DEFAULT_AUTH_TRIES' which itself defaults to MAX_AUTH_TRIES for
backwards compatibility.
Signed-off-by: Kevin Darbyshire-Bryant <[email protected]>
author | Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk> |
---|---|
date | Mon, 29 May 2017 10:25:09 +0100 |
parents | 3017bc7d6238 |
children | d68d61e7056a |
line wrap: on
line source
#ifndef DROPBEAR_DBHELPERS_H_ #define DROPBEAR_DBHELPERS_H_ /* This header defines some things that are also used by libtomcrypt/math. We avoid including normal include.h since that can result in conflicting definitinos - only include config.h */ #include "config.h" #ifdef __GNUC__ #define ATTRIB_PRINTF(fmt,args) __attribute__((format(printf, fmt, args))) #define ATTRIB_NORETURN __attribute__((noreturn)) #define ATTRIB_SENTINEL __attribute__((sentinel)) #else #define ATTRIB_PRINTF(fmt,args) #define ATTRIB_NORETURN #define ATTRIB_SENTINEL #endif void m_burn(void* data, unsigned int len); #endif /* DROPBEAR_DBHELPERS_H_ */