Message passing with cookies (app_tag, gssweb_bg_tag, etc.)
authorMark Donnelly <mark@painless-security.com>
Fri, 3 Oct 2014 18:59:04 +0000 (14:59 -0400)
committerMark Donnelly <mark@painless-security.com>
Fri, 3 Oct 2014 18:59:04 +0000 (14:59 -0400)
commit43cde1dd57380a2a2795b97855ec385ccba020fd
treef76bea36065f5529017be8c0ee15c8134cda4ef2
parent3b404a0554b7e796e333a09edd62febbedaaffb5
Message passing with cookies (app_tag, gssweb_bg_tag, etc.)

The messages passed in to the C++ code will now have the following elements copied in to the response:
  cookies
  method

The c++ code was refactored to have a common point for top-level JSON parsing, and the GSSCommand subclasses now only pull out their specific arguments.

GSSCreateSecContextCommand was renamed to GSSInitSecContext.

There was an error in util_json in how a JSONObject implemented operator= that made it at best a no-op.  (At worst it caused crashes.)
22 files changed:
chrome/app/gssweb.contentscript.js
chrome/app/gssweb_background.js
chrome/app/gssweb_utils.js [new file with mode: 0644]
chrome/app/manifest.json
chrome/app/navigator.gss.js
json_gssapi/CMakeLists.txt
json_gssapi/main.cpp
json_gssapi/src/GSSRequest.cpp [new file with mode: 0644]
json_gssapi/src/GSSRequest.h [new file with mode: 0644]
json_gssapi/src/commands/GSSAcquireCred.cpp
json_gssapi/src/commands/GSSGetMic.cpp
json_gssapi/src/commands/GSSImportName.cpp
json_gssapi/src/commands/GSSInitSecContext.cpp [moved from json_gssapi/src/commands/GSSCreateSecContextCommand.cpp with 77% similarity]
json_gssapi/src/commands/GSSInitSecContext.h [moved from json_gssapi/src/commands/GSSCreateSecContextCommand.h with 79% similarity]
json_gssapi/src/commands/GSSPseudoRandom.cpp
json_gssapi/src/commands/GSSUnwrap.cpp
json_gssapi/src/commands/GSSWrap.cpp
json_gssapi/src/util_json.h
json_gssapi/test/CMakeLists.txt
json_gssapi/test/GSSCreateSecContextTest.cpp
json_gssapi/test/GSSCreateSecContextTest.h
json_gssapi/test/GSSImportNameTest.h