Archived
1
0
Fork 0
This repository has been archived on 2025-03-10. You can view files and clone it, but cannot push or open issues or pull requests.
bastion/common/data.h

19 lines
439 B
C

#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