head 1.3; access; symbols pkgsrc-2026Q3:1.2.0.60 pkgsrc-2026Q3-base:1.2 pkgsrc-2026Q2:1.2.0.58 pkgsrc-2026Q2-base:1.2 pkgsrc-2026Q1:1.2.0.56 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.2.0.54 pkgsrc-2025Q4-base:1.2 pkgsrc-2025Q3:1.2.0.52 pkgsrc-2025Q3-base:1.2 pkgsrc-2025Q2:1.2.0.50 pkgsrc-2025Q2-base:1.2 pkgsrc-2025Q1:1.2.0.48 pkgsrc-2025Q1-base:1.2 pkgsrc-2024Q4:1.2.0.46 pkgsrc-2024Q4-base:1.2 pkgsrc-2024Q3:1.2.0.44 pkgsrc-2024Q3-base:1.2 pkgsrc-2024Q2:1.2.0.42 pkgsrc-2024Q2-base:1.2 pkgsrc-2024Q1:1.2.0.40 pkgsrc-2024Q1-base:1.2 pkgsrc-2023Q4:1.2.0.38 pkgsrc-2023Q4-base:1.2 pkgsrc-2023Q3:1.2.0.36 pkgsrc-2023Q3-base:1.2 pkgsrc-2023Q2:1.2.0.34 pkgsrc-2023Q2-base:1.2 pkgsrc-2023Q1:1.2.0.32 pkgsrc-2023Q1-base:1.2 pkgsrc-2022Q4:1.2.0.30 pkgsrc-2022Q4-base:1.2 pkgsrc-2022Q3:1.2.0.28 pkgsrc-2022Q3-base:1.2 pkgsrc-2022Q2:1.2.0.26 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.24 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.2.0.22 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.20 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.2.0.18 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.2.0.16 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.2.0.14 pkgsrc-2020Q4-base:1.2 pkgsrc-2020Q3:1.2.0.12 pkgsrc-2020Q3-base:1.2 pkgsrc-2020Q2:1.2.0.10 pkgsrc-2020Q2-base:1.2 pkgsrc-2020Q1:1.2.0.6 pkgsrc-2020Q1-base:1.2 pkgsrc-2019Q4:1.2.0.8 pkgsrc-2019Q4-base:1.2 pkgsrc-2019Q3:1.2.0.4 pkgsrc-2019Q3-base:1.2 pkgsrc-2019Q2:1.2.0.2 pkgsrc-2019Q2-base:1.2; locks; strict; comment @ * @; 1.3 date 2026.10.31.20.45.41; author hauke; state dead; branches; next 1.2; commitid XMWQFgRCfMiGFF1H; 1.2 date 2019.05.08.08.34.48; author hauke; state Exp; branches; next 1.1; commitid F629YYE98uuKtnmB; 1.1 date 2019.05.03.11.04.34; author hauke; state Exp; branches; next ; commitid 3ZuERMVL2ct0tKlB; desc @@ 1.3 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-cksum.c,v 1.2 2019/05/08 08:34:48 hauke Exp $ Move to openssl 1.1 api --- cksum.c.orig 2010-12-13 03:42:49.000000000 +0000 +++ cksum.c @@@@ -20,6 +20,7 @@@@ #include +#include "openssl_compat.h" #include "applefile.h" #include "cksum.h" #include "base64.h" @@@@ -41,21 +42,22 @@@@ do_fcksum( int fd, char *cksum_b64 ) off_t size = 0; unsigned char buf[ 8192 ]; extern EVP_MD *md; - EVP_MD_CTX mdctx; + EVP_MD_CTX *mdctx = EVP_MD_CTX_new(); unsigned char md_value[ EVP_MAX_MD_SIZE ]; - EVP_DigestInit( &mdctx, md ); + EVP_DigestInit( mdctx, md ); while (( rr = read( fd, buf, sizeof( buf ))) > 0 ) { size += rr; - EVP_DigestUpdate( &mdctx, buf, (unsigned int)rr ); + EVP_DigestUpdate( mdctx, buf, (unsigned int)rr ); } if ( rr < 0 ) { return( -1 ); } - 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); return( size ); } @@@@ -103,13 +105,13 @@@@ do_acksum( char *path, char *cksum_b64, struct as_entry as_entries_endian[ 3 ]; 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 ]; - EVP_DigestInit( &mdctx, md ); + EVP_DigestInit( mdctx, md ); /* checksum applesingle header */ - EVP_DigestUpdate( &mdctx, (char *)&as_header, AS_HEADERLEN ); + EVP_DigestUpdate( mdctx, (char *)&as_header, AS_HEADERLEN ); size += (size_t)AS_HEADERLEN; /* endian handling, sum big-endian header entries */ @@@@ -120,12 +122,12 @@@@ do_acksum( char *path, char *cksum_b64, as_entry_netswap( &as_entries_endian[ AS_DFE ] ); /* checksum header entries */ - EVP_DigestUpdate( &mdctx, (char *)&as_entries_endian, + EVP_DigestUpdate( mdctx, (char *)&as_entries_endian, (unsigned int)( 3 * sizeof( struct as_entry ))); size += sizeof( 3 * sizeof( struct as_entry )); /* checksum finder info data */ - EVP_DigestUpdate( &mdctx, afinfo->ai.ai_data, FINFOLEN ); + EVP_DigestUpdate( mdctx, afinfo->ai.ai_data, FINFOLEN ); size += FINFOLEN; /* checksum rsrc fork data */ @@@@ -140,7 +142,7 @@@@ do_acksum( char *path, char *cksum_b64, return( -1 ); } while (( rc = read( rfd, buf, sizeof( buf ))) > 0 ) { - EVP_DigestUpdate( &mdctx, buf, (unsigned int)rc ); + EVP_DigestUpdate( mdctx, buf, (unsigned int)rc ); size += (size_t)rc; } if ( close( rfd ) < 0 ) { @@@@ -156,7 +158,7 @@@@ do_acksum( char *path, char *cksum_b64, } /* checksum data fork */ while (( rc = read( dfd, buf, sizeof( buf ))) > 0 ) { - EVP_DigestUpdate( &mdctx, buf, (unsigned int)rc ); + EVP_DigestUpdate( mdctx, buf, (unsigned int)rc ); size += (size_t)rc; } if ( rc < 0 ) { @@@@ -166,8 +168,9 @@@@ do_acksum( char *path, char *cksum_b64, return( -1 ); } - 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 ); return( size ); } @ 1.2 log @Update openssl call in an Apple-specific code path - see @ text @d1 1 a1 1 $NetBSD: patch-cksum.c,v 1.1 2019/05/03 11:04:34 hauke Exp $ @ 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$ d99 1 a99 1 + EVP_MD_CTX_free(); @