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-t2pkg.c,v 1.1 2019/05/03 11:04:34 hauke Exp $ Move to openssl 1.1 api --- t2pkg.c.orig 2010-12-13 03:42:49.000000000 +0000 +++ t2pkg.c @@@@ -23,6 +23,7 @@@@ #include #endif /* linux */ +#include "openssl_compat.h" #include "applefile.h" #include "base64.h" #include "transcript.h" @@@@ -61,7 +62,7 @@@@ copy_file( struct transcript *t, char *d char *trancksum = t->t_pinfo.pi_cksum_b64; char *path = t->t_pinfo.pi_name; ssize_t rr, size = 0; - 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 ) ]; #ifdef __APPLE__ @@@@ -83,7 +84,7 @@@@ copy_file( struct transcript *t, char *d fprintf( stderr, "line %d: no checksum\n", t->t_linenum ); return( -1 ); } - EVP_DigestInit( &mdctx, md ); + EVP_DigestInit( mdctx, md ); } if (( rfd = open( src, O_RDONLY, 0 )) < 0 ) { @@@@ -150,7 +151,7 @@@@ copy_file( struct transcript *t, char *d goto error2; } if ( cksum ) { - EVP_DigestUpdate( &mdctx, ( char * )&header, ( unsigned int )rr ); + EVP_DigestUpdate( mdctx, ( char * )&header, ( unsigned int )rr ); } size -= rr; if ( showprogress ) { @@@@ -175,7 +176,7 @@@@ copy_file( struct transcript *t, char *d as_entry_netswap( &as_ents[ AS_DFE ] ); if ( cksum ) { - EVP_DigestUpdate( &mdctx, ( char * )&as_ents, ( unsigned int )rr ); + EVP_DigestUpdate( mdctx, ( char * )&as_ents, ( unsigned int )rr ); } size -= rr; if ( showprogress ) { @@@@ -198,7 +199,7 @@@@ copy_file( struct transcript *t, char *d goto error2; } if ( cksum ) { - EVP_DigestUpdate( &mdctx, finfo, ( unsigned int )rr ); + EVP_DigestUpdate( mdctx, finfo, ( unsigned int )rr ); } if ( showprogress ) { progressupdate( rr, path ); @@@@ -229,7 +230,7 @@@@ copy_file( struct transcript *t, char *d goto error2; } if ( cksum ) { - EVP_DigestUpdate( &mdctx, buf, ( unsigned int )rr ); + EVP_DigestUpdate( mdctx, buf, ( unsigned int )rr ); } if ( showprogress ) { progressupdate( rr, path ); @@@@ -248,7 +249,7 @@@@ copy_file( struct transcript *t, char *d * entries to the checksum digest. */ if ( cksum ) { - EVP_DigestUpdate( &mdctx, &as_header, AS_HEADERLEN ); + EVP_DigestUpdate( mdctx, &as_header, AS_HEADERLEN ); as_ents[AS_FIE].ae_id = ASEID_FINFO; as_ents[AS_FIE].ae_offset = AS_HEADERLEN + @@@@ -274,7 +275,7 @@@@ copy_file( struct transcript *t, char *d as_entry_netswap( &as_ents[ AS_RFE ] ); as_entry_netswap( &as_ents[ AS_DFE ] ); - EVP_DigestUpdate( &mdctx, ( char * )&as_ents, + EVP_DigestUpdate( mdctx, ( char * )&as_ents, ( 3 * sizeof( struct as_entry ))); } size -= ( AS_HEADERLEN + ( 3 * sizeof( struct as_entry )) + FINFOLEN ); @@@@ -292,7 +293,7 @@@@ copy_file( struct transcript *t, char *d } } if ( cksum ) { - EVP_DigestUpdate( &mdctx, ai.ai_data, FINFOLEN ); + EVP_DigestUpdate( mdctx, ai.ai_data, FINFOLEN ); } /* read and write the finder info and rsrc fork from the system */ @@@@ -318,7 +319,7 @@@@ copy_file( struct transcript *t, char *d goto error2; } if ( cksum ) { - EVP_DigestUpdate( &mdctx, buf, rr ); + EVP_DigestUpdate( mdctx, buf, rr ); } size -= rr; if ( showprogress ) { @@@@ -354,7 +355,7 @@@@ copy_file( struct transcript *t, char *d goto error2; } if ( cksum ) { - EVP_DigestUpdate( &mdctx, buf, rr ); + EVP_DigestUpdate( mdctx, buf, rr ); } size -= rr; if ( showprogress ) { @@@@ -383,8 +384,9 @@@@ copy_file( struct transcript *t, char *d } if ( cksum ) { - EVP_DigestFinal( &mdctx, md_value, &md_len ); + EVP_DigestFinal( mdctx, md_value, &md_len ); base64_e( md_value, md_len, ( char * )cksum_b64 ); + EVP_MD_CTX_free(mdctx); if ( strcmp( trancksum, cksum_b64 ) != 0 ) { if ( force ) { fprintf( stderr, "warning: " ); @ 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$ @