summaryrefslogtreecommitdiff
path: root/module/consumer.cc
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2009-06-18 21:55:50 +0000
committerStef Walter <stef@memberwebs.com>2009-06-18 21:55:50 +0000
commit86c2a744f1feba57c107a0a985f3026f2f3817a5 (patch)
tree1ccbd72bac8f77dd080993428c936d20f1cfd4fd /module/consumer.cc
parent7976a44058b218f9729f96115886d49de2c49a5f (diff)
FreeBSD compile fixes
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)
{