summaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/authtok.c2
-rw-r--r--src/util/authtok.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/util/authtok.c b/src/util/authtok.c
index 73a4ccf1..e9c2881b 100644
--- a/src/util/authtok.c
+++ b/src/util/authtok.c
@@ -171,7 +171,7 @@ errno_t sss_authtok_set_ccfile(struct sss_auth_token *tok,
errno_t sss_authtok_set(struct sss_auth_token *tok,
enum sss_authtok_type type,
- uint8_t *data, size_t len)
+ const uint8_t *data, size_t len)
{
switch (type) {
case SSS_AUTHTOK_TYPE_PASSWORD:
diff --git a/src/util/authtok.h b/src/util/authtok.h
index 8f327d4c..1f6def4c 100644
--- a/src/util/authtok.h
+++ b/src/util/authtok.h
@@ -131,7 +131,7 @@ void sss_authtok_set_empty(struct sss_auth_token *tok);
* @param tok A pointer to a sss_auth_token structure to change, also
* used as a memory context to allocate the internal data.
* @param type A valid authtok type
- * @param ccfile A data pointer
+ * @param data A data pointer
* @param len The length of the data
*
* @return EOK on success
@@ -139,7 +139,7 @@ void sss_authtok_set_empty(struct sss_auth_token *tok);
*/
errno_t sss_authtok_set(struct sss_auth_token *tok,
enum sss_authtok_type type,
- uint8_t *data, size_t len);
+ const uint8_t *data, size_t len);
/**
* @brief Copy an auth token from source to destination