From: Mark Donnelly Date: Wed, 26 Nov 2014 17:21:05 +0000 (-0500) Subject: Refactor Chrome entrypoint to funnel through the FF entrypoint X-Git-Url: http://www.project-moonshot.org/gitweb/?p=gssweb.git;a=commitdiff_plain;h=de10dcadd7162637a2ba3fa814288dabda1cae81 Refactor Chrome entrypoint to funnel through the FF entrypoint --- diff --git a/json_gssapi/main.cpp b/json_gssapi/main.cpp index 6070aa1..6db2850 100644 --- a/json_gssapi/main.cpp +++ b/json_gssapi/main.cpp @@ -12,6 +12,7 @@ #include #else #include +#include #endif #include #include @@ -93,13 +94,12 @@ int main(int argc, char **argv) { #endif input[len] = '\0'; - GSSRequest *req = new GSSRequest(string(input)); - req->execute(); - output = req->getResponse(); - len = output.length(); + char *out = gss_request(input); + len = strlen(out); cout.write((char *)&len, 4); - cout << output; + cout << out; + deallocate_reply(out); cout.flush(); #ifndef WIN32 } while(1);