aboutsummaryrefslogtreecommitdiff
path: root/providers/defltprov.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-05-18 14:11:06 +0100
committerMatt Caswell <matt@openssl.org>2020-06-19 10:19:31 +0100
commit72bfc9585891cffd29eb683ae5fb3181d62b9d33 (patch)
treed0aa468eff53efd75fe95b5210c2387acf7903ca /providers/defltprov.c
parentedeaa96ae6aa9b5e0ba5fe98a7258086767a7887 (diff)
downloadopenssl-72bfc9585891cffd29eb683ae5fb3181d62b9d33.zip
openssl-72bfc9585891cffd29eb683ae5fb3181d62b9d33.tar.gz
openssl-72bfc9585891cffd29eb683ae5fb3181d62b9d33.tar.bz2
Add the concept of "Capabilities" to the default and fips providers
With capabilities we can query a provider about what it can do. Initially we support a "TLS-GROUP" capability. Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/11914)
Diffstat (limited to 'providers/defltprov.c')
-rw-r--r--providers/defltprov.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/providers/defltprov.c b/providers/defltprov.c
index 4b15a21..8e27b33 100644
--- a/providers/defltprov.c
+++ b/providers/defltprov.c
@@ -550,6 +550,7 @@ static const OSSL_ALGORITHM *deflt_query(void *provctx, int operation_id,
return NULL;
}
+
static void deflt_teardown(void *provctx)
{
BIO_meth_free(PROV_CTX_get0_core_bio_method(provctx));
@@ -562,6 +563,7 @@ static const OSSL_DISPATCH deflt_dispatch_table[] = {
{ OSSL_FUNC_PROVIDER_GETTABLE_PARAMS, (void (*)(void))deflt_gettable_params },
{ OSSL_FUNC_PROVIDER_GET_PARAMS, (void (*)(void))deflt_get_params },
{ OSSL_FUNC_PROVIDER_QUERY_OPERATION, (void (*)(void))deflt_query },
+ { OSSL_FUNC_PROVIDER_GET_CAPABILITIES, (void (*)(void))provider_get_capabilities },
{ 0, NULL }
};