Hi,

I am building Nginx application with openssl-3.0.0, i have added below code
in main function of nginx application to load fips provider,

  OSSL_PROVIDER *fips;
       OSSL_PROVIDER *base;

       fips = OSSL_PROVIDER_load(NULL, "fips");
       if (fips == NULL) {
           printf("Failed to load FIPS provider\n");
           exit(EXIT_FAILURE);
       }
       base = OSSL_PROVIDER_load(NULL, "base");
       if (base == NULL) {
           OSSL_PROVIDER_unload(fips);
           printf("Failed to load base provider\n");
           exit(EXIT_FAILURE);
       }

but when I start the application it's giving *Failed to load FIPS
provider *error
, with initial debugging I found SELF_TEST_post is failing in below
code st->module_checksum_data in null and returning  error.

    if (st == NULL
            || st->module_checksum_data == NULL) {
        ERR_raise(ERR_LIB_PROV, PROV_R_MISSING_CONFIG_DATA);
        goto end;
    }

Anything I am missing here?

Regards,
Nagarjun
  • [no subject] Nagarjun J
    • Re: Paul Nelson

Reply via email to