Skip to content

Conversation

MichaelBuckley
Copy link
Contributor

mac_method_hmac_aesgcm currently sets its hash functions to NULL. This is typically fine, when both the local and remote session are using mac_method_hmac_aesgcm. But it's possible to set just one of the sessions to use e.g. aes128-ctr, and if you do that, the hash functions will get called without first checking if they're NULL or not.

This may be a misconfiguration which will prevent a proper connection, but it's better that libssh2 not defererence NULL in this circunstance.

…sh when e.g. setting LIBSSH2_METHOD_CRYPT_CS
@willco007 willco007 merged commit b273839 into libssh2:master Feb 22, 2024
agreppin pushed a commit to agreppin/libssh2 that referenced this pull request Jul 14, 2024
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.

2 participants