From 78ee1c72c670a71bfd165448676fc65bff802916 Mon Sep 17 00:00:00 2001 From: gramanas Date: Mon, 19 Nov 2018 19:11:06 +0200 Subject: Add ability to use ck without secret dir --- src/queries.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/queries.h') diff --git a/src/queries.h b/src/queries.h index 7d5ec47..aaaa862 100644 --- a/src/queries.h +++ b/src/queries.h @@ -24,6 +24,7 @@ #define TBL_PROGRAM "PROGRAM" #define TBL_CONFIG "CONFIG" #define TBL_REL "REL" +#define TBL_CTX "CONTEXT" #define COL_PROGRAM_ID "ID" #define COL_PROGRAM_NAME "NAME" @@ -36,6 +37,11 @@ #define COL_REL_PROGRAM_ID "PID" #define COL_REL_CONFIG_ID "CID" +#define COL_CTX_KEY "KEY" +#define COL_CTX_VAL "VAL" + +#define KEY_CTX_SECRET "secret_enabled" + #define __BEGIN_TRANSACTION__ sqlite3_exec(db->ptr, "BEGIN TRANSACTION;", NULL, NULL, NULL); #define __END_TRANSACTION__ sqlite3_exec(db->ptr, "END TRANSACTION;", NULL, NULL, NULL); @@ -59,4 +65,6 @@ void dbh_form_query_select_from_joined_like(char *query, const char *selection, void dbh_form_query_delete_x_from_y(char *query, const char *x, const char *y); void dbh_form_query_count_program_relations(char *query); void dbh_form_query_get_pid_from_cid(char *query); +void dbh_form_query_secret_enabled(char *query); +void dbh_form_query_set_secret_enabled(char *query); #endif /* DBHELPER_H */ -- cgit v1.2.3