diff options
Diffstat (limited to 'src/db')
-rw-r--r-- | src/db/sysdb_ops.c | 8 | ||||
-rw-r--r-- | src/db/sysdb_private.h | 5 |
2 files changed, 9 insertions, 4 deletions
diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c index 93702451..4c4bc5ce 100644 --- a/src/db/sysdb_ops.c +++ b/src/db/sysdb_ops.c @@ -24,8 +24,8 @@ #include "util/crypto/sss_crypto.h" #include <time.h> -static int add_string(struct ldb_message *msg, int flags, - const char *attr, const char *value) +int add_string(struct ldb_message *msg, int flags, + const char *attr, const char *value) { int ret; @@ -37,8 +37,8 @@ static int add_string(struct ldb_message *msg, int flags, return ENOMEM; } -static int add_ulong(struct ldb_message *msg, int flags, - const char *attr, unsigned long value) +int add_ulong(struct ldb_message *msg, int flags, + const char *attr, unsigned long value) { int ret; diff --git a/src/db/sysdb_private.h b/src/db/sysdb_private.h index 047e1989..8d3eee72 100644 --- a/src/db/sysdb_private.h +++ b/src/db/sysdb_private.h @@ -98,4 +98,9 @@ int sysdb_upgrade_05(struct sysdb_ctx *sysdb, const char **ver); int sysdb_upgrade_06(struct sysdb_ctx *sysdb, const char **ver); int sysdb_upgrade_07(struct sysdb_ctx *sysdb, const char **ver); + +int add_string(struct ldb_message *msg, int flags, + const char *attr, const char *value); +int add_ulong(struct ldb_message *msg, int flags, + const char *attr, unsigned long value); #endif /* __INT_SYS_DB_H__ */ |