A bunch of changes as the command line now works.
authorMark Donnelly <mark@painless-security.com>
Fri, 12 Sep 2014 15:42:14 +0000 (11:42 -0400)
committerMark Donnelly <mark@painless-security.com>
Fri, 12 Sep 2014 15:42:14 +0000 (11:42 -0400)
commit9af66ea83235967dff058e0b0a395581ef84703d
tree7692a346d057fbc77c8a912bcbf310f927186573
parent3b13c3828653d78787eb96c0273ac2605985c41a
A bunch of changes as the command line now works.

* Move the main processing into a shared library
* Add processing in main() to read input, call the library commands,
  and output
* Correct copy-and-paste error in GSSNameCache that precluded it from
  being used along with GSSContextCache
* GSSAcquireCred now honors the desired_name parameter
* GSSCommand now an abstract class, with pure virtual methods
* GSSCreateSecContextCommand::execute() now uses datamodel objects
  instead of raw GSS types
* GSSCreateSecContextCommand now accepts cached names and contexts
  instead of raw GSS types
* GSSName operator= now duplicates GSS name instead of copying the
  data out of the other GSSName object, thus rendering their
  destruction independent
* GSSCreateSecContext now defaults to using the Moonshot mechanism
* Add a description of the JSON protocol for json_gssapi
* Clean up some of the compiler warnings about casting the result
  of rand() into a pointer
12 files changed:
json_gssapi/CMakeLists.txt
json_gssapi/json_protocol.txt [new file with mode: 0644]
json_gssapi/main.cpp
json_gssapi/src/cache/GSSNameCache.h
json_gssapi/src/commands/GSSAcquireCred.cpp
json_gssapi/src/commands/GSSAcquireCred.h
json_gssapi/src/commands/GSSCommand.h
json_gssapi/src/commands/GSSCreateSecContextCommand.cpp
json_gssapi/src/commands/GSSCreateSecContextCommand.h
json_gssapi/src/datamodel/GSSName.cpp
json_gssapi/test/GSSCreateSecContextTest.cpp
json_gssapi/test/NameCacheTest.cpp