Skip to content

Commit

Permalink
make providers local to main
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoertzen-sb committed Dec 14, 2023
1 parent 16c2bd6 commit 2724f02
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/named/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,6 @@ static bool transferstuck = false;
static bool disable6 = false;
static bool disable4 = false;

#if OPENSSL_VERSION_NUMBER >= 0x30200000L && OPENSSL_API_LEVEL >= 30200
static OSSL_PROVIDER *fips = NULL, *base = NULL, *oqs = NULL,
*default_provider = NULL;
#endif

void
named_main_earlywarning(const char *format, ...) {
Expand Down Expand Up @@ -1501,6 +1497,10 @@ main(int argc, char *argv[]) {
#ifdef HAVE_GPERFTOOLS_PROFILER
(void)ProfilerStart(NULL);
#endif /* ifdef HAVE_GPERFTOOLS_PROFILER */
#if OPENSSL_VERSION_NUMBER >= 0x30200000L && OPENSSL_API_LEVEL >= 30200
static OSSL_PROVIDER *fips = NULL, *base = NULL, *oqs = NULL,
*default_provider = NULL;
#endif

/*
* Technically, this call is superfluous because on startup of the main
Expand Down

0 comments on commit 2724f02

Please sign in to comment.