diff options
Diffstat (limited to 'src/lib/libcrypto/store/str_mem.c')
-rw-r--r-- | src/lib/libcrypto/store/str_mem.c | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/src/lib/libcrypto/store/str_mem.c b/src/lib/libcrypto/store/str_mem.c index 997e60fe93..a73279c86b 100644 --- a/src/lib/libcrypto/store/str_mem.c +++ b/src/lib/libcrypto/store/str_mem.c | |||
@@ -133,25 +133,22 @@ static int mem_unlock(STORE *s, OPENSSL_ITEM attributes[], | |||
133 | OPENSSL_ITEM parameters[]); | 133 | OPENSSL_ITEM parameters[]); |
134 | static int mem_ctrl(STORE *s, int cmd, long l, void *p, void (*f)(void)); | 134 | static int mem_ctrl(STORE *s, int cmd, long l, void *p, void (*f)(void)); |
135 | 135 | ||
136 | static STORE_METHOD store_memory = | 136 | static STORE_METHOD store_memory = { |
137 | { | 137 | .name = "OpenSSL memory store interface", |
138 | "OpenSSL memory store interface", | 138 | .init = mem_init, |
139 | mem_init, | 139 | .clean = mem_clean, |
140 | mem_clean, | 140 | .generate_object = mem_generate, |
141 | mem_generate, | 141 | .get_object = mem_get, |
142 | mem_get, | 142 | .store_object = mem_store, |
143 | mem_store, | 143 | .modify_object = mem_modify, |
144 | mem_modify, | 144 | .delete_object = mem_delete, |
145 | NULL, /* revoke */ | 145 | .list_object_start = mem_list_start, |
146 | mem_delete, | 146 | .list_object_next = mem_list_next, |
147 | mem_list_start, | 147 | .list_object_end = mem_list_end, |
148 | mem_list_next, | 148 | .list_object_endp = mem_list_endp, |
149 | mem_list_end, | 149 | .lock_store = mem_lock, |
150 | mem_list_endp, | 150 | .unlock_store = mem_unlock, |
151 | NULL, /* update */ | 151 | .ctrl = mem_ctrl |
152 | mem_lock, | ||
153 | mem_unlock, | ||
154 | mem_ctrl | ||
155 | }; | 152 | }; |
156 | 153 | ||
157 | const STORE_METHOD *STORE_Memory(void) | 154 | const STORE_METHOD *STORE_Memory(void) |