Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrejs Tumilovics <andrejs.tumilovics@zabbix.com>2020-03-19 10:15:34 +0300
committerAndrejs Tumilovics <andrejs.tumilovics@zabbix.com>2020-03-19 10:15:34 +0300
commitc5755fc552a29bb33e601c0fc89626f7644d79ee (patch)
tree7653fd3b3abeb9afd783a29d923bd0e0086bf92a /include/zbxdb.h
parentbf7a54bf7594d7d7c995639bbff8bce04cff3123 (diff)
parent460476948e57bafddce22704e9d99c9984d42951 (diff)
..F.....S. [ZBXNEXT-5676] merge from source branch (fixed DB upgrade conflicts)
Diffstat (limited to 'include/zbxdb.h')
-rw-r--r--include/zbxdb.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/zbxdb.h b/include/zbxdb.h
index 8128265c268..cf5a78d6e9f 100644
--- a/include/zbxdb.h
+++ b/include/zbxdb.h
@@ -43,6 +43,10 @@
#error ZBX_MAX_OVERFLOW_SQL_SIZE is out of range
#endif
+#define ZBX_DB_TLS_CONNECT_REQUIRED_TXT "required"
+#define ZBX_DB_TLS_CONNECT_VERIFY_CA_TXT "verify_ca"
+#define ZBX_DB_TLS_CONNECT_VERIFY_FULL_TXT "verify_full"
+
typedef char **DB_ROW;
typedef struct zbx_db_result *DB_RESULT;
@@ -78,7 +82,8 @@ zbx_db_value_t;
int zbx_db_init(const char *dbname, const char *const db_schema, char **error);
void zbx_db_deinit(void);
-int zbx_db_connect(char *host, char *user, char *password, char *dbname, char *dbschema, char *dbsocket, int port);
+int zbx_db_connect(char *host, char *user, char *password, char *dbname, char *dbschema, char *dbsocket, int port,
+ char *tlsmode, char *cert, char *key, char *ca, char *cipher, char *cipher_13);
void zbx_db_close(void);
int zbx_db_begin(void);