Lines Matching defs:libctx

16 int test_get_libctx(OSSL_LIB_CTX **libctx, OSSL_PROVIDER **default_null_prov,
22 if (libctx != NULL) {
23 if ((new_libctx = *libctx = OSSL_LIB_CTX_new()) == NULL) {
24 opt_printf_stderr("Failed to create libctx\n");
31 opt_printf_stderr("Failed to load null provider into default libctx\n");
53 int test_arg_libctx(OSSL_LIB_CTX **libctx, OSSL_PROVIDER **default_null_prov,
64 return test_get_libctx(libctx, default_null_prov,
77 static int fips_provider_version(OSSL_LIB_CTX *libctx, FIPS_VERSION *vers)
83 if (!OSSL_PROVIDER_available(libctx, "fips"))
86 if ((fips_prov = OSSL_PROVIDER_load(libctx, "fips")) == NULL)
99 int fips_provider_version_eq(OSSL_LIB_CTX *libctx, int major, int minor, int patch)
104 if ((res = fips_provider_version(libctx, &prov)) <= 0)
109 int fips_provider_version_ne(OSSL_LIB_CTX *libctx, int major, int minor, int patch)
114 if ((res = fips_provider_version(libctx, &prov)) <= 0)
119 int fips_provider_version_le(OSSL_LIB_CTX *libctx, int major, int minor, int patch)
124 if ((res = fips_provider_version(libctx, &prov)) <= 0)
132 int fips_provider_version_lt(OSSL_LIB_CTX *libctx, int major, int minor, int patch)
137 if ((res = fips_provider_version(libctx, &prov)) <= 0)
145 int fips_provider_version_gt(OSSL_LIB_CTX *libctx, int major, int minor, int patch)
150 if ((res = fips_provider_version(libctx, &prov)) <= 0)
158 int fips_provider_version_ge(OSSL_LIB_CTX *libctx, int major, int minor, int patch)
163 if ((res = fips_provider_version(libctx, &prov)) <= 0)
171 int fips_provider_version_match(OSSL_LIB_CTX *libctx, const char *versions)
216 r = fips_provider_version_eq(libctx, major, minor, patch);
219 r = fips_provider_version_ne(libctx, major, minor, patch);
222 r = fips_provider_version_le(libctx, major, minor, patch);
225 r = fips_provider_version_lt(libctx, major, minor, patch);
228 r = fips_provider_version_gt(libctx, major, minor, patch);
231 r = fips_provider_version_ge(libctx, major, minor, patch);