ovsqlite bits and pieces

Bo Lindbergh 2bfjdsla52kztwejndzdstsxl9athp at gmail.com
Sun May 24 14:26:00 UTC 2026


This gets embarrassing.

Back in 2020, I somehow missed that SQLite's PRNG has a direct C interface.
Using this is much simpler than preparing and running some SQL.

The PRNG is only used in one place: generating a random
authentication cookie when Unix-domain sockets aren't available.
So to test the new shorter code I built INN with Unix sockets
forced off, and then I discovered that I had failed to test this case
in the INN::ovsqlite_client Perl module.

New and improved code attached, actually tested this time.

/Bo Lindbergh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Using-sqlite3_randomness-simplifies-things.patch.gz
Type: application/x-gzip
Size: 976 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/inn-workers/attachments/20260524/fbcd0db2/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Fix-the-no-unix-sockets-path-of-ovsqlite_client.pm.patch.gz
Type: application/x-gzip
Size: 645 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/inn-workers/attachments/20260524/fbcd0db2/attachment-0001.bin>


More information about the inn-workers mailing list