mirror of
https://github.com/libssh2/libssh2.git
synced 2025-11-21 14:00:51 +03:00
committed by
Daniel Stenberg
parent
ed2c3c8d28
commit
e64260a117
@@ -73,7 +73,7 @@
|
|||||||
|
|
||||||
/* Helper macro called from kex_method_diffie_hellman_group1_sha256_key_exchange */
|
/* Helper macro called from kex_method_diffie_hellman_group1_sha256_key_exchange */
|
||||||
#define LIBSSH2_KEX_METHOD_DIFFIE_HELLMAN_SHA256_HASH(value, reqlen, version) \
|
#define LIBSSH2_KEX_METHOD_DIFFIE_HELLMAN_SHA256_HASH(value, reqlen, version) \
|
||||||
{ \
|
{ \
|
||||||
libssh2_sha256_ctx hash; \
|
libssh2_sha256_ctx hash; \
|
||||||
unsigned long len = 0; \
|
unsigned long len = 0; \
|
||||||
if (!(value)) { \
|
if (!(value)) { \
|
||||||
@@ -96,7 +96,7 @@
|
|||||||
libssh2_sha256_final(hash, (value) + len); \
|
libssh2_sha256_final(hash, (value) + len); \
|
||||||
len += SHA256_DIGEST_LENGTH; \
|
len += SHA256_DIGEST_LENGTH; \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user