Skip to content

hostkey: fix hash_len field constants - #926

Closed
vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:hostkey-wrong-hash-len
Closed

vszakats wants to merge 1 commit into
libssh2:masterfrom
vszakats:hostkey-wrong-hash-len

Conversation

@vszakats

@vszakats vszakats commented Apr 2, 2023 •

Copy link
Copy Markdown
Member

Replace incorrect MD5_DIGEST_LENGTH with SHA_DIGEST_LENGTH for these hostkey algos:

Reported-by: Markus-Schmidt on github
Fixes #919
Closes #926

@vszakats vszakats changed the title hostkey: fix hash_len field values hostkey: fix hash_len field values Apr 2, 2023
vszakats added a commit to vszakats/libssh2 that referenced this pull request Apr 2, 2023
Replace incorrect `MD5_DIGEST_LENGTH` with `SHA1_DIGEST_LENGTH` for
these hostkey algos:

- `ssh-rsa` and `ssh-dss`

  Ref: 7a5ffc8 (2004-12-07 Initial)

- `[email protected]`

  Ref: 4b21e49 (2022-07-28)
  Ref: libssh2#710

Also delete local fall-back definition of `MD5_DIGEST_LENGTH` (added
in 9af7eb4). Macro is no longer used.

Reported-by: Markus-Schmidt on github
Fixes libssh2#919
Closes libssh2#926
@vszakats
vszakats force-pushed the hostkey-wrong-hash-len branch from f570e32 to 406d085 Compare April 2, 2023 15:00
Replace incorrect `MD5_DIGEST_LENGTH` with `SHA_DIGEST_LENGTH` for
these hostkey algos:

- `ssh-rsa` and `ssh-dss`

  Ref: 7a5ffc8 (2004-12-07 Initial)

- `[email protected]`

  Ref: 4b21e49 (2022-07-28)
  Ref: libssh2#710

Also delete local fall-back definition of `MD5_DIGEST_LENGTH` (added
in 9af7eb4). Macro is no longer used.

Reported-by: Markus-Schmidt on github
Fixes libssh2#919
Closes libssh2#926
@vszakats
vszakats force-pushed the hostkey-wrong-hash-len branch from 406d085 to fe7b563 Compare April 2, 2023 15:41
@vszakats vszakats changed the title hostkey: fix hash_len field values hostkey: fix hash_len field constants Apr 2, 2023
@vszakats vszakats closed this in ad6aae3 Apr 3, 2023
@vszakats
vszakats deleted the hostkey-wrong-hash-len branch April 3, 2023 12:12
agreppin pushed a commit to agreppin/libssh2 that referenced this pull request Jul 14, 2024
Replace incorrect `MD5_DIGEST_LENGTH` with `SHA_DIGEST_LENGTH` for these
hostkey algos:

- `ssh-rsa` and `ssh-dss`

  Ref: 7a5ffc8 (2004-12-07 Initial)

- `[email protected]`

  Ref: 4b21e49 (2022-07-28)
  Ref: libssh2#710

Also delete local fall-back definition of `MD5_DIGEST_LENGTH` (added
in 9af7eb4). Macro is no longer used.

Reported-by: Markus-Schmidt on github
Fixes libssh2#919
Closes libssh2#926
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Possible (unconsequential) source bug.

1 participant