projects
/
gssweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f98b025
)
Refactor Chrome entrypoint to funnel through the FF entrypoint
author
Mark Donnelly
<mark@painless-security.com>
Wed, 26 Nov 2014 17:21:05 +0000
(12:21 -0500)
committer
Mark Donnelly
<mark@painless-security.com>
Wed, 26 Nov 2014 17:21:05 +0000
(12:21 -0500)
json_gssapi/main.cpp
patch
|
blob
|
history
diff --git
a/json_gssapi/main.cpp
b/json_gssapi/main.cpp
index
6070aa1
..
6db2850
100644
(file)
--- a/
json_gssapi/main.cpp
+++ b/
json_gssapi/main.cpp
@@
-12,6
+12,7
@@
#include <share.h>
#else
#include <unistd.h>
#include <share.h>
#else
#include <unistd.h>
+#include <string.h>
#endif
#include <util_json.h>
#include <GSSRequest.h>
#endif
#include <util_json.h>
#include <GSSRequest.h>
@@
-93,13
+94,12
@@
int main(int argc, char **argv) {
#endif
input[len] = '\0';
#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.write((char *)&len, 4);
- cout << output;
+ cout << out;
+ deallocate_reply(out);
cout.flush();
#ifndef WIN32
} while(1);
cout.flush();
#ifndef WIN32
} while(1);