Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37500462
en ru br
Репозитории ALT
S:7.94-alt1
5.1: 5.00-alt2
4.1: 4.20-alt3
4.0: 4.11-alt1.1
3.0: 3.81-alt1
www.altlinux.org/Changes

Группа :: Мониторинг
Пакет: nmap

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: nmap-5.51-alt-ncat-certs.patch
Скачать


--- nmap/ncat/Makefile.in
+++ nmap/ncat/Makefile.in
@@ -75,7 +75,6 @@ DATAFILES =
 ifneq ($(HAVE_OPENSSL),)
 SRCS += http_digest.c
 OBJS += http_digest.o
-DATAFILES = certs/ca-bundle.crt
 endif
 
 TARGET = ncat
--- nmap/ncat/ncat_posix.c
+++ nmap/ncat/ncat_posix.c
@@ -330,28 +330,14 @@ void set_lf_mode(void)
 }
 
 #ifdef HAVE_OPENSSL
-
-#define NCAT_CA_CERTS_PATH (NCAT_DATADIR "/" NCAT_CA_CERTS_FILE)
-
 int ssl_load_default_ca_certs(SSL_CTX *ctx)
 {
-    int rc;
-
     if (o.debug)
-        logdebug("Using system default trusted CA certificates and those in %s.\n", NCAT_CA_CERTS_PATH);
+        logdebug("Using system default trusted CA certificates\n");
 
     /* Load distribution-provided defaults, if any. */
     assert(SSL_CTX_set_default_verify_paths(ctx) > 0);
 
-    /* Also load the trusted certificates we ship. */
-    rc = SSL_CTX_load_verify_locations(ctx, NCAT_CA_CERTS_PATH, NULL);
-    if (rc != 1) {
-        if (o.debug)
-            logdebug("Unable to load trusted CA certificates from %s: %s\n",
-                NCAT_CA_CERTS_PATH, ERR_error_string(ERR_get_error(), NULL));
-        return -1;
-    }
-
     return 0;
 }
 #endif
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin