Lines Matching refs:fgbl

106     FIPS_GLOBAL *fgbl = OPENSSL_zalloc(sizeof(*fgbl));  in ossl_fips_prov_ossl_ctx_new()  local
108 if (fgbl == NULL) in ossl_fips_prov_ossl_ctx_new()
112 init_fips_option(&fgbl->fips_##structname, initvalue); in ossl_fips_prov_ossl_ctx_new()
116 return fgbl; in ossl_fips_prov_ossl_ctx_new()
119 void ossl_fips_prov_ossl_ctx_free(void *fgbl) in ossl_fips_prov_ossl_ctx_free() argument
121 OPENSSL_free(fgbl); in ossl_fips_prov_ossl_ctx_free()
129 static int fips_get_params_from_core(FIPS_GLOBAL *fgbl) in fips_get_params_from_core() argument
135 paramname, (char **)&fgbl->selftest_params.structname, \ in fips_get_params_from_core()
136 sizeof(fgbl->selftest_params.structname)); in fips_get_params_from_core()
146 (char **)&fgbl->fips_##structname.option, \ in fips_get_params_from_core()
147 sizeof(fgbl->fips_##structname.option)); in fips_get_params_from_core()
153 if (!c_get_params(fgbl->handle, core_params)) { in fips_get_params_from_core()
183 FIPS_GLOBAL *fgbl = ossl_lib_ctx_get_data(ossl_prov_ctx_get0_libctx(provctx), in fips_get_params() local
201 if (p != NULL && !OSSL_PARAM_set_int(p, fgbl->fips_##structname.enabled)) \ in fips_get_params()
209 static void set_self_test_cb(FIPS_GLOBAL *fgbl) in set_self_test_cb() argument
212 FIPS_get_core_handle(fgbl->selftest_params.libctx); in set_self_test_cb()
215 c_stcbfn(c_get_libctx(handle), &fgbl->selftest_params.cb, in set_self_test_cb()
216 &fgbl->selftest_params.cb_arg); in set_self_test_cb()
218 fgbl->selftest_params.cb = NULL; in set_self_test_cb()
219 fgbl->selftest_params.cb_arg = NULL; in set_self_test_cb()
225 FIPS_GLOBAL *fgbl = ossl_lib_ctx_get_data(ossl_prov_ctx_get0_libctx(provctx), in fips_self_test() local
228 set_self_test_cb(fgbl); in fips_self_test()
229 return SELF_TEST_post(&fgbl->selftest_params, 1) ? 1 : 0; in fips_self_test()
638 FIPS_GLOBAL *fgbl; in OSSL_provider_init_int() local
761 if ((fgbl = ossl_lib_ctx_get_data(libctx, OSSL_LIB_CTX_FIPS_PROV_INDEX)) == NULL) in OSSL_provider_init_int()
764 fgbl->handle = handle; in OSSL_provider_init_int()
780 fgbl->selftest_params = selftest_params; in OSSL_provider_init_int()
782 fgbl->selftest_params.libctx = libctx; in OSSL_provider_init_int()
784 set_self_test_cb(fgbl); in OSSL_provider_init_int()
786 if (!fips_get_params_from_core(fgbl)) { in OSSL_provider_init_int()
794 if (fgbl->selftest_params.conditional_error_check != NULL in OSSL_provider_init_int()
795 && strcmp(fgbl->selftest_params.conditional_error_check, "0") == 0) in OSSL_provider_init_int()
800 if (fgbl->fips_##structname.option != NULL) { \ in OSSL_provider_init_int()
801 if (strcmp(fgbl->fips_##structname.option, "1") == 0) \ in OSSL_provider_init_int()
802 fgbl->fips_##structname.enabled = 1; \ in OSSL_provider_init_int()
803 else if (strcmp(fgbl->fips_##structname.option, "0") == 0) \ in OSSL_provider_init_int()
804 fgbl->fips_##structname.enabled = 0; \ in OSSL_provider_init_int()
813 if (!SELF_TEST_post(&fgbl->selftest_params, 0)) { in OSSL_provider_init_int()
922 FIPS_GLOBAL *fgbl = ossl_lib_ctx_get_data(libctx, in FIPS_get_core_handle() local
925 if (fgbl == NULL) in FIPS_get_core_handle()
928 return fgbl->handle; in FIPS_get_core_handle()
1007 FIPS_GLOBAL *fgbl = \
1010 return fgbl->fips_##structname.enabled; \