aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-06-17 12:07:32 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-06-17 12:07:32 +0200
commitd83b3d9ebef272f11eab90dfccc8a87f777d8d5c (patch)
tree2bd25820b9c86ec8c16dd68ca745d5b427d501b1 /include
parent6f8b5ed679876427c4b2ff17b60a7fa3cbd02a54 (diff)
downloadlibssh-d83b3d9ebef272f11eab90dfccc8a87f777d8d5c.tar.gz
libssh-d83b3d9ebef272f11eab90dfccc8a87f777d8d5c.tar.xz
libssh-d83b3d9ebef272f11eab90dfccc8a87f777d8d5c.zip
pki: Limit privkey to 4M for now.
Diffstat (limited to 'include')
-rw-r--r--include/libssh/pki.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libssh/pki.h b/include/libssh/pki.h
index d7fa5e57..566700b8 100644
--- a/include/libssh/pki.h
+++ b/include/libssh/pki.h
@@ -31,6 +31,7 @@
#include "libssh/crypto.h"
#define MAX_PUBKEY_SIZE 0x100000 /* 1M */
+#define MAX_PRIVKEY_SIZE 0x400000 /* 4M */
#define SSH_KEY_FLAG_EMPTY 0x0
#define SSH_KEY_FLAG_PUBLIC 0x0001