Commit 523f52a1 authored by François Grisez's avatar François Grisez

Fix build

parent 9b42b6f8
......@@ -142,6 +142,7 @@ void SociAuthDB::getPasswordWithPool(const std::string &id, const std::string &d
steady_clock::time_point start;
steady_clock::time_point stop;
std::string pass;
passwd_algo_t passwd;
session *sql = NULL;
int errorCount = 0;
bool retry = false;
......@@ -161,7 +162,8 @@ void SociAuthDB::getPasswordWithPool(const std::string &id, const std::string &d
*sql << get_password_request, into(pass), use(id, "id"), use(domain, "domain"), use(authid, "authid");
stop = steady_clock::now();
SLOGD << "[SOCI] Got pass for " << id << " in " << DURATION_MS(start, stop) << "ms";
cachePassword(createPasswordKey(id, authid), domain, pass, mCacheExpire);
passwd.pass = pass;
cachePassword(createPasswordKey(id, authid), domain, passwd, mCacheExpire);
if (listener){
listener->onResult(pass.empty() ? PASSWORD_NOT_FOUND : PASSWORD_FOUND, pass);
}
......
......@@ -97,7 +97,7 @@ void auth_digest_response_for_algorithm(auth_response_t *ar,
/* Calculate Hentity */
if (ar->ar_auth_int) {
if (data && dlen) {
snprintf(input,sizeof(input),"%s",data);
snprintf(input,sizeof(input),"%s",reinterpret_cast<const char *>(data));
flexisipSha256(input, 32, a1buf, Hentity);
} else {
strcpy(Hentity, "d7580069de562f5c7fd932cc986472669122da91a0f72f30ef1b20ad6e4f61a3");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment