• src/xpdev/ini_file.c

    From Deucе@1:103/705 to Git commit to main/sbbs/master on Thu Oct 2 11:48:37 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/704a50ccdac528ec8389c6d4
    Modified Files:
    src/xpdev/ini_file.c
    Log Message:
    Fix warning
    --- SBBSecho 3.30-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sat Oct 4 22:19:48 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/2fdb81f848788709c28e88ff
    Modified Files:
    src/xpdev/ini_file.c
    Log Message:
    Make all ini file read function support the same max length, now 2048 bytes

    INI_MAX_LINE_LEN used to be defined as 2048, but that includes the NUL terminator, so effectively 2047 bytes per line were supported in all the
    ini functions *except* iniReadFile(), which supported 2048 chars per line.

    Now all the ini functions should agree: 2048 is the max chars per line
    because INI_MAX_LINE_LEN is now defined as 2049.

    I figured this was a better solution than reducing the line lengths supported by iniReadFile().

    Fix for issue #982
    --- SBBSecho 3.30-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Sun Oct 5 17:42:39 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/0a49d7b77ba2458e7dc95bf7
    Modified Files:
    src/xpdev/ini_file.c
    Log Message:
    Fixes for a couple Cryptlib issues

    Stream ciphers can be detected as having a blocksize of 1.

    The return value of CRYPT_CTXINFO_IVSIZE is simply the block size,
    which in the case of ChaCha20 is wildly incorrect, so we simply
    can't use that attribute. Instead, store the IV size at the start
    of the IV itself.

    WARNING: THIS CHANGE MAKES THE NEW CODE UNABLE TO DECRYPT A FILE
    ENCRYPTED WITH THE OLD CODE. DECRYPT YOUR LIST BEFORE UPGRADING!
    --- SBBSecho 3.30-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell (on Debian Linux)@1:103/705 to Git commit to main/sbbs/master on Sun Oct 5 18:05:12 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/a707bf59e824e9495b5d9a11
    Modified Files:
    src/xpdev/ini_file.c
    Log Message:
    Revert "Make all ini file read function support the same max length, now 2048 bytes"

    This reverts commit 2fdb81f848788709c28e88ff6a1d48152ee57d4c.

    See issue #982 for details
    --- SBBSecho 3.30-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Sun Oct 5 18:24:11 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/5a4fea78858968999f914c40
    Modified Files:
    src/xpdev/ini_file.c
    Log Message:
    Actually check the result of cryptEncrypt() for IV

    We were grabbing the IV before checking the result of cryptEncrypt(),
    which means if it failed, we would potentially wander off into weirdness.
    --- SBBSecho 3.30-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Mon Oct 6 07:33:37 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/c14b591b57877d8f57ce2ab0
    Modified Files:
    src/xpdev/ini_file.c
    Log Message:
    Be explcit about key derevation parameters.

    Specifically, use SHA-2 with 50,000 iterations.
    --- SBBSecho 3.30-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Mon Oct 6 15:47:34 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/86c7a4abc16970072fd362da
    Modified Files:
    src/xpdev/ini_file.c
    Log Message:
    Fix non-cryptlib encrypted wrappers
    --- SBBSecho 3.30-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Tue Oct 7 19:44:22 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/030b4a1acfa14b48e78e94b7
    Modified Files:
    src/xpdev/ini_file.c
    Log Message:
    Fix Coverity issues

    Mostly errors in error handling.
    --- SBBSecho 3.30-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Deucе@1:103/705 to Git commit to main/sbbs/master on Thu Oct 23 09:34:23 2025
    https://gitlab.synchro.net/main/sbbs/-/commit/d3cd03fb949d0203177a74ab
    Modified Files:
    src/xpdev/ini_file.c
    Log Message:
    Fix error with stream cipher handling

    If the last 2k "block" in a stream cipher didn't hit exactly on
    a block boundary, it was written in plaintext, not encrypted, which
    would be read back as gibberish.

    This caused all of the bits that add a BBS entry to seem to fail
    to add with stream encrypted files (ie: ChaCha20).
    --- SBBSecho 3.30-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)