4 See also this page @ref{Новости, on russian}.
11 Fixed incorrect @code{freq.chunked} value calculation. If it missed,
12 then anyway chunked transfer mode was forcefully turned on.
15 Fixed incorrect full file's size calculation in @file{.nncp.meta}.
20 @section Release 8.0.0
24 @strong{Incompatible} encrypted packet format change: payload and pad
25 sizes are sent in-bound in the encrypted stream. That gives ability to
26 streamingly create encrypted packets, without knowing sizes in advance,
27 without creating temporary file or buffer data in memory.
30 Proper encrypted packet padding verification is done now. This is not
31 critical issue, but previously neither padding value, nor its size were
32 authenticated, giving ability to iteratively strip trailing bytes and
33 determine payload's size by observing the reaction of the encrypted
37 @command{nncp-exec} loses its @option{-use-tmp} option, because of
38 streaming-compatible encrypted packets format.
41 @command{nncp-file} and @command{nncp-exec} commands have
42 @option{-maxsize} option, limiting maximal resulting encrypted packet's
43 maximal size (returning error if it is exceeded). Could be useful,
44 because no payload size could be known in advance.
49 @section Release 7.7.0
53 Experimental @code{kqueue} and @code{inotify} based notifications
54 support about spool directory changes, for reducing their often reading
58 @file{.seen} and @file{.hdr} files moved to @file{seen/} and @file{hdr/}
59 subdirectories, for faster scanning of spool directories.
60 Current files migration required:
63 $ find $NNCPSPOOL -type f -name "*.hdr" -exec rm @{@} +
65 $ find $NNCPSPOOL -type d -name rx | while read rx ; do
68 find . -type f -name "*.seen" | while read fn ; do
69 mv $fn seen/$@{fn%.seen@}
73 $ find $NNCPSPOOL -type d -name area | while read area ; do
74 find $area -type f -name "*.seen" | while read fn ; do
83 @section Release 7.6.0
87 Logging may be done to specified opened file descriptor
88 (@env{$NNCPLOG=FD:5} for example).
89 That is friendly to use under @command{daemontools}.
92 Added additional checks of public keys existence in configuration file,
93 preventing some commands from failing.
98 @section Release 7.5.1
102 NNCP builds on NetBSD.
107 @section Release 7.5.0
111 @command{nncp-daemon} is compatible with UCSPI-TCP interface, so log
112 will contain remote side's address (when running under appropriate
113 utility). @option{-ucspi} option should be used instead of @option{-inetd}.
116 @command{nncp-call} can be UCSPI-TCP client, using @option{-ucspi} option.
119 Do not exit if some of MCD network interfaces can not be listened --
120 only warn about that.
125 @section Release 7.4.0
129 Fixed simultaneous @command{nncp-daemon} and @command{nncp-caller} MCD work.
134 @section Release 7.3.2
138 @command{hjson-cli} utility builds in vendor-mode now.
143 @section Release 7.3.1
147 Fixed possibly left opened file descriptor in online commands.
150 Severely decreased memory usage of MTH hashing.
155 @section Release 7.3.0
159 Fixed some workability problems on 32-bit systems with big files.
162 Ability to use directory with a bunch of files as a configuration.
163 @command{nncp-cfgdir} command appeared.
168 @section Release 7.2.1
172 Small optimizations in online commands.
177 @section Release 7.2.0
181 @command{nncp-trns} command appeared for manual transition packets creation.
184 If destination node of transitional packet has non empty @option{via}
185 route, then do not ignore, but use it.
188 Do not relay multicast packet to area message's originator, that
189 obviously has seen its own packet.
192 Much less memory usage during MTH hashing when offset is zero: when
193 packet is not resumed, but for example checked with @command{nncp-check}
199 @section Release 7.1.1
203 Fixed failing directories fsync after @file{.seen} file creation.
208 @section Release 7.1.0
212 Multicasting areas feature appeared. Implemented merely by an additional
213 plain packet type with @command{nncp-toss}, @command{nncp-file} and
214 @command{nncp-exec} commands modification.
217 Fixed workability of @command{nncp-file} and @command{nncp-exec}
218 commands, that use temporary file (stdin and @option{-use-tmp}).
221 Fixed disappearing bad return code in @command{nncp-exec} command.
224 Fixed invalid @file{.hdr} generation when transitional packets are used.
227 @option{-all} option appeared in @command{nncp-rm} command, applying to
228 all the nodes at once.
231 @option{-cycle} option appeared in @command{nncp-check} command, looping
232 the check in infinite cycle.
235 @command{nncp-rm} command can take node alias name.
238 @command{nncp-pkt} can parse @file{.hdr} files.
243 @section Release 7.0.0
247 Minimal required Go version 1.13.
250 Merkle Tree-based Hashing with BLAKE3 (MTH) is used instead of BLAKE2b.
251 Because of that, there are backward @strong{incompatible} changes of
252 encrypted files (everything laying in the spool directory) and
253 @file{.meta} files of chunked transfer.
255 Current implementation is far from being optimal: it lacks
256 parallelizable calculations and has higher memory consumption: nearly
257 512 KiB for each 1 GiB of file's data. Future performance and memory
258 size optimizations should not lead to packet's format change. But it is
259 still several times faster than BLAKE2b.
262 Resumed online downloads, because of MTH, require reading only of the
263 preceding part of file, not the whole one as was before.
266 @command{nncp-hash} utility appeared for calculating file's MTH hash.
269 BLAKE2 KDF and XOF functions are replaced with BLAKE3 in encrypted
270 packets. Lowering number of used primitives. Also, its encrypted
271 packet's header is used as an associated data during encryption.
274 MultiCast Discovery uses
275 @verb{|ff02::4e4e:4350|} address instead of @verb{|ff02::1|}.
278 @command{nncp-cfgenc} mistakenly asked passphrase three times during encryption.
281 @command{nncp-stat} reports about partly downloaded packets.
284 Updated dependencies.
289 @section Release 6.6.0
293 @command{nncp-daemon}, @command{nncp-call} and @command{nncp-caller}
294 commands wait for all background checksummers completion after
295 connection is finished.
298 Added possibility of address determining through multicast announcement
299 in local area network, so called MCD (MultiCast Discovery).
304 @section Release 6.5.0
308 Fixed segfault in @command{nncp-daemon} when SP handshake did not succeed.
311 Fixed possible bad return code ignoring in automatic tosser.
314 Fixed race during file descriptors closing when online protocol call is
315 finished, that could lead to write error of received packet fragment.
318 Kill all packet transmission progress bars in @command{nncp-daemon},
319 @command{nncp-call} and @command{nncp-caller} when call is finished.
324 @section Release 6.4.0
328 Fixed possible race in online protocol, that lead to panic.
333 @section Release 6.3.0
337 Fixed possible panic while showing progress during online protocol.
342 @section Release 6.2.1
346 Three places in logs contained excess @code{%s}.
351 @section Release 6.2.0
355 Returned @command{nncp-caller}'s @option{-autotoss*} options workability.
358 Yet another logging refactoring and simplification.
359 Should be no visible differences to the end user.
364 @section Release 6.1.0
368 Optimization: most commands do not keep opened file descriptors now.
369 Previously you can exceed maximal number of opened files if you have got
370 many packets in the spool directory.
373 Optimization: do not close file descriptor of the file we download
374 online. Previously each chunk lead to expensive open/close calls.
377 Online downloaded files are saved with @file{.nock} (non-checksummed)
378 suffix, waiting either for @command{nncp-check}, or online daemons to
379 perform integrity check.
382 Optimization: files, that are not resumed, are checksummed immediately
383 during the online download, skipping @file{.nock}-intermediate step.
386 Ability to store encrypted packet's header in @file{.hdr} file, close to
387 the packet itself. That can greatly increase performance of packets
388 listing on filesystems with big block's size.
393 @section Release 6.0.0
397 Log uses human readable and easy machine parseable
398 @url{https://www.gnu.org/software/recutils/, recfile} format for the
399 records, instead of structured RFC 3339 lines. Old logs are not readable
400 by @command{nncp-log} anymore.
403 @option{-autotoss*} option workability with @command{nncp-daemon}'s
404 @option{-inetd} mode.
407 Call's @option{when-tx-exists} allows to make a call only when outbound
408 packets exists. Combined with seconds-aware cron expression that can be
409 used as some kind of auto dialler.
412 @command{nncp-cronexpr} command allows you to check validity and
413 expectations of specified cron expression.
418 @section Release 5.6.0
422 @option{-autotoss*} option runs tosser not after the call, but every
423 second while it is active.
426 @option{autotoss}, @option{autotoss-doseen},
427 @option{autotoss-nofile}, @option{autotoss-nofreq},
428 @option{autotoss-noexec}, @option{autotoss-notrns} options available in
429 @option{calls} configuration section. You can configure per-call
430 automatic tosser options.
433 Use vendoring, instead of @env{$GOPATH} overriding during tarball
434 installation, because current minimal Go's version is 1.12 and it
440 @section Release 5.5.1
444 Respect for @env{$BINDIR}, @env{$INFODIR} and @env{$DOCDIR} environment
445 variables in @file{config} during installation.
450 @section Release 5.5.0
454 Bugfixes in @command{nncp-call(er)}/@command{nncp-daemon},
455 @command{nncp-bundle} and @command{nncp-stat}.
458 @command{nncp-rm} has @option{-dryrun} and @option{-older} options now.
461 @command{nncp-exec} has @option{-use-tmp} and @option{-nocompress}
462 options now. Uncompressed packets are not compatible with previous NNCP
466 @command{nncp-call}, @command{nncp-caller} and @command{nncp-daemon} commands
467 have @option{-autotoss*} options for running tosser after call is ended.
470 Updated dependencies. Minimal required Go version is 1.12.
475 @section Release 5.4.1
479 Fixed @code{SENDMAIL} variable usage during the build.
484 @section Release 5.4.0
488 Updated dependencies.
491 Build system is moved from Makefiles to @url{http://cr.yp.to/redo.html, redo}.
492 This should not influence package maintainers, because minimal @command{redo}
493 implementation is included in tarball.
498 @section Release 5.3.3
502 More various error checks.
505 Updated dependencies.
510 @section Release 5.3.2
514 Fixed incorrect logic of @option{onlinedeadline} timeout, where
515 connection won't take into account incoming packets events and will
516 forcefully disconnect.
521 @section Release 5.3.1
525 Fixed @option{onlinedeadline} workability with call addresses that use
526 external commands (@verb{#"|somecmd"#}).
529 @command{nncp-stat} has @option{-pkt} option displaying information
530 about each packet in the spool.
535 @section Release 5.3.0
539 Progress messages contain prefix, describing the running action.
542 Fixed not occurring handshake messages padding.
545 Finish all SP protocol related goroutines, less memory leak.
548 SP protocol generates less socket write calls, thus generating less TCP
552 Check @option{onlinedeadline} and @option{maxonlinetime} options every
553 second, independently from socket reads (up to 10 seconds).
556 Once per minute, if no other traffic exists, PING packets are sent in
557 SP-connection. That allows faster determining of connection unworkability.
560 @command{nncp-toss} uses lock-file to prevent simultaneous tossing.
565 @section Release 5.2.1
569 Fixed SP protocol error handling, sometimes causing program panic.
574 @section Release 5.2.0
578 Most commands by default show oneline operations progress.
579 @option{-progress}, @option{-noprogress} command line options,
580 @option{noprogress} configuration file option appeared.
583 Fixed incorrect @command{nncp-check} command return code, that returned
584 bad code when everything is good.
587 Free disk space check during @command{nncp-bundle -rx} call.
592 @section Release 5.1.2
596 @strong{Critical} vulnerability: remote peers authentication could lead
597 to incorrect identification of remote side, allowing foreign encrypted
601 Bugfix: private and public Noise keys were swapped in newly created
602 configuration files, that lead to inability to authenticate online peers.
605 Explicit directories fsync-ing for guaranteed files renaming.
610 @section Release 5.1.1
614 Fixed workability of @command{nncp-file} with @option{-chunked 0} option.
619 @section Release 5.1.0
623 @command{nncp-file} can send directories, automatically creating pax
627 Free disk space is checked during outbound packets creation.
630 @option{freq}, @option{freqminsize}, @option{freqchunked} configuration
631 file options replaced with the structure:
632 @option{freq: @{path: @dots{}, minsize: @dots{}, chunked: @dots{}@}}.
635 Added @option{freq.maxsize} configuration file option, forbidding of
636 freq sending larger than specified size.
639 Ability to notify about successfully executed commands (exec) with
640 @option{notify.exec} configuration file option.
645 @section Release 5.0.0
649 @strong{Incompatible} configuration file format change: YAML is
650 replaced with Hjson, due to its simplicity, without noticeable lack
651 of either functionality or convenience.
654 @strong{Incompatible} plain packet format changes. Older versions are
655 not supported. @code{zlib} compression is replaced with
656 @code{Zstandard}, due to its speed and efficiency, despite library
657 version is not mature enough.
660 Ability to call remote nodes via pipe call of external command, not only
664 @command{nncp-cfgnew} generates configuration file with many
665 comments. @option{-nocomments} option can be used for an old
669 Duplicate filenames have @file{.CTR} suffix, instead of @file{CTR}, to
670 avoid possible collisions with @file{.nncp.chunkCTR}.
673 Ability to override process umask through configuration file option.
676 Files and directories are created with 666/777 permissions by default,
677 allowing control with @command{umask}.
680 Updated dependencies.
683 Full usage of go modules for dependencies management
684 (@code{go.cypherpunks.ru/nncp/v5} namespace is used).
687 Forbid any later GNU GPL version autousage
688 (project's licence now is GNU GPLv3-only).
695 @item Workability on GNU/Linux systems and Go 1.10 is fixed.
703 @strong{Incompatible} encrypted and eblob packet format change: AEAD
704 encryption mode with 128 KiB blocks is used now, because previously
705 @command{nncp-toss} did not verify encrypted packet's MAC before feeding
706 decrypted data to external command. Older versions are not supported.
709 Available free space checking before copying in @command{nncp-xfer},
710 @command{nncp-daemon}, @command{nncp-call(er)}.
713 @command{nncp-call} has ability only to list packets on remote node,
714 without their transmission.
717 @command{nncp-call} has ability to transfer only specified packets.
720 Workability of @option{xxrate} preference in @option{calls}
721 configuration file section.
724 Dependant libraries are updated.
730 Begin using of @code{go.mod} subsystem.
737 @item @command{nncp-daemon} can be run as @command{inetd}-service.
745 @command{nncp-daemon}, @command{nncp-call}, @command{nncp-caller} check
746 if @file{.seen} exists and treat it like file was already downloaded.
747 Possibly it was transferred out-of-bound and remote side needs to be
751 If higher priority packet is spooled, then @command{nncp-daemon} will
752 queue its sending first, interrupting lower priority transmissions.
755 Simple packet rate limiter added to online-related tools
756 (@command{nncp-daemon}, @command{nncp-call}, @command{nncp-caller}).
759 Ability to specify niceness with symbolic notation:
760 @verb{|NORMAL|}, @verb{|BULK+10|}, @verb{|PRIORITY-5|}, etc.
763 Changed default niceness levels:
764 for @command{nncp-exec} from 64 to 96,
765 for @command{nncp-freq} from 64 to 160,
766 for @command{nncp-file} from 196 to 224.
774 @strong{Incompatible} @emph{bundle} archive format changes and
775 @command{nncp-bundle} workability with Go 1.10+. Bundles must be
776 valid tar archives, but Go 1.9 made them invalid because of long paths
777 inside. NNCP accidentally was dependant on that bug. Explicit adding of
778 @file{NNCP/} directory in archive restores workability with valid tar
786 Ability to disable relaying at all using @verb{|-via -|} command line option.
794 @strong{Incompatible} plain packet format changes. Older versions are
798 Ability to queue remote command execution, by configuring @option{exec}
799 option in configuration file and using @command{nncp-exec} command:
802 @command{nncp-mail} command is replaced with more flexible
803 @command{nncp-exec}. Instead of @verb{|nncp-mail NODE RECIPIENT|}
804 you must use @verb{|nncp-exec NODE sendmail RECIPIENT|}.
806 @option{sendmail} configuration file option is replaced with
807 @option{exec}. @verb{|sendmail: [...]|} must be replaced with
808 @verb{|exec: sendmail: [...]|}.
812 Ability to override @option{via} configuration option for destination
813 node via @option{-via} command line option for following commands:
814 @command{nncp-file}, @command{nncp-freq}, @command{nncp-exec}.
817 Chunked files, having size less than specified chunk size, will be sent
818 as an ordinary single file.
821 Exec commands are invoked with additional @env{$NNCP_NICE} and
822 @env{$NNCP_SELF} environment variables.
825 Files, that are sent as a reply to freq, have niceness level taken from
826 the freq packet. You can set desired niceness during @command{nncp-freq}
827 invocation using @option{-replynice} option.
830 @command{nncp-toss} command can ignore specified packet types during
831 processing: @option{-nofile}, @option{-nofreq}, @option{-noexec},
835 @command{nncp-file} command uses
836 @option{FreqMinSize}/@option{FreqChunked} configuration file options
837 for @option{-minsize}/@option{-chunked} by default. You can turn this
838 off by specifying zero value.
847 @strong{Incompatible} encrypted/eblob packet format changes. Older
848 versions are not supported.
851 Twofish encryption algorithm is replaced with ChaCha20. It is much more
852 faster. One cryptographic primitive less.
855 HKDF-BLAKE2b-256 KDF algorithm is replaced with BLAKE2Xb XOF. Yet
856 another cryptographic primitive less (assuming that BLAKE2X is nearly
857 identical to BLAKE2).
866 @strong{Incompatible} encrypted packet format changes. Older versions
870 @command{nncp-bundle} command can either create stream of encrypted
871 packets, or digest it. It is useful when dealing with
872 @code{stdin}/@code{stdout} based transmission methods (like writing to
873 CD-ROM without intermediate prepared ISO image and working with tape
877 @command{nncp-toss} is able to create @file{.seen} files preventing
878 duplicate packets receiving.
881 Single background checksum verifier worker is allowed in
882 @command{nncp-call}. This is helpful when thousands of small inbound
883 packets could create many goroutines.
886 Ability to override path to spool directory and logfile through either
887 command line argument, or environment variable.
890 @command{nncp-rm} is able to delete outbound/inbound, @file{.seen},
891 @file{.part}, @file{.lock} and temporary files.
896 @section Release 0.12
898 @item Sendmail command is called with @env{$NNCP_SENDER} environment variable.
902 @section Release 0.11
904 @item @command{nncp-stat}'s command output is sorted by node name.
908 @section Release 0.10
911 @command{nncp-freq}'s @file{DST} argument is optional now. Last
912 @file{SRC} path's element will be used by default.
919 Fix @option{-rx}/@option{-tx} arguments processing in
920 @command{nncp-call} command. They were ignored.
927 Little bugfix in @command{nncp-file} command, where @option{-minsize}
928 option for unchunked transfer was not in KiBs, but in bytes.
936 Ability to feed @command{nncp-file} from @code{stdin}, that uses an
937 encrypted temporary file for that.
940 Chunked files transmission appeared with corresponding
941 @command{nncp-reass} command and @option{freqchunked} configuration file
942 entry. Useful for transferring big files over small storage devices.
945 @option{freqminsize} configuration file option, analogue to
946 @option{-minsize} one.
949 @command{nncp-xfer}'s @option{-force} option is renamed to
950 @option{-mkdir} for clarity.
953 @option{-minsize} option is specified in KiBs, not bytes, for
957 @command{nncp-newcfg} command is renamed to @command{nncp-cfgnew},
958 and @command{nncp-mincfg} to @command{nncp-cfgmin} -- now they have
959 common prefix and are grouped together for convenience.
962 @command{nncp-cfgenc} command appeared, allowing configuration file
963 encryption/decryption, for keeping it safe without any either OpenPGP or
967 Cryptographic libraries (dependencies) are updated.
974 @item Small @command{nncp-rm} command appeared.
975 @item Cryptographic libraries (dependencies) are updated.
982 Trivial small fix in default niceness level of @command{nncp-file}
983 and @command{nncp-freq} commands.
991 Small fix in @command{nncp-call}, @command{nncp-caller},
992 @command{nncp-daemon}: they can segmentation fail sometimes (no data is
996 @command{nncp-newnode} renamed to @command{nncp-newcfg} -- it is shorter
997 and more convenient to use.
1000 @command{nncp-mincfg} command appeared: helper allowing to create
1001 minimalistic stripped down configuration file without private keys, that
1002 is useful during @command{nncp-xfer} usage.
1007 @section Release 0.3
1009 @item Fixed compatibility with Go 1.6.
1013 @section Release 0.2
1017 @strong{Incompatible} packet's format change (magic number is changed
1018 too): size field is encrypted and is not send in plaintext anymore.
1021 @option{-minsize} option gives ability to automatically pad outgoing
1022 packets to specified minimal size.
1025 @command{nncp-daemon} and @command{nncp-call}/@command{nncp-caller}
1026 always check new @emph{tx} packets appearance in the background while
1027 connected. Remote side is immediately notified.
1030 @option{-onlinedeadline} option gives ability to configure timeout of
1031 inactivity of online connection, when it could be disconnected. It could
1032 be used to keep connection alive for a long time.
1035 @option{-maxonlinetime} option gives ability to set maximal allowable
1036 online connection aliveness time.
1039 @command{nncp-caller} command appeared: cron-ed TCP daemon caller.
1042 @command{nncp-pkt} command can decompress the data.