Skip to content

test2007: bump to use SHA256 public key hash (was: MD5) - #23184

Closed
vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:test2007-bump-to-sha256
Closed

vszakats wants to merge 2 commits into
curl:masterfrom
vszakats:test2007-bump-to-sha256

Conversation

@vszakats

@vszakats vszakats commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

The hash is not material to the test itself, use the modern alternative
to allow running it with MD5 support disabled.

Follow-up to a418f3f #23182
Follow-up to 53a3b21 #20883

The hash is not material to the test itself, use the modern alternative
to allow running it with MD5 support disabled.

Ref: curl#23182
Follow-up to 53a3b21 curl#20883
@vszakats
vszakats force-pushed the test2007-bump-to-sha256 branch from 96ddcee to 7f49f18 Compare September 30, 2026 09:32
@github-actions github-actions Bot added the CI Continuous Integration label Sep 30, 2026
@vszakats vszakats closed this in 183ea8b Sep 30, 2026
@vszakats
vszakats deleted the test2007-bump-to-sha256 branch September 30, 2026 09:44
vszakats added a commit that referenced this pull request Sep 30, 2026
Necessary after bumping this test from MD5 to SHA256 earlier today.

Fixing (seen in 'msvc, CM x64-windows openssl +examples' job):
```
test 2007 [SFTP quote rmdir command with trailing junk]
curl returned 60, when expecting 21
[...]
 ../src/Debug/curl.exe -q --output log/4/curl2007.out  --include --trace-ascii
  log/4/trace2007 --trace-time --hostpubsha256 /Y/tbeENUtVCGxTDQrxHaGGDKF784yL5gxs9++AlgI0
  --key log/4/server/curl_client_key --pubkey log/4/server/curl_client_key.pub -u runneradmin:
  sftp://127.0.0.1:57155/d/a/curl/curl/bld/tests/log/4/file2007.txt
  -Q "mkdir /tmp/test trailing_garbage" > log/4/stdout2007 2> log/4/stderr2007
[...]
 curl: (60) Denied establishing ssh session: mismatch SHA256 fingerprint. Remote
/Y/tbeENUtVCGxTDQrxHaGGDKF784yL5gxs9++AlgI0= is not equal to
Y:/tbeENUtVCGxTDQrxHaGGDKF784yL5gxs9++AlgI0
```
Ref: https://github.com/curl/curl/actions/runs/36765608048/job/110059238555?pr=23146#step:16:3641

Also: update/sync related comments.

Bug: #23146 (comment)
Follow-up to 183ea8b #23184

Closes #23200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration SCP/SFTP tests

Development

Successfully merging this pull request may close these issues.

1 participant