aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/priv.h
diff options
context:
space:
mode:
authorJoseph Southwell <joseph@southwell.org>2014-02-02 19:28:51 +0100
committerAndreas Schneider <asn@cryptomilk.org>2014-02-02 22:19:46 +0100
commit6bbdaceaca06e3af4df5d4f265630ea651bc9044 (patch)
tree793e11158b92870703729d774ba3b469c22369d3 /include/libssh/priv.h
parenteedecd02694cfba2796c79496e1d6c9ebc7ea97a (diff)
downloadlibssh-6bbdaceaca06e3af4df5d4f265630ea651bc9044.tar.gz
libssh-6bbdaceaca06e3af4df5d4f265630ea651bc9044.tar.xz
libssh-6bbdaceaca06e3af4df5d4f265630ea651bc9044.zip
src: Define MAX_BUF_SIZE globally and use it.
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include/libssh/priv.h')
-rw-r--r--include/libssh/priv.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index 0d9e69fa..0e3bab5b 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -120,11 +120,24 @@ int gettimeofday(struct timeval *__p, void *__t);
#include "libssh/callbacks.h"
/* some constants */
+#ifndef MAX_PACKAT_LEN
#define MAX_PACKET_LEN 262144
+#endif
+#ifndef ERROR_BUFFERLEN
#define ERROR_BUFFERLEN 1024
+#endif
+#ifndef CLIENTBANNER1
#define CLIENTBANNER1 "SSH-1.5-libssh-" SSH_STRINGIFY(LIBSSH_VERSION)
+#endif
+#ifndef CLIENTBANNER2
#define CLIENTBANNER2 "SSH-2.0-libssh-" SSH_STRINGIFY(LIBSSH_VERSION)
+#endif
+#ifndef KBDINT_MAX_PROMPT
#define KBDINT_MAX_PROMPT 256 /* more than openssh's :) */
+#endif
+#ifndef MAX_BUF_SIZE
+#define MAX_BUF_SIZE 4096
+#endif
#ifndef __FUNCTION__
#if defined(__SUNPRO_C)