src/commands/GSSPseudoRandom.cpp
src/commands/GSSWrap.cpp
src/commands/GSSUnwrap.cpp
- src/util_base64.cpp
- src/util_json.cpp
- src/util_random.cpp
+ src/utils/util_base64.cpp
+ src/utils/util_json.cpp
+ src/utils/util_random.cpp
src/cache/GSSContextCache.cpp
src/cache/GSSNameCache.cpp
src/datamodel/GSSContext.cpp
GENERATE_EXPORT_HEADER(jsongssapi)
-add_executable(json_gssapi main.cpp)
+add_executable(json_gssapi src/main.cpp)
find_package (PkgConfig)
pkg_check_modules (GLIB2 glib-2.0)
#include <string>
#include "jsongssapi_export.h"
#include "commands/GSSCommand.h"
-#include "util_json.h"
+#include "utils/util_json.h"
using std::string;
*/
#include <stdexcept>
-#include "util_random.h"
-#include "util_base64.h"
+#include "utils/util_random.h"
+#include "utils/util_base64.h"
#include "GSSContextCache.h"
*/
#include <stdexcept>
#include "GSSNameCache.h"
-#include "util_base64.h"
-#include "util_random.h"
+#include "utils/util_base64.h"
+#include "utils/util_random.h"
#define KEYLEN 128
#ifndef GSSCOMMAND_H
#define GSSCOMMAND_H
-#include "util_json.h"
+#include "utils/util_json.h"
#include <iostream>
class GSSCommand
/* Main */
retVal = function(&minor_status, inputName.toGss(), inputNameType.toGss(), &name);
-// if ( GSS_ERROR(this->retVal) )
-// {
- JSONObject errors;
- GSSDisplayStatus ds(retVal, minor_status, inputNameType.toGss());
- errors.set("major_status_message", ds.getMajorMessage().c_str());
- errors.set("minor_status_message", ds.getMinorMessage().c_str());
- values->set("errors", errors);
-// }
-
-
-
+ JSONObject errors;
+ GSSDisplayStatus ds(retVal, minor_status, inputNameType.toGss());
+ errors.set("major_status_message", ds.getMajorMessage().c_str());
+ errors.set("minor_status_message", ds.getMinorMessage().c_str());
+ values->set("errors", errors);
this->outputName.setValue(name);
key = GSSNameCache::instance()->store(this->outputName);
-// std::cout << "Storing key: " << key << std::endl;
this->outputName.setKey(key);
/* Cleanup */
/* Return */
-
}
/* Example output:
/* Error checking */
/* Setup */
- // Should I zeroOut?
+ // Should I zeroOut? MRW -- do initialize here for null inputs
/* Main processing */
// Easy stuff(*params)
/* Return */
return true;
}
-
-
-
-
-/* Variables */
-/* Error checking */
-/* Setup */
-/* Main */
-/* Cleanup */
-/* Return */
#include <stdlib.h>
#include <string.h>
-#include "util_base64.h"
+#include "utils/util_base64.h"
void
GSSInitSecContext::execute()
#ifndef GSSCREDENTIAL_H
#define GSSCREDENTIAL_H
-#include "../util_json.h"
+#include "utils/util_json.h"
#include <gssapi/gssapi.h>
#include <string>
#include <string>
#include "gssapi.h"
-#include "../util_json.h"
+#include "utils/util_json.h"
#include "GSSBuffer.h"
+++ /dev/null
-/*
- * Copyright (c) 2014, JANET(UK)
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- *
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * 3. Neither the name of JANET(UK) nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
- * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
- * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
- * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
- * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
- * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
- * OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- */
-
-#ifndef BASE64_H
-#define BASE64_H
-
-#include <glib.h>
-
-#define base64_encode(str) g_base64_encode((guchar *)str.c_str(), str.length())
-#define base64_decode(str, outlen) g_base64_decode(str.c_str(), outlen)
-
-#endif
command_mocks/MockImportName.cpp
test_run.cpp
../src/commands/GSSInitSecContext.cpp
- ../src/util_base64.cpp
- ../src/util_json.cpp
- ../src/util_random.cpp
+ ../src/utils/util_base64.cpp
+ ../src/utils/util_json.cpp
+ ../src/utils/util_random.cpp
../src/commands/GSSImportName.cpp
../src/GSSException.cpp
../src/commands/GSSGetMic.cpp
#include <iostream>
#include <string.h>
#include <exception>
-#include "util_json.h"
+#include "utils/util_json.h"
#include <cache/GSSContextCache.h>
#include <cache/GSSNameCache.h>
#include <datamodel/GSSContext.h>
-#include <util_base64.h>
+#include <utils/util_base64.h>
// Registers the fixture into the 'registry'
CPPUNIT_TEST_SUITE_REGISTRATION( GSSCreateSecContextTest );
-cd json_gssapi
del /f /s /q build
rd /s /q build
mkdir build
cd build
call setenv /x86 /Debug
+call c:\firefox-addon-sdk\bin\activate.bat
cmake -DCMAKE_BUILD_TYPE=Debug -G "NMake Makefiles" ../
nmake -f Makefile