Copyright (c) RISC OS Developments 2026. All rights reserved.
SPDX-License-Identifier: CDDL-1.0

v3.09 Beta 20
~~~~~~~~~~~~~
* Discover and mounted SMB discs show OS drive icons (Linux, Mac, NAS,
  Windows) where the server is clear, with explicit choices in
  !LanMan98.IconMap. Unknown servers and WebDAV mounts keep their icons.

* Discover skips the slow SMB1 browse-list query when multicast has found
  servers; LanMan98$BrowseAlways restores it on every scan.

* Saved shares can be reconnected when the Filer starts ("Auto-mount at
  startup" on the mounted disc's menu).

* SecureSockets2 moves out of !LanMan98 into !Boot.Resources, shared with
  other programs, and verifies against InetDBase:CertData. The archive's
  !Boot brings it and RISC OS Open's current CertData for Boot merge.

* SecureSockets2 is now 0.10, so that RMEnsure can tell it from 0.09 test
  builds that lack the fix below; !SecureSockets2's !Run, CertUpdate and
  MailFetch require 0.10.

* SecureSockets2 0.10 can install a newer certificate store approved by a
  signed TLSC manifest (SecureSockets2_Control 5, *SecureSockets2InstallCerts,
  and the monthly CertUpdate task). Dormant until a production key exists.

* Fixed SecureSockets2 TLS over a caller's socket on RISC OS (errno 9).

* SecureSockets2 0.10 source removes the fixed eight-connection limit. It
  allocates connection records as needed and never reuses a closed handle
  during the module instance. The Norcroft-only trial ZIP still includes the
  0.08 binary until its OpenSSL transport can be built with Norcroft.

* TLSManager is renamed SecureSockets2 0.08. The nested application, module,
  SWI names, commands and system variables use the new name; SWI numbers and
  the interface are unchanged. Its startup unloads a resident TLSManager.

* New SecureSockets 2.00 module in !SecureSockets2 provides the Secure_* SWIs
  of the SecureSockets module of 2000 over SecureSockets2, client side only,
  with TLS 1.2 or later and host name verification. SecureSockets2 can now
  use a caller's connected socket and refuses to be killed while in use.

v3.08 Beta 19
~~~~~~~~~~~~~
* SMB3 signing now prepares AES round keys and CMAC subkeys once per session.
  Independent crypto vectors and the RISC OS module build pass. Signed SMB
  throughput still needs a RISC OS hardware measurement.

v3.07 Beta 18
~~~~~~~~~~~~~
* SMB2/3 file times are now converted from LanMan98's local internal form to
  UTC FILETIME before they are written, and back again when they are read.
  During BST the same timestamp is therefore shown by RISC OS, Windows and
  macOS rather than Windows and macOS showing one hour later.

* A saved HTTPS WebDAV mount can now start from cold. If TLSManager is absent,
  the front end runs the bundled !TLSManager startup synchronously before it
  asks LanMan98 to connect, retaining the RISC OS and CryptRandom checks.
  !TLSManager startup no longer opens the status window automatically.

v3.06 Beta 18
~~~~~~~~~~~~~
* SMB3 now offers large-MTU multi-credit transfers. When the server grants
  them, reads and writes can carry up to 192 KiB per request; otherwise they
  retain the single-credit transfer size. Sequential read-ahead grows to the
  negotiated limit. The version is raised for in-place module updates.

v3.02 Beta 18
~~~~~~~~~~~~~
* A resident TLSManager 0.05 cannot handle an HTTPS proxy. LanMan98 now
  reports the required TLSManager 0.06 before connecting, and both nested
  TLSManager startup and LanMan98 startup reject a failed module upgrade.
  The LanMan98 module version is raised to 3.02 for in-place updates.

v3.01 Beta 18
~~~~~~~~~~~~~
* WebDAV connections can use an HTTP or HTTPS proxy by setting
  `LanMan98$WebDAVProxy` to `http://host:port` or `https://host:port`.
  Plain HTTP WebDAV through an HTTP proxy uses absolute URLs; all other
  combinations use CONNECT. TLSManager verifies an HTTPS proxy and an HTTPS
  WebDAV server independently. Proxy authentication is not supported in this
  Beta and is reported clearly if requested by the proxy.

* TLSManager is now version 0.06. Its connection interface accepts optional
  proxy details and TLS flags while remaining compatible with ABI 1 clients.

* HTTPS WebDAV now uses the bundled !TLSManager OpenSSL 3.5.8 LTS transport
  instead of AcornSSL. TLSManager verifies the certificate chain and hostname
  against its private Mozilla CA bundle and exposes bounded non-blocking SWIs
  to LanMan98. !Run loads it directly before the filing-system module.

* The OpenSSL port is built as RISC OS EABI0 module code through Build Desk.
  Its Apache-2.0 licence and source provenance are included. The rest of
  LanMan98 and TLSManager remains CDDL, Copyright RISC OS Developments 2026.

* Corrected the TLSManager Step SWI return register, confirmed redirected
  MKCOL only by exact canonical readback, and treats redirected optional
  PROPPATCH metadata as unsupported without following Location. The numeric
  module version is 3.01 so an in-place Beta 17 installation is upgraded.

* Corrected FileSwitch's sized-placeholder, close, writable-reopen and
  filetype-rename WebDAV sequence. The provisional file remains local and
  only the final `,xxx` wire name is uploaded, preventing the old Text name
  from being created separately with zero-filled contents.

* Added a Status item to the iconbar menu reporting each mounted share's
  negotiated dialect, signing and encryption state.

* SMB directory watching no longer treats a different server enumeration
  order as a changed folder, preventing repeated false Filer refreshes and
  hourglasses while a network directory is open. The first scan establishes
  the baseline, and a later change must remain stable for two scans before the
  Filer is refreshed.

* Folder and dotted-name copies to pCloud no longer fail where the
  destination does not exist yet: unstamped empty files are held without a
  premature PROPPATCH, a PROPPATCH landing straight after its PUT is
  retried once, lookups inside missing collections report not found, missing
  collections raise the standard missing-directory error, and a staged file
  reopened for its contents publishes at close.

* A PROPFIND, GET or HEAD whose response ends before any reply byte is kept
  is repeated once on a new connection. Mutations, framed errors and partial
  bodies are never replayed.

* TLSManager 0.04 tolerates peers that close without TLS close_notify,
  refreshes the I/O deadline once a request is written, and closes
  Connection: close sessions without SSL_shutdown. !Run requires 0.04.

* WebDAV login now runs the nested `!TLSManager.!Run`. That startup file gates
  TLSManager on the supported RISC OS generation, loads and verifies
  `System:Modules.CryptRand`, and then loads TLSManager 0.04. The login and
  connection code no longer bypasses those checks with a direct `RMLoad`.

v3.00 Beta 17
~~~~~~~~~~~~~
* Restored pCloud file copying to the provider-tested create/readback/update
  sequence after the Beta 16 one-PUT optimisation regressed live transfers.

* Folder creation retries a redirected MKCOL only at the canonical
  same-origin trailing-slash URL and confirms the new collection by readback.

* Existing pCloud folders whose slashless lookup redirects now reopen at the
  same-origin trailing-slash collection URL.

* AcornSSL may present an unknown certificate during mount validation. Normal
  filing operations do not wait for a fresh certificate prompt.

* Added !TLSManager inside !LanMan98 with its supplied sprite, native resident
  policy module, signed bounded manifest format, rollback and expiry checks,
  strict unknown-anchor-only AcornSSL UpCall policy, status/load commands and
  LanMan98 menu entry. The menu now starts the nested application through the
  Wimp. Check-without-activation, immediate deactivation, acceptance counters
  and offline signing/inspection tooling have also been added. Production
  updating stays disabled until the release public key and endpoint are
  installed.

v3.00 Beta 16
~~~~~~~~~~~~~
* WebDAV shares can now be mounted directly from LanMan98.

  Enter an http:// or https:// collection URL as the server, followed by a
  collection path as the share, or enter the complete collection URL and
  leave Share empty.  The backend supports browsing, reading, staged writes,
  creating directories, deleting and renaming.  HTTPS uses AcornSSL and
  verifies the certificate and hostname.  Basic authentication is supported.

  Writes are staged locally and uploaded once when the file closes.  Strong
  ETags prevent a stale edit overwriting a newer remote file.  The local edit
  remains available for retry when the server rejects or cannot confirm an
  upload.  QNAP and the US and EU pCloud WebDAV endpoints are documented;
  authenticated provider and native AcornSSL acceptance still require testing
  on the intended machine.

  The mount check retries the root collection with a Depth: 1 PROPFIND when
  a server does not describe it at Depth: 0, matching pCloud's WebDAV
  behaviour while keeping ordinary file probes at Depth: 0.

  AcornSSL retry state is retained outside the cooperative thread stack, so
  opening a pCloud file cannot corrupt the saved SWI number while its network
  operation is suspended.

* Network replies and object lifetimes are handled more defensively.

  Short SMB reads continue until EOF, reply and directory fields are checked
  against the bytes actually received, transaction fragments cannot overlap,
  partial write acknowledgements are honoured, and copied SMB2 directory
  iterators no longer skip entries when they share a server cursor.  Failure
  paths now release provisional SMB, LM2, FSLIB and WebDAV resources without
  losing a retryable cached edit.

* WebDAV names and metadata round-trip safely.

  UTF-8 collection names, wildcard boundaries and reversible RISC OS filename
  escapes are covered.  XML, HTTP framing, credentials, response sizes, ETags,
  quota values and metadata ownership are bounded and validated before use.
  Extension mapping now reserves enough scratch space for all supported
  extension lengths, avoiding catalogue-time stack corruption.

* The application !Run and Templates resources are updated for Beta 16.

  !Run now requires or loads LanMan98 3.00 before starting !Filer.  The
  supplied Wimp Templates resource is included byte-for-byte.

* Release packaging now ignores macOS sidecars, avoids copying unsupported
  host metadata and locates the installed RISC OS ZIP metadata helper.

v3.00 Beta 15
~~~~~~~~~~~~~
* A server can no longer put this client's memory wrong.

  A sweep for the way server replies are taken apart found nine places
  where a length, a count or an offset arrived from the server and was
  used without being checked against the buffer it referred to.  A
  server that answered oddly - by accident or on purpose - could write
  its own bytes outside a buffer, read from wherever it pointed, or keep
  the client waiting for ever.  Most date from 1996.  All nine now check
  what arrived before believing it:

  - a transaction reply's counts, offsets and displacements, which were
    checked as totals and then used as pieces, and a reply carrying
    nothing, which left the client waiting for the rest for ever;
  - the buffer size named at negotiation, which was taken as given,
    including sizes smaller than the header written into it;
  - the name length and the offset to the next entry in an SMB1
    directory listing, neither of which was checked at all, and a name
    with nothing to end it;
  - a name of an odd length in an SMB2 listing, which was given one unit
    less room than it was then written into, and an entry offset that
    walked out of the bufferful;
  - the count of names in a NetBIOS node status reply, where a machine
    claiming 255 of them read - and wrote - well past the datagram;
  - the home directory pointer in a logon reply, followed wherever it
    led, and what it found put in LanMan98$Homedir;
  - a discovered machine's resolved address, copied into a twenty byte
    field without measuring it;
  - a short answer to a read, where the difference between what was
    asked for and what arrived was made up from whatever was left in the
    packet buffer - part of another file, in effect.  A short answer now
    means the file ended, as it already did over SMB2.

  A scope ID with a dot in it also measured a label from the wrong
  string, which nothing could have made safe.

* Transfers ask less of the network.

  Zeroing part of a file wrote 512 bytes per request - two hundred
  thousand requests to zero a hundred megabytes - and is now written in
  32K pieces.  The last of those used to be a full 512 bytes whatever was
  asked for, so it overwrote up to 511 bytes past the end of what was
  meant to be zeroed.

  A reconnection left another keepalive behind every time.  Callbacks
  cannot be cancelled, so each one went on prodding the server for as
  long as the mount existed, and a flaky link gathered them.  One
  keepalive is started only if the last has stopped, and the discovery
  sweep, which could gather chains the same way when stopped and
  started, now ends the old one when a new one begins.

v3.00 Beta 14
~~~~~~~~~~~~~
* Fewer round trips to the server, most noticeable over SMB1 and on a
  slow link.

  A log from a router's SMB1 share showed a dozen exchanges for every new
  file.  Three things were adding to that:

  - Every SMB1 transaction was followed by an echo, a packet that asks
    the server only whether it is still there.  Nothing recorded why, and
    after a one-packet question and a one-packet answer there is nothing
    for it to put right.  It is now sent only after a transaction that
    took more than one packet.  LanMan98$TransEcho, set to anything,
    sends it after every transaction as before.

  - Every lookup of a share's root searched the server for a file called
    Dummy, which is how a dropped connection was noticed.  Every file in
    the root has the root as its parent, so each one paid for it.  The
    check is now made at most once every five seconds per connection.

  - Making a file has RISC OS look up the same absent name several times,
    both as it is and with a type on it.  A name that was not found is
    now taken still not to be there for two seconds, and a name found
    only with a type on it is not looked for plain again.  Anything this
    machine creates, renames, moves or deletes on a share, or a change of
    type, forgets all of that share's names at once, as does a reconnect.
    A file made by another machine can take up to two seconds to be
    seen; Windows allows itself five.  LanMan98$NotFoundCache sets the
    time in centiseconds, and 0 turns it off.

* A server can be named by its full internet name, however long.

  A name of more than twenty characters was refused with "Server names
  are never that long" - the limit dated from when every server had a
  NetBIOS name, which is fifteen.  A full name can run to 253, and that is
  the limit now; a NetBIOS name is still cut to fifteen where one is
  needed.  *LMConnect had room for only 79 characters of its whole
  command, and the IPC$ path used to list shares for 56 characters of
  name; both are larger.  \\server is taken to mean server.

  An address of the kind Windows' net use accepts for a web folder -
  https://host/... or \\host@SSL\... - is refused with a message
  saying so.  Those are WebDAV, files over HTTPS, which Windows reaches
  through a different client; they are not SMB and LanMan98 cannot reach
  them.

v3.00 Beta 13
~~~~~~~~~~~~~
* A file whose type is kept in its name - name,ffd for Data, or any type
  its extension does not give - could not be opened over SMB2, and
  deleting the directory it was in went on reporting deletions for ever.

  Such a file is looked for by asking the server for name,### - three
  single-character wildcards, RISC OS's # - and the SMB2 name translation
  turned ? into # but never # into ?, so the server was asked for three
  literal hashes and found nothing.  The file was in every directory
  listing and behind none of them: opening it said it was not found, and
  a delete of the directory took each failure for a deletion and moved on
  to the same file again.  The translation now swaps both ways, as the
  SMB1 one always has.  A Text file was never affected: Text is the
  default type and needs no suffix.

v3.00 Beta 12
~~~~~~~~~~~~~
* A server that will not say what it shares until somebody has logged on
  is in the discovery window now, with an icon to log on with.

  Discover left an icon only for a share a server would name to anybody,
  and most will not: Windows, a Mac, and a NAS set up the usual way all
  want a name and a password first.  Such a server was found, reported by
  *Discover98, and then left out of the window altogether, so there was
  nothing to double click and no way in from the desktop.  Every server
  that answers now gets its folder, whether or not it says what it shares,
  and every folder has a LogOn icon in it.

  Double clicking LogOn opens the connect window with the server filled
  in.  Connect with no share named logs on with the name and password
  given, lists that server's shares into its folder, and opens it.  A
  share double clicked there connects with the same name and password,
  which the front end keeps in memory only, and a mistyped password leaves
  the folder as it was.  What the front end asks for is
  *Discover98 -server <server> [-into <folder>] [<user-name> [<password>]],
  which can be used directly too.

* A server is found by its name as well as by its address, the way a
  Windows machine or a NAS finds one.

  A name was taken to be wherever the first thing asked said it was.  A
  router's name server will often answer a bare name with an address that
  is nobody's, and a server found under that name was then reported as
  not answering while it sat on the same switch.  A name is now asked for
  every way there is - the name server, the announcements and NetBIOS -
  and the first address that takes a connection is the one used.  Names
  given to *Connect98, kept icons and *Shares98 are resolved the same way.
  Discover also tries a machine by its name when the address it was found
  at does not answer, and its icons then name the machine rather than an
  address it has given up.

* Windows answers an anonymous logon properly.

  The anonymous logon put the one byte of its answer in front of the
  machine's name, which left the name - UTF-16, and meant to start on an
  even offset - starting on an odd one.  Samba let it through.  Windows 10
  refused it as "Invalid parameter", and Windows 11, which holds back its
  answer to a failed logon for two seconds, answered just after Discover
  had stopped waiting, so it read as "Timed out while receiving".  The
  name goes first now, as Windows puts it itself.  Windows still will not
  list its shares for nobody, so a Windows machine appears in the window
  with its LogOn icon.

* A NAS that answers the WS-Discovery question without saying where it is
  was thrown away.  The answer came from somewhere, and that address is
  now the one used - which is also how a machine that names itself in the
  answer is reached without resolving the name.  A printer or a scanner
  answers the same question and used to cost a connection attempt each;
  an answer that does not say it is a computer is passed over now.

* A machine found twice - by the announcements under one name and by the
  browse list under another - got two folders.  Names are resolved before
  the folders are made, and a name that leads to a machine already on the
  list is folded into it.

* Shares whose names end in $ - print$, C$, ADMIN$ - are for typing, not
  for seeing, and are no longer offered.

v3.00 Beta 11
~~~~~~~~~~~~~
* Two servers offering a share of the same name no longer lose one of them.

  *Discover98 used to leave every share it found in one directory, each
  named after the share and nothing else.  Two servers both offering
  "Public" gave the same name twice, and the second server to answer wrote
  over the icon the first had just been given, without a word.  Each server
  now gets a folder of its own, named after it, and its shares go in there:
  nothing is lost, and the folder a share is in says which machine it is
  on.  A server with nothing to show gets no folder.

  Keeping one of them was the same risk one step later.  A found share that
  connects is kept in Discs under its own name, so keeping "Public" from a
  second server would have written over the first - password and all.  A
  name that another server has already been offered under in the same look,
  or that is kept for another server, now has that server's name added to
  it: Public for the first, Public_SERVER for the next.

  A share already kept was recognised by its name alone, so one kept from
  one server hid every share of that name on every other: it was reported
  as already kept and never offered.  Its server is compared now as well -
  by address, or by name for one that was typed in by hand.

v3.00 Beta 10
~~~~~~~~~~~~~
* A share whose server is not there now says so in words worth reading.

  Double clicking a saved share for a machine that is switched off, or that
  has stopped sharing, used to report "Timed out while connecting" - true,
  and of no use to somebody who has just double clicked an icon.  It now
  names the machine and says what has almost certainly happened:

      FILESERVER is not answering.  It may be switched off, or it may have
      stopped sharing files.

  A name that nothing on the network answers to is reported separately, and
  says that it may be the name rather than the machine.  Neither is a change
  of behaviour - the connection failed before and fails now - only of what
  is said about it.  The underlying reason still goes to LanMan98$Log.

  The probe for the newer port is not covered by this.  It is expected to
  fail against a server that wants the older one, and stays quiet.

  The front end no longer answers it with the password, either.  Any failed
  connection used to reopen the connect window with the password ready to be
  retyped, which is the right answer to a refused logon and the wrong one to
  a machine that is switched off: it says the password was the problem while
  the message says it was not.  This one failure now carries a number the
  front end recognises, and is reported and nothing more; everything else
  behaves as it did.

* Dismounting a share left the directory watch running.  The thread and the
  block it scans into were not drained, and that block holds a pointer to
  the image that is freed a moment later.  The keepalive has always been
  drained; the watch is now drained with it.

v3.00 Beta 9
~~~~~~~~~~~~
* A circuit that could not be reopened left a freed one behind, which the
  tidy-up on the way out then read and freed a second time - a data abort.

  Connecting reopens the circuit each time it moves on to another way of
  asking: after an SMB2 attempt that got nowhere, before the older protocol
  is tried, and again between the two forms of the SMB2 negotiate.  Each
  reopen let go of the old circuit and then asked for a new one, and left
  the old pointer in place while it did so.  A machine that answered a
  moment ago and has stopped answering is exactly when the new one cannot
  be opened, and the pointer that was left behind is then used.

  Reported as a reproducible crash on clicking a saved share whose machine
  is switched off.  The field is cleared before anything that can fail now,
  which is how the reconnect path has always done it.

v3.00 Beta 8
~~~~~~~~~~~~
* A file whose name uses characters RISC OS has not got can now be opened,
  saved and renamed, rather than only looked at.

  Such a character used to be shown as an underscore.  That made a readable
  directory listing and an unusable name: an underscore is not what the
  server calls the file, so nothing could be done with it.

  It is now written as <ABCD, where ABCD is the character's UTF-16 value in
  hexadecimal, and read back the same way when the name is used.  A file
  whose name is two Chinese characters appears as something like
  <4E2D<6587, and opens.  The translation happens in both directions at the
  point the name crosses between the wire and RISC OS, so nothing above it -
  the Filer, an application's file dialogue, a command line - has to know
  anything about it.

  A character outside the basic plane, an emoji say, arrives as two units
  and is shown as two of these; reading them back gives the pair again.

  The marker is a "<" because that is already what a server's dollar looks
  like from RISC OS, and has been since long before any of this - so the
  notation costs nothing to carry and passes through that translation
  untouched.  A name that could itself be read back as the notation - a "<"
  with four hexadecimal digits behind it - has its "<" written out the same
  way, as <0024, so it reads back as itself.  A dollar anywhere else is
  left alone, so the recycle bin still looks like the recycle bin.

  This is SMB2 and above.  The older protocol is not asked for Unicode
  names and does not get any, so there is nothing there to translate.
