mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
Pageant: move extension list out into header file.
That's a part of the protocol spec (ish), so it should be somewhere reasonably sensible rather than buried in the middle of a source file.
This commit is contained in:
@ -609,15 +609,6 @@ static bool reencrypt_key(PageantKey *pk)
|
||||
return true;
|
||||
}
|
||||
|
||||
#define PUTTYEXT(base) base "@putty.projects.tartarus.org"
|
||||
|
||||
#define KNOWN_EXTENSIONS(X) \
|
||||
X(EXT_QUERY, "query") \
|
||||
X(EXT_ADD_PPK, PUTTYEXT("add-ppk")) \
|
||||
X(EXT_REENCRYPT, PUTTYEXT("reencrypt")) \
|
||||
X(EXT_REENCRYPT_ALL, PUTTYEXT("reencrypt-all")) \
|
||||
/* end of list */
|
||||
|
||||
#define DECL_EXT_ENUM(id, name) id,
|
||||
enum Extension { KNOWN_EXTENSIONS(DECL_EXT_ENUM) EXT_UNKNOWN };
|
||||
#define DEF_EXT_NAMES(id, name) PTRLEN_DECL_LITERAL(name),
|
||||
|
Reference in New Issue
Block a user