8c37d39f0258de5bdaf3dec4b768c3702bb9eabb
[gssweb.git] / json_gssapi / test / command_mocks / MockUnwrap.cpp
1 /*
2  * Copyright (c) 2014 <copyright holder> <email>
3  *
4  * For license details, see the LICENSE file in the root of this project.
5  *
6  */
7
8 #include "MockUnwrap.h"
9
10
11 OM_uint32    MockUnwrap::retVal;
12 OM_uint32    MockUnwrap::minor_status;
13 gss_ctx_id_t MockUnwrap::context_handle;
14 GSSBuffer    MockUnwrap::inputMessageBuffer;
15 GSSBuffer    MockUnwrap::outputMessageBuffer;
16 int          MockUnwrap::conf_state;
17 gss_qop_t    MockUnwrap::qop_state;
18
19
20 void MockUnwrap::reset()
21 {
22   retVal = 0;
23   minor_status = 0;
24   inputMessageBuffer.setValue(std::string());
25   outputMessageBuffer.setValue(std::string());
26   conf_state = 0;
27   qop_state= 0;
28 }