Edit

IABSD.fr/ports/security/libssh/Makefile

Branch :

  • Show log

    Commit

  • Author : sthen
    Date : 2025-09-12 10:07:57
    Hash : 8776b891
    Message : update to libssh-0.11.3 * Security: * CVE-2025-8114: Fix NULL pointer dereference after allocation failure * CVE-2025-8277: Fix memory leak of ephemeral key pair during repeated wrong KEX * Potential UAF when send() fails during key exchange * Fix possible timeout during KEX if client sends authentication too early (#311) * Cleanup OpenSSL PKCS#11 provider when loaded * Zeroize buffers containing private key blobs during export

  • security/libssh/Makefile
  • COMMENT =		C library implementing server and client side SSH
    V =			0.11.3
    DISTNAME =		libssh-${V}
    
    SHARED_LIBS +=		ssh		4.3 # 4.8
    
    CATEGORIES =		security devel
    
    HOMEPAGE =		https://www.libssh.org/
    SITES =			https://www.libssh.org/files/${V:R}/
    EXTRACT_SUFX =		.tar.xz
    
    # LGPL v2.1
    PERMIT_PACKAGE =	Yes
    
    COMPILER =		base-clang ports-gcc
    COMPILER_LANGS =	c
    
    WANTLIB += crypto z
    
    # see patches/patch-src_CMakeLists_txt /
    # https://gitlab.com/libssh/libssh-mirror/-/issues/286
    WANTLIB += pthread
    
    MODULES =		devel/cmake
    
    WRKBUILD =		${WRKDIST}/build
    
    BUILD_DEPENDS =		devel/cmocka \
    			devel/argp-standalone
    
    CONFIGURE_ARGS +=	-DUNIT_TESTING=ON \
    			-DWITH_EXAMPLES=OFF
    
    DEBUG_PACKAGES =	${BUILD_PACKAGES}
    
    .include <bsd.port.mk>