Skip to content

Commit

Permalink
Merge pull request #597 from npes87184/remove_ifdef
Browse files Browse the repository at this point in the history
Remove unnecessary ifdef of NATS_HAS_TLS
  • Loading branch information
kozlovic authored Oct 4, 2022
2 parents 8a04792 + b2609da commit 95a2316
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,6 @@ _makeTLSConn(natsConnection *nc)
}
if (s == NATS_OK)
{
#if defined(NATS_HAS_TLS)
if (nc->opts->sslCtx->skipVerify)
{
SSL_set_verify(ssl, SSL_VERIFY_NONE, NULL);
Expand Down Expand Up @@ -728,7 +727,6 @@ _makeTLSConn(natsConnection *nc)
if (s == NATS_OK)
SSL_set_verify(ssl, SSL_VERIFY_PEER, _collectSSLErr);
}
#endif
}
if ((s == NATS_OK) && (SSL_do_handshake(ssl) != 1))
{
Expand Down

0 comments on commit 95a2316

Please sign in to comment.