mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-08-08 19:02:06 +03:00
pki: Add a size limit for pubkey files.
This commit is contained in:
@@ -31,6 +31,8 @@
|
|||||||
|
|
||||||
#include "libssh/crypto.h"
|
#include "libssh/crypto.h"
|
||||||
|
|
||||||
|
#define MAX_PUBKEY_SIZE 0x100000 /* 1M */
|
||||||
|
|
||||||
#define SSH_KEY_FLAG_EMPTY 0x0
|
#define SSH_KEY_FLAG_EMPTY 0x0
|
||||||
#define SSH_KEY_FLAG_PUBLIC 0x0001
|
#define SSH_KEY_FLAG_PUBLIC 0x0001
|
||||||
#define SSH_KEY_FLAG_PRIVATE 0x0002
|
#define SSH_KEY_FLAG_PRIVATE 0x0002
|
||||||
|
Reference in New Issue
Block a user