diff options
author | Tiago Natel <t.nateldemoura@f5.com> | 2019-12-06 13:28:05 +0000 |
---|---|---|
committer | Tiago Natel <t.nateldemoura@f5.com> | 2019-12-06 13:28:05 +0000 |
commit | ed2492a66afdf578d1e4f99dc098ab685607b3ba (patch) | |
tree | 188ac507ad6efdd02e8aae6adf1dbb5cd406fdbc /src/nxt_main_process.c | |
parent | c6a11260e8ad5fa64cb025f72aab343aea9f1d63 (diff) | |
download | unit-ed2492a66afdf578d1e4f99dc098ab685607b3ba.tar.gz unit-ed2492a66afdf578d1e4f99dc098ab685607b3ba.tar.bz2 |
Moved credential-related code to nxt_credential.c.
This is required to avoid include cycles, as some nxt_clone_* functions
depend on the credential structures, but nxt_process depends on clone
structures.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_main_process.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nxt_main_process.c b/src/nxt_main_process.c index 05027443..02b0c293 100644 --- a/src/nxt_main_process.c +++ b/src/nxt_main_process.c @@ -1677,8 +1677,7 @@ nxt_process_init_creds_set(nxt_task_t *task, nxt_process_init_t *init, { char *str; - init->user_cred = nxt_mp_zalloc(init->mem_pool, - sizeof(nxt_user_cred_t)); + init->user_cred = nxt_mp_zalloc(init->mem_pool, sizeof(nxt_credential_t)); if (nxt_slow_path(init->user_cred == NULL)) { return NXT_ERROR; @@ -1707,5 +1706,5 @@ nxt_process_init_creds_set(nxt_task_t *task, nxt_process_init_t *init, str = NULL; } - return nxt_user_cred_get(task, init->mem_pool, init->user_cred, str); + return nxt_credential_get(task, init->mem_pool, init->user_cred, str); } |