6901e9ffe48da445ff5cccd45c41314975918d35
[gssweb.git] / json_gssapi / test / command_mocks / MockGetMic.h
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 #ifndef MOCKGETMIC_H
9 #define MOCKGETMIC_H
10
11 #include "datamodel/GSSBuffer.h"
12 #include <gssapi/gssapi.h>
13
14 /*
15  * OM_uint32 KRB5_CALLCONV
16  * gss_get_mic(
17  *    OM_uint32 *,         / * minor_status * /
18  *     gss_ctx_id_t,       / * context_handle * /
19  *     gss_qop_t,          / * qop_req * /
20  *     gss_buffer_t,       / * message_buffer * /
21  *     gss_buffer_t);      / * message_token * /
22  */
23
24 class MockGetMic
25 {
26 public:
27   static OM_uint32     retVal;
28   static OM_uint32     minor_status;
29   static gss_ctx_id_t  context_handle;
30   static gss_qop_t     qop_req;
31   static GSSBuffer     inputMessage;
32   static GSSBuffer     outputToken;
33   
34   static void reset();
35
36 };
37
38 #endif // MOCKGETMIC_H