diff options
author | Richard Levitte <levitte@openssl.org> | 2020-08-16 21:25:08 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-08-21 09:23:58 +0200 |
commit | ece9304c96f71277ca95696d9bc49fdec51e9f17 (patch) | |
tree | 7038f8760e1538754bc67371cb5a466a83935dad /providers/baseprov.c | |
parent | f650993f1de3dbb5eda9009ad0c4895a7b1b7fe2 (diff) |
Rename OSSL_SERIALIZER / OSSL_DESERIALIZER to OSSL_ENCODE / OSSL_DECODE
Fixes #12455
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/12660)
Diffstat (limited to 'providers/baseprov.c')
-rw-r--r-- | providers/baseprov.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/providers/baseprov.c b/providers/baseprov.c index 917bf680d4..eb0e4afbd3 100644 --- a/providers/baseprov.c +++ b/providers/baseprov.c @@ -64,37 +64,37 @@ static int base_get_params(void *provctx, OSSL_PARAM params[]) return 1; } -static const OSSL_ALGORITHM base_serializer[] = { -#define SER(name, fips, format, type, func_table) \ +static const OSSL_ALGORITHM base_encoder[] = { +#define ENCODER(name, fips, format, type, func_table) \ { name, \ "provider=base,fips=" fips ",format=" format ",type=" type, \ (func_table) } -#include "serializers.inc" +#include "encoders.inc" { NULL, NULL, NULL } }; -#undef SER +#undef ENCODER -static const OSSL_ALGORITHM base_deserializer[] = { -#define DESER(name, fips, input, func_table) \ +static const OSSL_ALGORITHM base_decoder[] = { +#define DECODER(name, fips, input, func_table) \ { name, \ "provider=base,fips=" fips ",input=" input, \ (func_table) } -#include "deserializers.inc" +#include "decoders.inc" { NULL, NULL, NULL } }; -#undef DESER +#undef DECODER static const OSSL_ALGORITHM *base_query(void *provctx, int operation_id, int *no_cache) { *no_cache = 0; switch (operation_id) { - case OSSL_OP_SERIALIZER: - return base_serializer; - case OSSL_OP_DESERIALIZER: - return base_deserializer; + case OSSL_OP_ENCODER: + return base_encoder; + case OSSL_OP_DECODER: + return base_decoder; } return NULL; } |