blob: 1ede88b532e1ef74f33a2ca7aee0abcb6da4ce74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#ifndef COMMON_DATA_H_
#define COMMON_DATA_H_
#include <libssh/server.h>
void data_clean(void);
struct data_host_info {
const char * address;
const char * username;
ssh_key key;
const char * pubkey;
};
const char * data_get_username_from_pubkey(ssh_key pubkey);
struct data_host_info * // returns NULL if no key found, this struct is to be freed from the calling code
data_get_host_info(const char * hostname);
#endif
|