[From nobody Wed Nov  4 16:14:05 2026
Received: (at submit) by bugs.debian.org; 8 Oct 2012 12:41:18 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.1-bugs.debian.org_2005_01_02
 (2010-03-16) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-9.9 required=4.0 tests=BAYES_00, FOURLA, HAS_PACKAGE,
 MURPHY_DRUGS_REL8,WWWRU,XMAILER_REPORTBUG autolearn=ham
 version=3.3.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 39; hammy, 149; neutral, 184; spammy,
 2. spammytokens:0.999-1--(unknown), 0.999-1--(unknown)
 hammytokens:0.000-+--(unknown), 0.000-+--(unknown), 0.000-+--(unknown),
 0.000-+--(unknown), 0.000-+--(unknown)
Return-path: &lt;max@tcen.ru&gt;
Received: from fish.elvis.ru ([82.138.51.18])
 by buxtehude.debian.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.72) (envelope-from &lt;max@tcen.ru&gt;) id 1TLCe6-000825-6e
 for submit@bugs.debian.org; Mon, 08 Oct 2012 12:41:18 +0000
Received: from [10.111.1.36] (helo=tracker.office.elvis.ru)
 by fish.elvis.ru with esmtp (Exim 4.76) (envelope-from &lt;max@tcen.ru&gt;)
 id 1TLCEw-0006nF-24; Mon, 08 Oct 2012 16:15:19 +0400
Received: by tracker.office.elvis.ru (Postfix, from userid 1000)
 id 79FFC8F2D0; Mon,  8 Oct 2012 16:15:16 +0400 (MSK)
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Max Kosmach &lt;max@tcen.ru&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: nagios-plugins-basic: Please add support for loading openssl
 configuration (for engines support, etc)
Message-ID: &lt;20121008121515.27801.842.reportbug@tracker.office.elvis.ru&gt;
X-Mailer: reportbug 6.4.2
Date: Mon, 08 Oct 2012 16:15:16 +0400
X-Spam_report: Content analysis details:   (6.0 points, 10.0 required)
 ------------------------------------------------------------
 pts	rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 7.0 BAYES_99               BODY: Bayes spam probability is 99 to 100%
 [score: 1.0000]
 0.0 T_FRT_SLUT             BODY: ReplaceTags: Slut
X-Greylist: delayed 1547 seconds by postgrey-1.32 at buxtehude;
 Mon, 08 Oct 2012 12:41:17 UTC
Delivered-To: submit@bugs.debian.org

Package: nagios-plugins-basic
Version: 1.4.16-1
Severity: normal
Tags: patch upstream

Current check_http and other ssl-enabled check doesn't support loading of openssl configuration.

Please add pacth below to enable loading default configuration.
Patches based on CryptoCom patches of other ssl-enabled software (http://cryptocom.ru/opensource/index.html)

Patch:

diff -urN nagios-plugins-1.4.16.current/plugins/sslutils.c nagios-plugins-1.4.16/plugins/sslutils.c
--- nagios-plugins-1.4.16.current/plugins/sslutils.c    2012-06-27 21:32:47.000000000 +0400
+++ nagios-plugins-1.4.16/plugins/sslutils.c    2012-10-08 16:04:01.000000000 +0400
@@ -71,6 +71,9 @@
        }
        if (!initialized) {
                /* Initialize SSL context */
+#if OPENSSL_VERSION_NUMBER &gt;= 0x00907000
+               OPENSSL_config(NULL);
+#endif
                SSLeay_add_ssl_algorithms();
                SSL_load_error_strings();
                OpenSSL_add_all_algorithms();
diff -urN nagios-plugins-1.4.16.current/plugins/common.h nagios-plugins-1.4.16/plugins/common.h
--- nagios-plugins-1.4.16.current/plugins/common.h      2012-06-27 21:32:47.000000000 +0400
+++ nagios-plugins-1.4.16/plugins/common.h      2012-10-08 16:03:16.000000000 +0400
@@ -156,6 +156,9 @@
 #      include &lt;openssl/pem.h&gt;
 #      include &lt;openssl/ssl.h&gt;
 #      include &lt;openssl/err.h&gt;
+#if OPENSSL_VERSION_NUMBER &gt;= 0x00907000
+#include &lt;openssl/conf.h&gt;
+#endif
 #    endif
 #  endif
 #endif



-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-3-686-pae (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages nagios-plugins-basic depends on:
ii  iputils-ping           3:20101006-1+b1
ii  libc6                  2.13-35
ii  libssl1.0.0            1.0.1c-4
ii  nagios-plugins-common  1.4.16-1
ii  procps                 1:3.3.3-2
ii  ucf                    3.0025+nmu3

nagios-plugins-basic recommends no packages.

Versions of packages nagios-plugins-basic suggests:
ii  nagios3  3.4.1-2

-- Configuration Files:
/etc/nagios-plugins/config/dhcp.cfg changed [not included]
/etc/nagios-plugins/config/disk-smb.cfg changed [not included]
/etc/nagios-plugins/config/disk.cfg changed [not included]
/etc/nagios-plugins/config/dummy.cfg changed [not included]
/etc/nagios-plugins/config/fping.cfg changed [not included]
/etc/nagios-plugins/config/ftp.cfg changed [not included]
/etc/nagios-plugins/config/http.cfg changed [not included]
/etc/nagios-plugins/config/load.cfg changed [not included]
/etc/nagios-plugins/config/mail.cfg changed [not included]
/etc/nagios-plugins/config/news.cfg changed [not included]
/etc/nagios-plugins/config/ntp.cfg changed [not included]
/etc/nagios-plugins/config/ping.cfg changed [not included]
/etc/nagios-plugins/config/procs.cfg changed [not included]
/etc/nagios-plugins/config/real.cfg changed [not included]
/etc/nagios-plugins/config/rpc-nfs.cfg changed [not included]
/etc/nagios-plugins/config/ssh.cfg changed [not included]
/etc/nagios-plugins/config/tcp_udp.cfg changed [not included]
/etc/nagios-plugins/config/telnet.cfg changed [not included]
/etc/nagios-plugins/config/users.cfg changed [not included]

-- no debconf information
]