summaryrefslogtreecommitdiffstats
path: root/CryptoPkg/Library/OpensslLib/ossl_store.c
blob: f1e1b8b60fca57826240c5d52abf1368ab2dcd67 (plain)
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
/** @file
  Dummy implement ossl_store(Store retrieval functions) for UEFI.

Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent

**/

#include <openssl/types.h>
#include <openssl/core_dispatch.h>
#include <openssl/store.h>

/*
 * This function is cleanup ossl store.
 *
 * Dummy Implement for UEFI
 */
void
ossl_store_cleanup_int (
  void
  )
{
}

int
ossl_store_loader_store_cache_flush (
  OSSL_LIB_CTX  *libctx
  )
{
  return 1;
}

int
ossl_store_loader_store_remove_all_provided (
  OSSL_PROVIDER  *prov
  )
{
  return 1;
}

static void *
file_open (
  void        *provctx,
  const char  *uri
  )
{
  return NULL;
}

const OSSL_DISPATCH  ossl_file_store_functions[] = {
  { OSSL_FUNC_STORE_OPEN, (void (*)(void)) file_open },
  { 0,                    NULL                       },
};

OSSL_STORE_CTX *
OSSL_STORE_open (
  const char                       *uri,
  const UI_METHOD                  *ui_method,
  void                             *ui_data,
  OSSL_STORE_post_process_info_fn  post_process,
  void                             *post_process_data
  )
{
  return NULL;
}

OSSL_STORE_CTX *
OSSL_STORE_open_ex (
  const char                       *uri,
  OSSL_LIB_CTX                     *libctx,
  const char                       *propq,
  const UI_METHOD                  *ui_method,
  void                             *ui_data,
  const OSSL_PARAM                 params[],
  OSSL_STORE_post_process_info_fn  post_process,
  void                             *post_process_data
  )
{
  return NULL;
}

int
OSSL_STORE_INFO_get_type (
  const OSSL_STORE_INFO  *info
  )
{
  return 0;
}

int
OSSL_STORE_find (
  OSSL_STORE_CTX           *ctx,
  const OSSL_STORE_SEARCH  *search
  )
{
  return 0;
}

OSSL_STORE_INFO *
OSSL_STORE_load (
  OSSL_STORE_CTX  *ctx
  )
{
  return NULL;
}

const char *
OSSL_STORE_INFO_get0_NAME (
  const OSSL_STORE_INFO  *info
  )
{
  return NULL;
}

X509 *
OSSL_STORE_INFO_get0_CERT (
  const OSSL_STORE_INFO  *info
  )
{
  return NULL;
}

X509_CRL *
OSSL_STORE_INFO_get0_CRL (
  const OSSL_STORE_INFO  *info
  )
{
  return NULL;
}

int
OSSL_STORE_eof (
  OSSL_STORE_CTX  *ctx
  )
{
  return 0;
}

int
OSSL_STORE_error (
  OSSL_STORE_CTX  *ctx
  )
{
  return 0;
}

int
OSSL_STORE_close (
  OSSL_STORE_CTX  *ctx
  )
{
  return 0;
}

void
OSSL_STORE_INFO_free (
  OSSL_STORE_INFO  *info
  )
{
}

OSSL_STORE_SEARCH *
OSSL_STORE_SEARCH_by_name (
  X509_NAME  *name
  )
{
  return NULL;
}

void
OSSL_STORE_SEARCH_free (
  OSSL_STORE_SEARCH  *search
  )
{
}