1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-30 13:01:23 +03:00

pki: Limit privkey to 4M for now.

This commit is contained in:
Andreas Schneider
2013-06-17 12:07:32 +02:00
parent 6f8b5ed679
commit d83b3d9ebe
2 changed files with 7 additions and 0 deletions

View File

@@ -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