diff options
author | Pauli <paul.dale@oracle.com> | 2020-09-28 12:28:29 +1000 |
---|---|---|
committer | Pauli <paul.dale@oracle.com> | 2020-09-29 16:31:46 +1000 |
commit | 1be63951f87dfcbc98efe5d94a15298fea885890 (patch) | |
tree | 083ab242e6cf6521377635b5f0daacedfe937dbe /providers/implementations/encode_decode/encode_key2text.c | |
parent | 5e26c3399d154b9ed29558129ca1916a1b5b095e (diff) |
prov: prefix all OSSL_DISPATCH tables names with ossl_
This stops them leaking into other namespaces in a static build.
They remain internal.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13013)
Diffstat (limited to 'providers/implementations/encode_decode/encode_key2text.c')
-rw-r--r-- | providers/implementations/encode_decode/encode_key2text.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/providers/implementations/encode_decode/encode_key2text.c b/providers/implementations/encode_decode/encode_key2text.c index d5e8019081..ef9b4a91e1 100644 --- a/providers/implementations/encode_decode/encode_key2text.c +++ b/providers/implementations/encode_decode/encode_key2text.c @@ -841,17 +841,17 @@ static int key2text_encode(void *vctx, const void *key, int selection, \ static int impl##2text_get_params(OSSL_PARAM params[]) \ { \ - return key2text_get_params(params, impl##_input_type); \ + return key2text_get_params(params, impl##_input_type); \ } \ static void *impl##2text_import_object(void *ctx, int selection, \ const OSSL_PARAM params[]) \ { \ - return ossl_prov_import_key(impl##_keymgmt_functions, \ + return ossl_prov_import_key(ossl_##impl##_keymgmt_functions, \ ctx, selection, params); \ } \ static void impl##2text_free_object(void *key) \ { \ - ossl_prov_free_key(impl##_keymgmt_functions, key); \ + ossl_prov_free_key(ossl_##impl##_keymgmt_functions, key); \ } \ static int impl##2text_encode(void *vctx, OSSL_CORE_BIO *cout, \ const void *key, \ @@ -868,7 +868,7 @@ static int key2text_encode(void *vctx, const void *key, int selection, return key2text_encode(vctx, key, selection, cout, \ type##_to_text, cb, cbarg); \ } \ - const OSSL_DISPATCH impl##_to_text_encoder_functions[] = { \ + const OSSL_DISPATCH ossl_##impl##_to_text_encoder_functions[] = { \ { OSSL_FUNC_ENCODER_NEWCTX, \ (void (*)(void))key2text_newctx }, \ { OSSL_FUNC_ENCODER_FREECTX, \ |