diff options
author | Julien Dessaux | 2019-02-14 20:51:41 +0100 |
---|---|---|
committer | Julien Dessaux | 2019-02-14 21:07:27 +0100 |
commit | a3f34674c6317930362c99f0fc40d835234843e5 (patch) | |
tree | 6c4c3afa605acf567b6b5997db4a3277738c9c68 /src/mysql.h | |
parent | Switched from standard makefile to cmake (diff) | |
download | bastion-a3f34674c6317930362c99f0fc40d835234843e5.tar.gz bastion-a3f34674c6317930362c99f0fc40d835234843e5.tar.bz2 bastion-a3f34674c6317930362c99f0fc40d835234843e5.zip |
Moved code around
Diffstat (limited to 'src/mysql.h')
-rw-r--r-- | src/mysql.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/mysql.h b/src/mysql.h deleted file mode 100644 index 8c6040f..0000000 --- a/src/mysql.h +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef MYSQL_H_ -#define MYSQL_H_ - -struct db_host_info { - char * privkeytxt; - char * address; - char * username; - char * hostkeyhash; -}; - -char db_init(void); -void db_clean(void); -char * // returns NULL if no user found, this char * is to be freed from the calling code -db_get_username_from_pubkey(ssh_key pubkey); -struct db_host_info * // returns NULL if no key found, this char * is to be freed from the calling code -db_get_host_info(const char * hostname); -void db_set_host_publickey_hash(const char * hostname, const char * hash); -unsigned long long // returns 0 on error, or the session_id -db_init_session_and_get_id(const char * hostname, const char * username); -void db_free_host_info(struct db_host_info * info); - -#endif |