Skip to content
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.

Commit

Permalink
Merge pull request #393 from rlamp/master
Browse files Browse the repository at this point in the history
There is no mosquitto_client_id() or client in MOSQ_AUTH_PLUGIN_VERSI…
  • Loading branch information
jpmens authored Jan 8, 2019
2 parents a1bcf2f + a596468 commit 1bc2685
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions auth-plug.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,11 @@ int mosquitto_auth_unpwd_check(void *userdata, const char *username, const char
free(phash);
phash = NULL;
}
#if MOSQ_AUTH_PLUGIN_VERSION >=3
rc = b->getuser(b->conf, username, password, &phash, mosquitto_client_id(client));
#else
rc = b->getuser(b->conf, username, password, &phash, NULL);
#endif
if (rc == BACKEND_ALLOW) {
backend_name = (*bep)->name;
authenticated = TRUE;
Expand Down

0 comments on commit 1bc2685

Please sign in to comment.