Copyright (c) RISC OS Developments 2026. All rights reserved.
Licensed under CDDL-1.0.

LanMan98 3.27 Beta 20 ARM32 with SMB and WebDAV
=========================================
An updated !LanMan98 client, and a suite for testing it on a real machine.

  !LanMan98    the client, ready to run.  Drop it in place of your existing
               copy, or run it from here.
  !Boot        SecureSockets2 and the current certificate store, to merge
               into your !Boot: open Configure, choose Boot, then Merge,
               and drag this !Boot to the window.  Needed for HTTPS WebDAV.
  TestSuite    tests you can run against your own server.  See its !ReadMe.
  ChangeLog    the Beta 20 change log.
  Changes      the complete release history.
  LanMan98-PRM the programmer's reference manual, as a PDF: the commands,
               the SWIs, the system variables and how the protocol side
               of it behaves.


ARM32 backport, 15 November 2026

This package includes SecureSockets2 2.01 and OpenSSL 3.5.9.
Read BackportNotes for the ported changes and validation limits.

New in Beta 20
--------------
SecureSockets2 now lives in !Boot.Resources, shared with other programs that
use it such as MailFetch, instead of inside !LanMan98. Merge the archive's
!Boot folder (see above) and restart; LanMan98 finds it through
SecureSockets2$Dir and says so if it is missing. The old copy inside an
earlier !LanMan98 is no longer used.

SecureSockets2 0.10 now verifies servers against the RISC OS certificate
store, InetDBase:CertData, shared with AcornSSL, instead of a private bundle.
The !Boot folder brings the current store from RISC OS Open (Mozilla, 25
September 2026). SecureSockets2 can install newer stores itself, but only
ones approved by a manifest signed with the offline RISC OS Developments key;
its CertUpdate task checks once a month when a manifest address is set in
Choices:SecureSockets2.Update. Until the production key and address exist it
changes nothing. See !SecureSockets2.!Help.

SecureSockets2 is now one module binary. It registers as SecureSockets 2.00
and directly provides the historic Secure_* interface at &54280. The old
private TLSManager/SecureSockets2 SWIs are no longer exported. Existing
applications such as !AntiSpam can therefore use it without a second module.

Discover and the mounted SMB discs on the iconbar now use the supplied OS
drive icons where the server name is clear, with explicit server-to-icon
choices in !LanMan98.IconMap. Unknown servers retain the existing icon;
WebDAV mounts retain theirs. Discover now skips the slow SMB1 browse-list
query when multicast has found servers. Set LanMan98$BrowseAlways to use the
browse list on every scan.

The Filer can now reconnect selected saved shares after it starts. Connect a
share once, then tick "Auto-mount at startup" on its mounted disc icon menu.
Place !LanMan98 itself in !Boot Tasks; do not place individual saved share
icons there. Auto-mount retries while the network starts. Password-protected
shares require "Keep password" when first saved; that stores the password in
plain text in the share link file. Untick the menu option to disable it.

The package remains !Boot.Resources.!SecureSockets2. Its one module file is
SecureSockets2; there is no separate SecureSockets compatibility module and
no System:Modules.Secure copy. Historic hostname-less calls validate the
certificate chain. Updated callers can pass the host name for SNI and DNS-name
verification; see !SecureSockets2.SecureDocs.

SecureSockets2 0.10 allocates connections as needed instead of limiting the
module to eight live handles. It is built with GCCSDK, as before, through RISC
OS Build Desk.

Earlier Beta 19 changes
-----------------------
Beta 19 prepares AES round keys as words and caches SMB3 signing's CMAC
subkeys for the lifetime of a session. Independent crypto vectors and the
RISC OS module build pass. A Mac-host benchmark showed about 13% faster CMAC
for 64-byte messages and about 1% for 60 KiB messages; signed SMB transfer
throughput still needs measuring on RISC OS hardware.

Earlier Beta 18 changes
-----------------------
Beta 18o corrects SMB2/3 file timestamps during BST, so a time written from
RISC OS is no longer shown one hour later by Windows or macOS. A saved HTTPS
WebDAV mount also starts the bundled TLSManager synchronously when needed,
allowing a password-saved pCloud mount to connect from cold. TLSManager no
longer opens its status window automatically after startup.

Beta 18n negotiates SMB3 multi-credit transfers when the server offers
large-MTU support. Signed reads and writes can then use up to 192 KiB per
request; a server with fewer credits continues with smaller requests. The
read-ahead host test reduces a simulated 256 KiB sequential read from seven
SMB requests to four. This candidate still needs a signed-share throughput
and compatibility test on RISC OS hardware.

Beta 18m speeds up LanMan98's software AES-128 rounds used by SMB3 signing
and encryption. The Pi's in-memory 60 KiB crypto benchmark improved from
9.62 to 25.00 MiB/s for signing and from about 4.6 to 11.5 MiB/s for
encryption and decryption. These are CPU measurements, not measured SMB
file-copy throughput. Security policy and wire behaviour are unchanged;
the implementation remains table-based rather than constant-time.

Beta 18l grows the lazy SMB2 read-ahead buffer from 32 KiB toward the
negotiated 60 KiB maximum after 64 KiB of sustained sequential reads. Random
seeks and files opened for writing continue to read directly. The 3.05 module
loads during an in-place update. TestSuite.BenchIO measures 1 KiB FileSwitch
write and verified read throughput on a mounted share; real SMB copy speed
should be measured on the target machine.

Beta 18 moves HTTPS WebDAV into !TLSManager, using OpenSSL 3.5.8 LTS instead
of direct AcornSSL SWIs. TLSManager supports TLS 1.2 and TLS 1.3, sends SNI,
and validates the certificate chain and hostname against its packaged Mozilla
CA bundle. It does not replace AcornSSL for other applications or alter the
system certificate store.

LanMan98 uses a bounded non-blocking SWI interface for DNS, TCP, TLS reads and
TLS writes. Choosing WebDAV login runs the nested !TLSManager startup, which
checks the RISC OS version and CryptRandom before loading the module.
The OpenSSL Apache-2.0 licence, acknowledgements and source identity are inside
!TLSManager.OpenSSL; LanMan98 integration remains CDDL, Copyright RISC OS
Developments 2026.

This Beta's TLSManager SWI chunk is private and unallocated. The native module,
frontend and OpenSSL libraries were built through RISC OS Build Desk.
TLSManager 0.07 also supports an HTTP or HTTPS proxy for WebDAV. Set
LanMan98$WebDAVProxy to http://host:port or https://host:port before mounting.
Use http://IP-address:port for an HTTP proxy even when the WebDAV destination
is HTTPS. Plain HTTP WebDAV through an HTTP proxy uses absolute URLs; all other
combinations use CONNECT. An HTTPS proxy and an HTTPS WebDAV server each have
their own verified TLS session. Proxy authentication is not supported in this
Beta.

For an HTTPS proxy, reopen WebDAV Login after updating the application so its
TLSManager !Run can load version 0.07. LanMan98 reports an older resident
TLSManager immediately instead of waiting for a proxy timeout.

Authenticated pCloud mounting, listing, file create/read/delete and a recursive
five-file application-directory round trip were exercised on the Raspberry Pi.
Every returned file matched its source SHA-256 and no companion file was
present. Beta 18 keeps FileSwitch's provisional sized placeholder in the local
cache across its close/reopen sequence and uploads only the final typed wire
name. QNAP remains to be retested with this Beta 18 candidate.


New in Beta 17
--------------
Beta 17 includes the first !TLSManager trust service inside !LanMan98, using
its supplied application sprite and a separate LanMan98 menu item. AcornSSL
remains responsible for the encrypted connection and hostname checking.
TLSManager maintains a separately updateable signed trust policy and may
approve only a chain whose
sole problem is a missing trust anchor named by that policy. It cannot override
expiry, hostname, signature, usage, key-strength or malformed-chain failures.
The resident module, signed manifest parser, rollback/expiry enforcement and
status controls are implemented. Automatic downloading is disabled until the
production verification key and RISC OS Developments endpoint are supplied.
The TLS Manager menu action starts the nested application through the Wimp.
Candidate manifests can be checked without activation, and the active policy
can be disabled immediately from the command line.

Beta 17 began staging each new WebDAV file locally, but its provisional object
could still reach pCloud before FileSwitch's later filetype rename. pCloud
could then select the older zero-filled version. Beta 18 completes that work by
retaining the provisional object locally through the close/reopen sequence.
Folder creation sends MKCOL directly to the canonical trailing-slash URL and
does not depend on an immediate PROPFIND catalogue response. Existing pCloud
folders still retry their canonical same-origin trailing-slash URL when a
slashless lookup is redirected. Certificate prompting is limited to mount
validation so later file operations cannot wait on a hidden prompt.

The official pCloud US and EU hosts automatically select a compatibility
profile. It requires HTTPS and gives a newly created parent time to become
visible before retrying an explicitly failed child PUT or MKCOL. Only 404 and
409 responses from conditional creates are retried; uncertain failures and
updates of existing files are never replayed.


New in Beta 16
--------------
WebDAV collections can be mounted from the same connection window by entering
an http:// or https:// URL.  Browsing, reading, staged writes, directories,
rename and delete are supported; HTTPS uses AcornSSL and validates the server.

SMB reply bounds, short transfers, copied directory cursors and error cleanup
have also been hardened.  See ChangeLog and the updated manual for the exact
behaviour, limits and remaining native/provider acceptance checks.


New in Beta 15
--------------
Server replies are checked before they are believed.  Nine places took a
length or an offset from the server and used it without asking whether it
fitted; a server answering oddly could put the client's memory wrong or
leave it waiting for ever.  Most of them had been there since 1996.

Large transfers also ask less of the network, and zeroing part of a file
no longer writes a little past the end of what was asked for.


New in Beta 14
--------------
Less chatter with the server.  Making or opening a file takes far fewer
exchanges than it did, which shows most over SMB1 and on a slow link.  A
file created by another machine can take up to two seconds to appear.
If a server misbehaves with this, either of

    Set LanMan98$TransEcho ""
    Set LanMan98$NotFoundCache 0

in !Run restores the old behaviour for that part of it.

A server can now be given by its full internet name, however long; names
over twenty characters used to be refused.  An https:// address, or one
ending @SSL, is a web folder (WebDAV) rather than an SMB share: Windows
can use those, but LanMan98 cannot, and now says so.


New in Beta 13
--------------
Files of type Data, and any other type LanMan98 keeps in the file's name,
can be opened again over SMB2, and deleting a directory holding one no
longer runs on for ever.


New in Beta 12
--------------
Discover now shows every server it finds, including the ones that want a
name and password before they say what they share - Windows machines, Macs
and most NAS boxes.  Each has a LogOn icon: double click it, enter your
name and password, leave Share empty and click Connect, and the server's
shares appear in its folder.  Servers are found by name as well as by
address, and Windows machines no longer answer Discover with "Invalid
parameter" or a timeout.


New in Beta 11
--------------
Discover now shows every share when two machines use the same name for one
- a "Public" on each, say.  Each machine's shares are in a folder of their
own, and a share whose name another machine is already using is given that
machine's name as well, so keeping it does not replace the other one.


New in Beta 10
--------------
Double clicking a saved share whose machine is switched off now tells you
so.  It used to say "Timed out while connecting"; it now names the machine
and says it is not answering and may be switched off or no longer sharing.

It no longer asks you for the password afterwards either.  Every failed
connection used to reopen the connect window with the password ready to be
retyped, which is fair enough when the password was refused and misleading
when the machine is simply not there.


New in Beta 9
-------------
Clicking a saved share whose machine is switched off could crash.  Trying
one way of connecting and then another reopens the connection in between,
and where that could not be done the old one was left behind and then used
after it had been let go of.  Fixed.


New in Beta 8
-------------
Files whose names use characters RISC OS has not got can now be opened and
saved, not just seen.  Such a character used to show as an underscore,
which is not what the server calls the file, so nothing could be done with
it.  It now shows as <ABCD - the character's UTF-16 value in hexadecimal -
and is translated back whenever the name is used, so a file named in
Chinese, Greek or anything else appears as something like <4E2D<6587 and
opens like any other.


New in Beta 7
-------------
*Discover98 could abort part way through, with a trap handler error.  A
connection record was left half filled in when a connection failed after
the negotiate but before the logon - which is the ordinary case when
discovery tries a server it has no password for - and the tidy-up then
followed a leftover number into freed memory.  Fixed.

Discovery is also quicker: the two multicast questions now go out together
and share one window for the answers, rather than each waiting out its own.


New in Beta 6
-------------
*Discover98 and *Servers98 now find a great deal more.  The question this
client used to ask is answered by Samba, a Mac and most NAS boxes, but not
by Windows and not by every Samba - those machines were reachable and
invisible.  Two more questions go with it now: the one Windows answers
(WS-Discovery), and the workgroup's browse list, which is the only one of
the three that reaches servers on the other side of a router.  Anything
found more than one way is listed once.

The browse list needs SMB1 at the machine that keeps it, and costs a logon,
so it is asked only when you run the command and never on a timer.  Set
LanMan98$NoMDNS, LanMan98$NoWSD or LanMan98$NoBrowse to leave one out.


New in Beta 5
-------------
A server that refuses an SMB 3.1.1 connection is now asked again without
it, rather than being given up on.  Offering 3.1.1 fills in two fields that
older servers read as something else and require to be zero, so they refuse
the connection outright; since Beta 3 that was taken to mean the server
could not do SMB2 at all.  Where the server still allowed the old protocol
you got a slower connection than you should have; where it did not - which
is most servers now - the mount simply failed.  If you saw "there is no
protocol left to talk to it with" against a server that used to work, this
is why.


New in Beta 4
-------------
The hourglass no longer appears when you have not asked for anything.  It
was put up around every wait for a reply from the server, and that included
the two things the module does on a timer: the keepalive, and the directory
watch that notices changes made by other machines.  So it landed over
whatever you were doing, every few seconds, and stayed up for as long as the
server took to answer.  It is now shown only while something you asked for
is waiting.


New in Beta 3
-------------
It speaks SMB 3.1.1, which is what an unrestricted server will now settle
on.  3.1.1 negotiates by listing what the client can do rather than
declaring it in a capabilities word, and it protects the negotiation with a
running SHA-512 whose value goes into the keys - so a listener that alters
what was agreed makes the two ends derive different keys and the session
fails, instead of the negotiation quietly settling on whatever suited the
listener.  A 3.1.1 connection is always signed, for the same reason.

    Set LanMan98$SMB3 ""

still means 3.0 and 3.0.2 only, which is also how to ask for a connection
without 3.1.1.


New in Beta 2
-------------
Traffic can now be encrypted.  An SMB 3 connection negotiates AES-128-CCM,
so file names and file contents no longer cross the network in clear.
Signing, which this client has done for a while, proves a message was not
altered on the way; it hides nothing.  Encryption comes on by itself when
the server asks for it - which is what makes shares configured to demand
it reachable at all, where before the connection was simply refused - and

    Set LanMan98$Encrypt ""

in !Run insists on it everywhere.

Reaching a server across something slower than a local network is better
served in two other ways.  LanMan98$KeepAlive, LanMan98$Timeout and
LanMan98$ConnectTimeout raise the waits and shorten the interval an idle
connection is held up by, which matters where a NAT on the path forgets a
mapping sooner than the client prods it.  And the last read of a file no
longer costs a wasted round trip: a short read is now taken as the end
rather than asking again to be told so.

Two things the client never noticed before, it now notices by itself.

  * A directory changed by somebody else refreshes.  A file another
    machine adds to, changes or removes from a share appears in, or
    disappears from, an open Filer window without the window being
    touched.  A change made on this machine always showed up, because
    FileSwitch announces it; nothing announced a change made elsewhere,
    and there is nothing on the wire to listen for either, so the
    directory a viewer is showing is re-read on a timer and compared.

        Set LanMan98$WatchPeriod 200

    is the interval in centiseconds, and 0 turns it off.

  * A server appearing on the network is noticed.  A machine switched on
    after the desktop started, or one that joins later, is found without
    anybody thinking to look for it, and its name is put in LanMan98$New.
    *Discover98 has asked the network what is on it since 2.60, but only
    when somebody thinks to ask; the same question on a timer notices by
    itself, and costs one packet.

        Set LanMan98$SweepPeriod 30000

    in !Run changes the interval, in centiseconds; 0 turns it off.
    It runs every five minutes without being asked.

    The Filer says so in a small window in the top right
    corner, which takes itself away after fifteen seconds or when you
    click it.  It is deliberately not an error box: those are modal, and
    hold the whole desktop until dismissed.  The servers already announced are remembered in
    LanMan98$SeenFile, by default <Choices$Write>.LanMan98Seen, so a
    reboot does not announce the whole network over again.

    What each server *shares* is still only asked for when you ask, on
    *Discover98.  Finding that out needs a connection and a logon to
    every machine on the network, which is not a thing to do on a timer.


If you are updating, do so
--------------------------
2.76 fixes the "Bad buffer size" that stopped a file being opened at all on
a 26 bit RISC OS - VirtualRPC and RISC OS Adjust.  Nothing before it works
there.


2.73 fixed a bug that destroyed files, and 2.75 corrects that fix.  Over SMB2, opening a file for
writing truncated it to nothing before handing it back - opening was enough,
nothing had to be written.  Archives were the common casualty, because
opening a Zip to look inside it opens it for update; such a file came out
its original size and full of zeros, and was then shown as an empty archive
and retyped Tar.  Files already emptied are zeros on the server and cannot
be recovered by this end; restore them from a backup.


What is different
-----------------
The old client could only speak to a server willing to use the original SMB
protocol, over NetBIOS, with the original password scheme.  Every current
system has turned all three of those off.  This one:

  * connects on port 445 as well as 139, trying 445 first
  * authenticates through NTLMSSP, which is what a current server will
    accept.  Putting an NTLMv2 response straight into the request - the way
    this used to work, and the way the released client still does - has been
    refused by Samba since version 4.5, so every recent Linux NAS, Synology
    and QNAP included, answered "Invalid parameter" and would not mount.
    Servers too old to offer it still get NTLMv2, then NTLMv1, then LM
  * reports what actually went wrong, by name, instead of "Access denied"
    for everything
  * looks names up through the naming service before asking NetBIOS
  * keeps file dates as the server holds them, rather than rounding them to
    the nearest two seconds
  * moves files in sixty kilobyte pieces rather than half a kilobyte
  * can speak SMB2, which is what Windows and macOS offer now, and falls
    back to it on its own for a server that has SMB1 switched off
  * signs its messages, in every protocol it speaks, so a server that
    insists on signing will talk to it
  * speaks SMB 3.0 and 3.0.2 as well as 2.0.2 and 2.1
  * converts names through the RISC OS alphabet, so the characters at
    &80-&9F - the Euro sign, the curly quotes, the dashes, the ligatures -
    survive a round trip instead of arriving as control codes one way and
    full stops the other

Everything except SMB2 is on by default and needs nothing set up.


Which protocol is used
----------------------
SMB2 is tried first and the older protocol only if a server will not answer
it.  The highest both ends know is used, which today usually means SMB 3.0.2.
Nothing needs setting.

    Set LanMan98$NoSMB2 ""

goes back to trying the old protocol first, for a server that answers SMB2
and then handles it badly.

    Set LanMan98$SMB2Only ""

refuses to fall back at all: a connection either uses SMB2 or says why it
could not.  That is for finding out what a machine is really doing rather
than for everyday use - without it, a server quietly dropping to the older
protocol looks the same as one that never tried.

To hold a connection to one level and no other:

    Set LanMan98$SMB3 ""    SMB 3.0 and 3.0.2 only
    Set LanMan98$SMB2 ""    SMB 2.0.2 and 2.1 only
    Set LanMan98$SMB1 ""    the old protocol only, no SMB2 offered

Whichever is set is what gets used, or the connection fails saying why -
nothing falls back to something else and hides which level was the one that
worked.  That is what these are for; none is needed to connect normally.

LanMan98$SMB2 used to mean "try SMB2 first", which now happens without being
asked.  A machine that already sets it to reach a server needing SMB2 still
reaches it.


Reporting a problem
-------------------
    Set LanMan98$Log <a file>

writes an account of what the connection did into that file - what was
connected to, the dialect settled on, the transfer sizes offered and the
smaller ones used, every file opened with the size reported for it, every
read and write asked for, a line per message each way, and any error at the
moment it is raised, with its text and number.  Send that file.

It is more use than a packet capture when the complaint is that nothing
reaches the network: a capture of a file that opens and then will not read
simply stops, and cannot say whether the machine never asked for the data or
asked and was refused.  The log has both sides of that line in it.

It appends, so one file can hold several attempts, and it is flushed a line
at a time so a machine that stops dead still leaves everything up to the
point where it stopped.  It slows transfers down; set it to reproduce a
fault and unset it afterwards.


Finding servers
---------------
Choose "Discover" from the icon bar menu.  It asks the network what is on
it, asks each machine what it shares, and opens a directory of what it
found.  Double click one and the connect window opens with the server and
share already in it, wanting only a password.

What is found is not kept.  It goes in the scrap directory and is cleared
out at the start of the next look; a share becomes a permanent icon in
!LanMan98.Discs when it is double clicked and the connection succeeds.  A
share already kept there is left alone rather than offered again, so a
password saved in one is never thrown away.

The same thing from the command line:

    *Servers98              what is out there
    *Shares98 <server>      what one machine shares
    *Discover98             both, leaving the icons behind

A machine that refuses the name it is given is asked again without one, so
a machine nobody is logged on to still lists what it shares if it allows
guests - which is what guest sharing on a Mac is.  Leaving the user name
empty on the connect window does the same thing for a share.

Finding servers needs a network that carries a question addressed to
everybody.  Where it does not, LanMan98$DiscoverAddr names one machine to
ask instead.  Listing shares needs SMB2 - there is no way to ask a server
over the older protocol.


Signing
-------
A server that requires signed messages is signed to automatically, in
whichever protocol is in use, and needs nothing set up.  Signing is not used
otherwise: it costs a digest over every byte transferred, which on a slow
machine is a noticeable part of the transfer time and buys nothing on a
network you trust.  To sign anyway:

    Set LanMan98$Sign ""

A server that merely offers signing turns it on only for a client that asks
in the negotiate, which is what that does.

SMB 3.x signs with AES-CMAC and 2.x with HMAC-SHA256; which is used follows
whichever dialect the server picked, and needs nothing set.  Signing costs
real time on a slow machine - a sixty kilobyte transfer is a digest over all
sixty kilobytes - which is the reason it is not simply always on.


Settings
--------
!LanMan98.!Run lists them all, commented out, with a note on each.  None is
needed for ordinary use.


Unpacking
---------
This archive carries RISC OS filetypes, so unpack it on RISC OS - SparkFS,
SparkPlug and the RISC OS build of UnZip all read them - and everything
arrives correctly typed and dated.  Unpacking on a PC and copying across
loses the types: the module will not load and the Obey files will not run.
If you have to go that way, set the types by hand afterwards, or copy over
a LanMan98 mount with filetype mapping switched on.

TestSuite.Sources holds the two BASIC programs as readable text, for
reading or editing.  The suite runs the tokenised copies beside it.


Authorship
----------
LanMan98 is Copyright (c) Warm Silence Software Ltd 1996-2019, and the Open
Source Edition Copyright (c) RISC OS Developments 2019 onwards.  The original
author is Paul Gardiner.

The SMB2 support, the NTLMSSP authentication and the message signing added in
2.18 to 3.00 are Copyright (c) RISC OS Developments 2026, and the SMB2/3
changes are credited to the RISC OS One Project.
