mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-05-28 04:35:40 -04:00
Make preprocessor fallback for gnutls more readable
This commit is contained in:
parent
239f569b6c
commit
28b5a1cc45
1 changed files with 1 additions and 3 deletions
|
|
@ -136,12 +136,10 @@ int np_net_ssl_init_with_hostname_version_and_cert(int sd, char *host_name, int
|
|||
if (cert && privkey) {
|
||||
#ifdef USE_OPENSSL
|
||||
if (!SSL_CTX_use_certificate_chain_file(c, cert)) {
|
||||
#else
|
||||
#if USE_GNUTLS
|
||||
#elif USE_GNUTLS
|
||||
if (!SSL_CTX_use_certificate_file(c, cert, SSL_FILETYPE_PEM)) {
|
||||
#else
|
||||
#error Unported for unknown SSL library
|
||||
#endif
|
||||
#endif
|
||||
printf ("%s\n", _("CRITICAL - Unable to open certificate chain file!\n"));
|
||||
return STATE_CRITICAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue