head 1.2; access; symbols pkgsrc-2026Q3:1.1.0.60 pkgsrc-2026Q3-base:1.1 pkgsrc-2026Q2:1.1.0.58 pkgsrc-2026Q2-base:1.1 pkgsrc-2026Q1:1.1.0.56 pkgsrc-2026Q1-base:1.1 pkgsrc-2025Q4:1.1.0.54 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.52 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.50 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.48 pkgsrc-2025Q1-base:1.1 pkgsrc-2024Q4:1.1.0.46 pkgsrc-2024Q4-base:1.1 pkgsrc-2024Q3:1.1.0.44 pkgsrc-2024Q3-base:1.1 pkgsrc-2024Q2:1.1.0.42 pkgsrc-2024Q2-base:1.1 pkgsrc-2024Q1:1.1.0.40 pkgsrc-2024Q1-base:1.1 pkgsrc-2023Q4:1.1.0.38 pkgsrc-2023Q4-base:1.1 pkgsrc-2023Q3:1.1.0.36 pkgsrc-2023Q3-base:1.1 pkgsrc-2023Q2:1.1.0.34 pkgsrc-2023Q2-base:1.1 pkgsrc-2023Q1:1.1.0.32 pkgsrc-2023Q1-base:1.1 pkgsrc-2022Q4:1.1.0.30 pkgsrc-2022Q4-base:1.1 pkgsrc-2022Q3:1.1.0.28 pkgsrc-2022Q3-base:1.1 pkgsrc-2022Q2:1.1.0.26 pkgsrc-2022Q2-base:1.1 pkgsrc-2022Q1:1.1.0.24 pkgsrc-2022Q1-base:1.1 pkgsrc-2021Q4:1.1.0.22 pkgsrc-2021Q4-base:1.1 pkgsrc-2021Q3:1.1.0.20 pkgsrc-2021Q3-base:1.1 pkgsrc-2021Q2:1.1.0.18 pkgsrc-2021Q2-base:1.1 pkgsrc-2021Q1:1.1.0.16 pkgsrc-2021Q1-base:1.1 pkgsrc-2020Q4:1.1.0.14 pkgsrc-2020Q4-base:1.1 pkgsrc-2020Q3:1.1.0.12 pkgsrc-2020Q3-base:1.1 pkgsrc-2020Q2:1.1.0.10 pkgsrc-2020Q2-base:1.1 pkgsrc-2020Q1:1.1.0.6 pkgsrc-2020Q1-base:1.1 pkgsrc-2019Q4:1.1.0.8 pkgsrc-2019Q4-base:1.1 pkgsrc-2019Q3:1.1.0.4 pkgsrc-2019Q3-base:1.1 pkgsrc-2019Q2:1.1.0.2 pkgsrc-2019Q2-base:1.1; locks; strict; comment @ * @; 1.2 date 2026.10.31.20.45.42; author hauke; state dead; branches; next 1.1; commitid XMWQFgRCfMiGFF1H; 1.1 date 2019.05.03.11.04.34; author hauke; state Exp; branches; next ; commitid 3ZuERMVL2ct0tKlB; desc @@ 1.2 log @sysutils/radmind -- update to v1.15.0 1.15.0 - 2026-10-22 Added fsdiff -E generates shell-safe transcript paths and link targets: spaces are encoded as \ rather than \b. Readers now also accept \ , so transcripts can be copied into shell commands without changing their paths. fsdiff -t omits differences for files whose only changed attribute is the modification timestamp, allowing smaller transcripts when timestamps are not significant. rash -C generate prints a SHA-1 checksum for the difference transcript of applied changes. rash -C verifies that checksum in auto mode and warns about a mismatch in update and force modes. contrib/specialist helps generate special-file transcript entries from a path list or an existing transcript. Docker image, multi-architecture (including ARM64), Docker Compose, macOS package, Ubuntu binary, Homebrew, and GitHub release build workflows. bootstrap.sh prepares a source checkout for the ./configure && make build workflow. Changed Updated the bundled libsnet dependency and moved its source to the GitHub-hosted project. Modernized TLS support for OpenSSL 1.1 and later, while retaining compatibility shims for older OpenSSL releases. Configuration now detects the current OpenSSL version symbol. Improved macOS support: APFS resource-fork writes work even when the target has no existing resource fork; builds and packages support current macOS environments; and the macOS installer now uses pkgbuild/productbuild. The build supports parallel make, has corrected program prerequisites, and produces uniquely named distribution archives. --with-pam accepts a path; configure also detects the appropriate makedev(3) header and common Fink installation prefixes. Radmind now uses libsnet as a Git submodule; checkout and build documentation has been updated accordingly. Reworked the project documentation into README.md, with build, Docker, Homebrew, and project-history guidance. Fixed Eliminated EVP digest-context leaks and double frees in transfer operations, along with several other memory and file-handle leaks. Prevented a base64 encode/decode buffer overrun and corrected Finder-info encoding length handling. Fixed OpenSSL API deprecation and opaque-structure build failures, including FreeBSD and Apple-system-OpenSSL compatibility. Fixed potential path-buffer overflow when processing file_root. Fixed 64-bit time_t support on NetBSD and formatting of custom file mode, user, and group metadata. lapply -F now warns rather than fails when a file to remove is already absent; it also handles APFS resource forks correctly. fsdiff -1 - applies exclusions to stdin paths, skips missing stdin paths with a warning, and has more robust relative/absolute path canonicalization. Special-file metadata lookup now checks a per-file transcript, the special directory transcript, and the default special transcript, with clearer diagnostics and safe path handling. Improved configuration parsing: allocation failures are checked, nested @@include depth is counted correctly, and rejected hosts report the configuration file involved. t2pkg no longer relies on unnecessary realpath calls; existing output directories are accepted. The lcreate manual page was also corrected. Notes The default transcript space encoding remains \b for compatibility with older Radmind readers. Use fsdiff -E only where consumers support \ . Development infrastructure, CI maintenance, formatting cleanup, and release automation changes are included in this release but do not alter Radmind's runtime protocol. @ text @$NetBSD: patch-stor.c,v 1.1 2019/05/03 11:04:34 hauke Exp $ Move to openssl 1.1 api --- stor.c.orig 2010-12-13 03:42:49.000000000 +0000 +++ stor.c @@@@ -32,6 +32,7 @@@@ #include +#include "openssl_compat.h" #include "applefile.h" #include "connect.h" #include "cksum.h" @@@@ -136,7 +137,7 @@@@ stor_file( SNET *sn, char *pathdesc, cha ssize_t rr, size = 0; unsigned int md_len; extern EVP_MD *md; - EVP_MD_CTX mdctx; + EVP_MD_CTX *mdctx = EVP_MD_CTX_new(); unsigned char md_value[ EVP_MAX_MD_SIZE ]; char cksum_b64[ SZ_BASE64_E( EVP_MAX_MD_SIZE ) ]; @@@@ -146,7 +147,7 @@@@ stor_file( SNET *sn, char *pathdesc, cha fprintf( stderr, "line %d: No checksum listed\n", linenum ); exit( 2 ); } - EVP_DigestInit( &mdctx, md ); + EVP_DigestInit( mdctx, md ); } /* Open and stat file */ @@@@ -202,7 +203,7 @@@@ stor_file( SNET *sn, char *pathdesc, cha size -= rr; if ( dodots ) { putc( '.', stdout ); fflush( stdout ); } if ( cksum ) { - EVP_DigestUpdate( &mdctx, buf, (unsigned int)rr ); + EVP_DigestUpdate( mdctx, buf, (unsigned int)rr ); } if ( showprogress ) { @@@@ -237,8 +238,9 @@@@ stor_file( SNET *sn, char *pathdesc, cha /* cksum data sent */ if ( cksum ) { - EVP_DigestFinal( &mdctx, md_value, &md_len ); + EVP_DigestFinal( mdctx, md_value, &md_len ); base64_e( md_value, md_len, cksum_b64 ); + EVP_MD_CTX_free(mdctx); if ( strcmp( trancksum, cksum_b64 ) != 0 ) { fprintf( stderr, "line %d: checksum listed in transcript wrong\n", linenum ); @@@@ -262,7 +264,7 @@@@ stor_applefile( SNET *sn, char *pathdesc unsigned int md_len; unsigned int rsrc_len; extern EVP_MD *md; - EVP_MD_CTX mdctx; + EVP_MD_CTX *mdctx = EVP_MD_CTX_new(); unsigned char md_value[ EVP_MAX_MD_SIZE ]; char cksum_b64[ EVP_MAX_MD_SIZE ]; @@@@ -272,7 +274,7 @@@@ stor_applefile( SNET *sn, char *pathdesc fprintf( stderr, "line %d: No checksum listed\n", linenum ); exit( 2 ); } - EVP_DigestInit( &mdctx, md ); + EVP_DigestInit( mdctx, md ); } /* Check size listed in transcript */ @@@@ -339,7 +341,7 @@@@ stor_applefile( SNET *sn, char *pathdesc } size -= AS_HEADERLEN; if ( cksum ) { - EVP_DigestUpdate( &mdctx, (char *)&as_header, AS_HEADERLEN ); + EVP_DigestUpdate( mdctx, (char *)&as_header, AS_HEADERLEN ); } if ( dodots ) { putc( '.', stdout ); fflush( stdout ); } if ( showprogress ) { @@@@ -357,7 +359,7 @@@@ stor_applefile( SNET *sn, char *pathdesc } size -= ( 3 * sizeof( struct as_entry )); if ( cksum ) { - EVP_DigestUpdate( &mdctx, (char *)&afinfo->as_ents, + EVP_DigestUpdate( mdctx, (char *)&afinfo->as_ents, (unsigned int)( 3 * sizeof( struct as_entry ))); } if ( dodots ) { putc( '.', stdout ); fflush( stdout ); } @@@@ -375,7 +377,7 @@@@ stor_applefile( SNET *sn, char *pathdesc } size -= FINFOLEN; if ( cksum ) { - EVP_DigestUpdate( &mdctx, afinfo->ai.ai_data, FINFOLEN ); + EVP_DigestUpdate( mdctx, afinfo->ai.ai_data, FINFOLEN ); } if ( dodots ) { putc( '.', stdout ); fflush( stdout ); } if ( showprogress ) { @@@@ -393,7 +395,7 @@@@ stor_applefile( SNET *sn, char *pathdesc } size -= rc; if ( cksum ) { - EVP_DigestUpdate( &mdctx, buf, (unsigned int)rc ); + EVP_DigestUpdate( mdctx, buf, (unsigned int)rc ); } if ( dodots ) { putc( '.', stdout ); fflush( stdout ); } if ( showprogress ) { @@@@ -417,7 +419,7 @@@@ stor_applefile( SNET *sn, char *pathdesc } size -= rc; if ( cksum ) { - EVP_DigestUpdate( &mdctx, buf, (unsigned int)rc ); + EVP_DigestUpdate( mdctx, buf, (unsigned int)rc ); } if ( dodots ) { putc( '.', stdout ); fflush( stdout ); } if ( showprogress ) { @@@@ -463,8 +465,9 @@@@ stor_applefile( SNET *sn, char *pathdesc /* cksum data sent */ if ( cksum ) { - EVP_DigestFinal( &mdctx, md_value, &md_len ); + EVP_DigestFinal( mdctx, md_value, &md_len ); base64_e( ( char*)&md_value, md_len, cksum_b64 ); + EVP_MD_CTX_free(mdctx); if ( strcmp( trancksum, cksum_b64 ) != 0 ) { fprintf( stderr, "line %d: checksum listed in transcript wrong\n", linenum ); @ 1.1 log @Add openssl 1.1 support, while maintaining compatibility to 1.0, from upstream with minor changes. @ text @d1 1 a1 1 $NetBSD$ @