Skip to content

Commit

Permalink
changed to using NULL context like it originally was
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoertzen-sb committed Dec 14, 2023
1 parent e8309d3 commit 84ba043
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions bin/dnssec/dnssec-dsfromkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,13 +465,13 @@ main(int argc, char **argv) {
}
}
#if OPENSSL_VERSION_NUMBER >= 0x30200000L && OPENSSL_API_LEVEL >= 30200
oqs = OSSL_PROVIDER_load(OSSL_LIB_CTX_get0_global_default(), "oqsprovider");
oqs = OSSL_PROVIDER_load(NULL, "oqsprovider");
if (oqs == NULL) {
ERR_print_errors_fp(stderr);
ERR_clear_error();
fatal("Failed to load oqsprovider");
}
default_provider = OSSL_PROVIDER_load(OSSL_LIB_CTX_get0_global_default(), "default");
default_provider = OSSL_PROVIDER_load(NULL, "default");
if (default_provider == NULL) {
OSSL_PROVIDER_unload(oqs);
ERR_print_errors_fp(stderr);
Expand Down
8 changes: 4 additions & 4 deletions bin/dnssec/dnssec-keygen.c
Original file line number Diff line number Diff line change
Expand Up @@ -1160,12 +1160,12 @@ main(int argc, char **argv) {

if (set_fips_mode) {
#if OPENSSL_VERSION_NUMBER >= 0x30200000L && OPENSSL_API_LEVEL >= 30200
fips = OSSL_PROVIDER_load(OSSL_LIB_CTX_get0_global_default(), "fips");
fips = OSSL_PROVIDER_load(NULL, "fips");
if (fips == NULL) {
ERR_clear_error();
fatal("Failed to load FIPS provider");
}
base = OSSL_PROVIDER_load(OSSL_LIB_CTX_get0_global_default(), "base");
base = OSSL_PROVIDER_load(NULL, "base");
if (base == NULL) {
OSSL_PROVIDER_unload(fips);
ERR_clear_error();
Expand All @@ -1179,7 +1179,7 @@ main(int argc, char **argv) {
}
}
#if OPENSSL_VERSION_NUMBER >= 0x30200000L && OPENSSL_API_LEVEL >= 30200
oqs = OSSL_PROVIDER_load(OSSL_LIB_CTX_get0_global_default(), "oqsprovider");
oqs = OSSL_PROVIDER_load(NULL, "oqsprovider");
if (oqs == NULL) {
if (fips != NULL) {
OSSL_PROVIDER_unload(fips);
Expand All @@ -1191,7 +1191,7 @@ main(int argc, char **argv) {
ERR_clear_error();
fatal("Failed to load oqsprovider");
}
default_provider = OSSL_PROVIDER_load(OSSL_LIB_CTX_get0_global_default(), "default");
default_provider = OSSL_PROVIDER_load(NULL, "default");
if (default_provider == NULL) {
OSSL_PROVIDER_unload(oqs);
ERR_clear_error();
Expand Down
6 changes: 3 additions & 3 deletions bin/dnssec/dnssec-signzone.c
Original file line number Diff line number Diff line change
Expand Up @@ -3739,12 +3739,12 @@ main(int argc, char *argv[]) {

if (set_fips_mode) {
#if OPENSSL_VERSION_NUMBER >= 0x30200000L && OPENSSL_API_LEVEL >= 30200
fips = OSSL_PROVIDER_load(OSSL_LIB_CTX_get0_global_default(), "fips");
fips = OSSL_PROVIDER_load(NULL, "fips");
if (fips == NULL) {
ERR_clear_error();
fatal("Failed to load FIPS provider");
}
base = OSSL_PROVIDER_load(OSSL_LIB_CTX_get0_global_default(), "base");
base = OSSL_PROVIDER_load(NULL, "base");
if (base == NULL) {
OSSL_PROVIDER_unload(fips);
ERR_clear_error();
Expand All @@ -3758,7 +3758,7 @@ main(int argc, char *argv[]) {
}
}
#if OPENSSL_VERSION_NUMBER >= 0x30200000L && OPENSSL_API_LEVEL >= 30200
oqs = OSSL_PROVIDER_load(OSSL_LIB_CTX_get0_global_default(), "oqsprovider");
oqs = OSSL_PROVIDER_load(NULL, "oqsprovider");
if (oqs == NULL) {
if (fips != NULL) {
OSSL_PROVIDER_unload(fips);
Expand Down
8 changes: 4 additions & 4 deletions bin/named/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -973,13 +973,13 @@ parse_command_line(int argc, char *argv[]) {
break;
case 'F':
#if OPENSSL_VERSION_NUMBER >= 0x30200000L && OPENSSL_API_LEVEL >= 30200
fips = OSSL_PROVIDER_load(OSSL_LIB_CTX_get0_global_default(), "fips");
fips = OSSL_PROVIDER_load(NULL, "fips");
if (fips == NULL) {
ERR_clear_error();
named_main_earlyfatal(
"Failed to load FIPS provider");
}
base = OSSL_PROVIDER_load(OSSL_LIB_CTX_get0_global_default(), "base");
base = OSSL_PROVIDER_load(NULL, "base");
if (base == NULL) {
OSSL_PROVIDER_unload(fips);
ERR_clear_error();
Expand Down Expand Up @@ -1548,7 +1548,7 @@ main(int argc, char *argv[]) {
printf("=============================================================\n");
fflush(stdout);
#if OPENSSL_VERSION_NUMER >= 0x30200000L && OPENSSL_API_LEVEL >= 30200
oqs = OSSL_PROVIDER_load(OSSL_LIB_CTX_get0_global_default(), "oqsprovider");
oqs = OSSL_PROVIDER_load(NULL, "oqsprovider");
if (oqs == NULL) {
if (fips != NULL) {
OSSL_PROVIDER_unload(fips);
Expand All @@ -1559,7 +1559,7 @@ main(int argc, char *argv[]) {
ERR_clear_error();
named_main_earlyfatal("failed to load oqsprovider");
}
default_provider = OSSL_PROVIDER_load(OSSL_LIB_CTX_get0_global_default(), "default");
default_provider = OSSL_PROVIDER_load(NULL, "default");
if (default_provider == NULL) {
OSSL_PROVIDER_unload(oqs);
if (fips != NULL) {
Expand Down

0 comments on commit 84ba043

Please sign in to comment.