]>
Commit | Line | Data |
---|---|---|
0d003c52 RL |
1 | /* |
2 | * Copyright 2019 The OpenSSL Project Authors. All Rights Reserved. | |
3 | * | |
4 | * Licensed under the Apache License 2.0 (the "License"). You may not use | |
5 | * this file except in compliance with the License. You can obtain a copy | |
6 | * in the file LICENSE in the source distribution or at | |
7 | * https://www.openssl.org/source/license.html | |
8 | */ | |
9 | ||
10 | #include <openssl/core_numbers.h> | |
11 | #include <openssl/types.h> | |
12 | #include "internal/cryptlib.h" | |
13 | #include "internal/refcount.h" | |
14 | ||
15 | struct ossl_serializer_st { | |
16 | OSSL_PROVIDER *prov; | |
17 | int id; | |
18 | const char *propdef; | |
19 | ||
20 | CRYPTO_REF_COUNT refcnt; | |
21 | CRYPTO_RWLOCK *lock; | |
22 | ||
23 | OSSL_OP_serializer_newctx_fn *newctx; | |
24 | OSSL_OP_serializer_freectx_fn *freectx; | |
25 | OSSL_OP_serializer_set_ctx_params_fn *set_ctx_params; | |
26 | OSSL_OP_serializer_settable_ctx_params_fn *settable_ctx_params; | |
27 | OSSL_OP_serializer_serialize_data_fn *serialize_data; | |
28 | OSSL_OP_serializer_serialize_object_fn *serialize_object; | |
29 | }; | |
30 | ||
31 | struct ossl_serializer_ctx_st { | |
32 | OSSL_SERIALIZER *ser; | |
33 | void *serctx; | |
34 | }; |