summaryrefslogtreecommitdiffstats
path: root/database/sqlite/administration.c
diff options
context:
space:
mode:
Diffstat (limited to 'database/sqlite/administration.c')
-rw-r--r--database/sqlite/administration.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/database/sqlite/administration.c b/database/sqlite/administration.c
index 44f9bc1..3f8c286 100644
--- a/database/sqlite/administration.c
+++ b/database/sqlite/administration.c
@@ -451,7 +451,7 @@ xmlDoc *eDBadminGetUserInfo(eurephiaCTX *ctx, int getInfo, xmlDoc *srch) {
" WHERE sessionstatus = 2"
" GROUP BY uid) os"
" ON (os.uid = u.uid)",
- NULL, uinfo_map);
+ NULL, uinfo_map, NULL);
if( uinf == NULL ) {
eurephia_log(ctx, LOG_ERROR, 0, "Error querying the database for a user");
@@ -702,7 +702,7 @@ int eDBadminAddUser(eurephiaCTX *ctx, xmlDoc *usrinf) {
assert( usrinf_map != NULL );
// Register the user
- res = sqlite_query_mapped(ctx, SQL_INSERT, "INSERT INTO openvpn_users", usrinf_map, NULL);
+ res = sqlite_query_mapped(ctx, SQL_INSERT, "INSERT INTO openvpn_users", usrinf_map, NULL, NULL);
if( res == NULL ) {
eurephia_log(ctx, LOG_FATAL, 0, "Could not register the new user account");
rc = 0;
@@ -764,7 +764,7 @@ int eDBadminUpdateUser(eurephiaCTX *ctx, const int uid, xmlDoc *usrinf) {
assert( srch_map != NULL );
// UPDATE the database
- uinf = sqlite_query_mapped(ctx, SQL_UPDATE, "UPDATE openvpn_users", value_map, srch_map);
+ uinf = sqlite_query_mapped(ctx, SQL_UPDATE, "UPDATE openvpn_users", value_map, srch_map, NULL);
if( uinf == NULL ) {
eurephia_log(ctx, LOG_ERROR, 0, "Error querying the database for a user");
@@ -827,6 +827,8 @@ xmlDoc *eDBadminGetCertificateList(eurephiaCTX *ctx, const char *sortkeys) {
return NULL;
}
+
+
xmlDoc *eDBadminGetCertificateInfo(eurephiaCTX *ctx, xmlDoc *srchkey) {
return NULL;
}
@@ -871,7 +873,7 @@ int eDBadminAddCertificate(eurephiaCTX *ctx, xmlDoc *certxml) {
assert( crtinf_map != NULL );
// Register the certificate
- res = sqlite_query_mapped(ctx, SQL_INSERT, "INSERT INTO openvpn_certificates", crtinf_map, NULL);
+ res = sqlite_query_mapped(ctx, SQL_INSERT, "INSERT INTO openvpn_certificates", crtinf_map, NULL, NULL);
if( res == NULL ) {
eurephia_log(ctx, LOG_FATAL, 0, "Could not register the certificate");
rc = 0;
@@ -925,7 +927,7 @@ int eDBadminDeleteCertificate(eurephiaCTX *ctx, xmlDoc *certxml) {
assert( crtinf_map != NULL );
// Register the certificate
- res = sqlite_query_mapped(ctx, SQL_DELETE, "DELETE FROM openvpn_certificates", NULL, crtinf_map);
+ res = sqlite_query_mapped(ctx, SQL_DELETE, "DELETE FROM openvpn_certificates", NULL, crtinf_map, NULL);
if( res == NULL ) {
eurephia_log(ctx, LOG_FATAL, 0, "Could not complete the delete certificate request");
rc = 0;