aboutsummaryrefslogtreecommitdiffstats
path: root/test/filterprov.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2020-05-18 23:37:18 +0100
committerMatt Caswell <matt@openssl.org>2020-06-19 10:19:31 +0100
commit9d2d857f135abd281591ee0c2b58e01a710c3cea (patch)
tree6b0bab33c78f0366d0448f633d43333fc991fb51 /test/filterprov.c
parent82ec09ec6d4e35ef359a7cb22c0cb46662f18155 (diff)
downloadopenssl-9d2d857f135abd281591ee0c2b58e01a710c3cea.tar.gz
Modify libssl to discover supported groups based on available providers
Now that we have added the TLS-GROUP capability to the default provider we can use that to discover the supported group list based on the loaded providers. Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/11914)
Diffstat (limited to 'test/filterprov.c')
-rw-r--r--test/filterprov.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/filterprov.c b/test/filterprov.c
index 9fe6690e50..c2189e25a8 100644
--- a/test/filterprov.c
+++ b/test/filterprov.c
@@ -66,6 +66,14 @@ static int filter_get_params(void *provctx, OSSL_PARAM params[])
return OSSL_PROVIDER_get_params(globs->deflt, params);
}
+static int filter_get_capabilities(void *provctx, const char *capability,
+ OSSL_CALLBACK *cb, void *arg)
+{
+ struct filter_prov_globals_st *globs = get_globals();
+
+ return OSSL_PROVIDER_get_capabilities(globs->deflt, capability, cb, arg);
+}
+
static const OSSL_ALGORITHM *filter_query(void *provctx,
int operation_id,
int *no_cache)
@@ -97,6 +105,7 @@ static const OSSL_DISPATCH filter_dispatch_table[] = {
{ OSSL_FUNC_PROVIDER_GETTABLE_PARAMS, (void (*)(void))filter_gettable_params },
{ OSSL_FUNC_PROVIDER_GET_PARAMS, (void (*)(void))filter_get_params },
{ OSSL_FUNC_PROVIDER_QUERY_OPERATION, (void (*)(void))filter_query },
+ { OSSL_FUNC_PROVIDER_GET_CAPABILITIES, (void (*)(void))filter_get_capabilities },
{ OSSL_FUNC_PROVIDER_TEARDOWN, (void (*)(void))filter_teardown },
{ 0, NULL }
};