From de10dcadd7162637a2ba3fa814288dabda1cae81 Mon Sep 17 00:00:00 2001 From: Mark Donnelly Date: Wed, 26 Nov 2014 12:21:05 -0500 Subject: [PATCH] Refactor Chrome entrypoint to funnel through the FF entrypoint --- json_gssapi/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); -- 2.1.4