forked from OpenKMIP/libkmip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkmip_dummy.c
155 lines (106 loc) · 2.05 KB
/
kmip_dummy.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
/* Copyright (c) 2018 The Johns Hopkins University/Applied Physics Laboratory
* All Rights Reserved.
*
* This file is dual licensed under the terms of the Apache 2.0 License and
* the BSD 3-Clause License. See the LICENSE file in the root of this
* repository for more information.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "kmip.h"
#include "kmip_bio.h"
#include "kmip_memset.h"
void kmip_debug(uint32_t flags, FILE *dest)
{
(void)flags;
(void)dest;
}
size_t
kmip_strnlen_s(const char *str, size_t strsz)
{
(void)str;
(void)strsz;
return 0;
}
void
kmip_init(KMIP *ctx, void *buffer, size_t buffer_size, enum kmip_version v)
{
(void)ctx;
(void)buffer;
(void)buffer_size;
(void)v;
return;
}
int
kmip_add_credential(KMIP *ctx, Credential *cred)
{
(void)ctx;
(void)cred;
return 0;
}
void
kmip_stack_trace(KMIP *ctx, void (*handler)(const char *, void *), void *user)
{
(void)ctx;
(void)handler;
(void)user;
}
const char *
kmip_error_string(int value)
{
(void)value;
return NULL;
}
void
kmip_dump_buffer(void *buffer, int size,
void (*handler)(const char *, void *), void *user)
{
(void)buffer;
(void)size;
(void)handler;
(void)user;
}
void
kmip_destroy(KMIP *ctx)
{
(void)ctx;
}
void *
kmip_memset(void *ptr, int value, size_t size)
{
(void)ptr;
(void)value;
(void)size;
return NULL;
}
void
kmip_free(void *state, void *ptr)
{
(void)state;
(void)ptr;
}
void
kmip_print_result_status_enum(enum result_status value)
{
(void)value;
return;
}
const char *
kmip_result_status_enum(enum result_status value)
{
(void)value;
return NULL;
}
int kmip_bio_get_symmetric_key_with_context(KMIP *ctx, BIO *bio,
char *uuid, int uuid_size,
char **key, int *key_size)
{
(void)ctx;
(void)bio;
(void)uuid;
(void)uuid_size;
(void)key;
(void)key_size;
return KMIP_ARG_INVALID;
}