summaryrefslogtreecommitdiffstats
path: root/crypto/evp/mac_meth.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-08-16 09:04:29 +0200
committerRichard Levitte <levitte@openssl.org>2019-08-16 09:04:29 +0200
commit92d9d0ae2b10b12e42d33047b60e64ebfc296596 (patch)
tree36268ad8d147f30bb179cb089449beb39271b8d3 /crypto/evp/mac_meth.c
parent356461fbbb8f4070f57ac4d13b34e0e0bbfee92b (diff)
Rename ctx_{get,set}_params to {get,set}_ctx_params
Recently, we added dispatched functions to get parameter descriptions, and those for operation context parameters ended up being called something_gettable_ctx_params and something_settable_ctx_params. The corresponding dispatched functions to actually perform parameter transfers were previously called something_ctx_get_params and something_ctx_set_params, which doesn't quite match, so we rename them to something_get_ctx_params and something_set_ctx_params. An argument in favor of this name change is English, where you'd rather say something like "set the context parameters". This only change the libcrypto <-> provider interface. Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/9612)
Diffstat (limited to 'crypto/evp/mac_meth.c')
-rw-r--r--crypto/evp/mac_meth.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/crypto/evp/mac_meth.c b/crypto/evp/mac_meth.c
index e5eed33774..1c0d6425f7 100644
--- a/crypto/evp/mac_meth.c
+++ b/crypto/evp/mac_meth.c
@@ -120,15 +120,15 @@ static void *evp_mac_from_dispatch(const char *name, const OSSL_DISPATCH *fns,
break;
mac->get_params = OSSL_get_OP_mac_get_params(fns);
break;
- case OSSL_FUNC_MAC_CTX_GET_PARAMS:
- if (mac->ctx_get_params != NULL)
+ case OSSL_FUNC_MAC_GET_CTX_PARAMS:
+ if (mac->get_ctx_params != NULL)
break;
- mac->ctx_get_params = OSSL_get_OP_mac_ctx_get_params(fns);
+ mac->get_ctx_params = OSSL_get_OP_mac_get_ctx_params(fns);
break;
- case OSSL_FUNC_MAC_CTX_SET_PARAMS:
- if (mac->ctx_set_params != NULL)
+ case OSSL_FUNC_MAC_SET_CTX_PARAMS:
+ if (mac->set_ctx_params != NULL)
break;
- mac->ctx_set_params = OSSL_get_OP_mac_ctx_set_params(fns);
+ mac->set_ctx_params = OSSL_get_OP_mac_set_ctx_params(fns);
break;
}
}