return r;
}
-static int handle_request(void * UNUSED(data),
+static int handle_request(void * priv,
struct MHD_Connection *conn,
const char * url,
const char *UNUSED(method),
size_t shared_secret_len;
yubikey_token_st token;
struct ykc_stats stats;
+ struct ykc_config *conf = (struct ykc_config*) priv;
memset(&token, '\0', sizeof(token));
memset(&stats, '\0', sizeof(stats));
NULL, /* Access policy handler */
NULL, /* Data to access policy handler */
handle_request, /* default handler for all URIs */
- NULL, /* Data for default handler */
+ &conf, /* Data for default handler */
MHD_OPTION_END);
if (d == NULL) {
syslog(LOG_ERR, "could not start daemon, unsure why\n");