diff options
| author | SkyperTHC | 2026-03-03 06:28:55 +0000 |
|---|---|---|
| committer | SkyperTHC | 2026-03-03 06:28:55 +0000 |
| commit | 5d3573ef7a109ee70416fe94db098fe6a769a798 (patch) | |
| tree | dc2d5b294c9db8ab2db7433511f94e1c4bb8b698 /other/openssh-reverse/key.h | |
| parent | c6c59dc73cc4586357f93ab38ecf459e98675cc5 (diff) | |
packetstorm sync
Diffstat (limited to 'other/openssh-reverse/key.h')
| -rw-r--r-- | other/openssh-reverse/key.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/other/openssh-reverse/key.h b/other/openssh-reverse/key.h new file mode 100644 index 0000000..ed3f770 --- /dev/null +++ b/other/openssh-reverse/key.h | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | #ifndef KEY_H | ||
| 2 | #define KEY_H | ||
| 3 | |||
| 4 | typedef struct Key Key; | ||
| 5 | enum types { | ||
| 6 | KEY_RSA, | ||
| 7 | KEY_DSA, | ||
| 8 | KEY_EMPTY | ||
| 9 | }; | ||
| 10 | struct Key { | ||
| 11 | int type; | ||
| 12 | RSA *rsa; | ||
| 13 | DSA *dsa; | ||
| 14 | }; | ||
| 15 | |||
| 16 | Key *key_new(int type); | ||
| 17 | void key_free(Key *k); | ||
| 18 | int key_equal(Key *a, Key *b); | ||
| 19 | char *key_fingerprint(Key *k); | ||
| 20 | char *key_type(Key *k); | ||
| 21 | int key_write(Key *key, FILE *f); | ||
| 22 | unsigned int | ||
| 23 | key_read(Key *key, char **cpp); | ||
| 24 | |||
| 25 | #endif | ||
