+
+
+
+char *gss_request(char *json_string)
+{
+ /* Variables */
+ char *retVal;
+ string output;
+ GSSRequest *req = new GSSRequest(string(json_string));
+
+ /* Error checking */
+ // An empty json_string could be an error, but GSSRequest does
+ // a good job of handling it.
+
+ /* Setup */
+ /* Main processing */
+ req->execute();
+ output = req->getResponse();
+ retVal = new char[ output.length() + 1 ];
+ output.copy(retVal, output.length(), 0);
+ retVal[output.length()] = 0;
+
+ return(retVal);
+}
+
+void deallocate_reply(char *reply)
+{
+ delete(reply);
+}