Move repeating MIN/MAX macros into dropin.h.
[tinc] / src / keys.h
1 #ifndef TINC_KEYS_H
2 #define TINC_KEYS_H
3
4 #include "rsa.h"
5 #include "ecdsa.h"
6 #include "splay_tree.h"
7
8 extern bool disable_old_keys(const char *filename, const char *what);
9
10 extern ecdsa_t *read_ecdsa_private_key(splay_tree_t *config_tree, char **keyfile);
11 extern bool read_ecdsa_public_key(ecdsa_t **ecdsa, splay_tree_t **config_tree, const char *name);
12
13 #ifndef DISABLE_LEGACY
14 extern rsa_t *read_rsa_private_key(splay_tree_t *config, char **keyfile);
15 extern bool read_rsa_public_key(rsa_t **rsa, splay_tree_t *config_tree, const char *name);
16 #endif
17
18 #endif // TINC_KEYS_H