6ef3513a9970c61621b910de43042eb0176ce59a
[gssweb.git] / json_gssapi / test / command_mocks / MockWrap.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 "MockWrap.h"
9
10
11 /*
12   static OM_uint32     retVal;
13   static OM_uint32     minor_status;
14   static gss_ctx_id_t  context_handle;
15   static int           conf_req_flag;
16   static gss_qop_t     qop_req;
17   static gss_buffer_t  input_message_buffer;
18   static int          *conf_state;
19   static gss_buffer_t  output_message_buffer;
20 */
21
22 OM_uint32    MockWrap::retVal;
23 OM_uint32    MockWrap::minor_status;
24 gss_ctx_id_t MockWrap::context_handle;
25 int          MockWrap::conf_req_flag;
26 gss_qop_t    MockWrap::qop_req;
27 GSSBuffer    MockWrap::inputMessageBuffer;
28 int          MockWrap::conf_state;
29 GSSBuffer    MockWrap::outputMessageBuffer;
30
31
32 void MockWrap::reset()
33 {
34   retVal = 0;
35   minor_status = 0;
36   context_handle = GSS_C_NO_CONTEXT;
37   conf_req_flag = 0;
38   qop_req = 0;
39   inputMessageBuffer.setValue(std::string());
40   conf_state = 0;
41   outputMessageBuffer.setValue(std::string());
42 }