+#define ASSOCIATE_RESPONSE_SIZE 4096
+
+/*
+ * libcurl callback function for prepare_openid_associate_request()
+ */
+size_t associate_callback(void *ptr, size_t size, size_t nmemb, void *stream)
+{
+ char *response = (char *) stream;
+ int got_bytes = (size * nmemb);
+ int len = strlen(response);
+
+ if ((len + got_bytes + 1) < ASSOCIATE_RESPONSE_SIZE) {
+ memcpy(&response[len], ptr, got_bytes);
+ response[len+got_bytes] = 0;
+ }
+
+ return got_bytes;
+}
+
+
+/*
+ * Process the response from an "associate" request
+ */
+void process_associate_response(associate_response)
+{
+ // FIXME finish this
+}
+
+
+