mirror of
https://github.com/clearml/dropbear
synced 2025-06-26 18:17:32 +00:00
New standard linked list to use, rather than adhoc SignKeyList or TCPFwdList
--HG-- branch : agent-client extra : convert_revision : 5465e639cc3f5ee0c6c55f0de6e7b6d5a8769da3
This commit is contained in:
14
signkey.h
14
signkey.h
@@ -29,8 +29,22 @@
|
||||
#include "dss.h"
|
||||
#include "rsa.h"
|
||||
|
||||
|
||||
/* Sources for signing keys */
|
||||
typedef enum {
|
||||
SIGNKEY_SOURCE_RAW_FILE,
|
||||
SIGNKEY_SOURCE_AGENT,
|
||||
SIGNKEY_SOURCE_INVALID,
|
||||
} signkey_source;
|
||||
|
||||
struct SIGN_key {
|
||||
|
||||
int type; /* The type of key (dss or rsa) */
|
||||
signkey_source source;
|
||||
char *filename;
|
||||
/* the buffer? for encrypted keys, so we can later get
|
||||
* the private key portion */
|
||||
|
||||
#ifdef DROPBEAR_DSS
|
||||
dss_key * dsskey;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user