summaryrefslogtreecommitdiff
path: root/module/consumer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'module/consumer.cc')
-rw-r--r--module/consumer.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/consumer.cc b/module/consumer.cc
index 1016f84..49620db 100644
--- a/module/consumer.cc
+++ b/module/consumer.cc
@@ -110,7 +110,7 @@ Consumer::store_assoc(const string& server, const string& handle,
data.server = server.c_str();
data.handle = handle.c_str();
data.type = type.c_str();
- data.secret = secret.data();
+ data.secret = &(secret.front());
data.n_secret = secret.size();
data.expires = expires_in;
@@ -313,7 +313,7 @@ cancelled_auth (sid_request_t *req, Consumer &consumer, params_t &params)
sid_request_respond (req, 401, "Authentication Required", NULL);
}
-void
+extern "C" void
sid_consumer_authenticate(sid_request_t *req, sid_storage_t *store,
const char *trust_root, const char *identity)
{