mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-07-28 01:41:48 +03:00
pkd: Run hmac-sha1 tests with OpenSSH
This was initially in hurry disabled inca4c874a9e
because dropbear dropped support for these HMACs. The follow-up commit enabled running these tests on old dropbear inc17112f070
, but still did not run them on openssh, when the new dropbear was installed. This fixes up the above commit to run the HMAC-SHA1 tests with OpenSSH even if the new dropbear is installed. Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Sahana Prasad <sahana@redhat.com>
This commit is contained in:
@ -445,12 +445,16 @@ static int torture_pkd_setup_ecdsa_521(void **state) {
|
|||||||
#define PKDTESTS_MAC_FIPS(f, client, maccmd) \
|
#define PKDTESTS_MAC_FIPS(f, client, maccmd) \
|
||||||
PKDTESTS_MAC_FIPS_BASE(f, client, maccmd) \
|
PKDTESTS_MAC_FIPS_BASE(f, client, maccmd) \
|
||||||
PKDTESTS_MAC_FIPS_SHA1(f, client, maccmd)
|
PKDTESTS_MAC_FIPS_SHA1(f, client, maccmd)
|
||||||
|
#define PKDTESTS_MAC_OPENSSHONLY_FIPS_SHA1(f, client, maccmd)
|
||||||
#else
|
#else
|
||||||
#define PKDTESTS_MAC_FIPS(f, client, maccmd) \
|
#define PKDTESTS_MAC_FIPS(f, client, maccmd) \
|
||||||
PKDTESTS_MAC_FIPS_BASE(f, client, maccmd)
|
PKDTESTS_MAC_FIPS_BASE(f, client, maccmd)
|
||||||
|
#define PKDTESTS_MAC_OPENSSHONLY_FIPS_SHA1(f, client, maccmd) \
|
||||||
|
PKDTESTS_MAC_FIPS_SHA1(f, client, maccmd)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define PKDTESTS_MAC_OPENSSHONLY_FIPS(f, client, maccmd) \
|
#define PKDTESTS_MAC_OPENSSHONLY_FIPS(f, client, maccmd) \
|
||||||
|
PKDTESTS_MAC_OPENSSHONLY_FIPS_SHA1(f, client, maccmd) \
|
||||||
f(client, ecdsa_256_hmac_sha1_etm, maccmd("hmac-sha1-etm@openssh.com"), setup_ecdsa_256, teardown) \
|
f(client, ecdsa_256_hmac_sha1_etm, maccmd("hmac-sha1-etm@openssh.com"), setup_ecdsa_256, teardown) \
|
||||||
f(client, ecdsa_256_hmac_sha2_256_etm, maccmd("hmac-sha2-256-etm@openssh.com"), setup_ecdsa_256, teardown) \
|
f(client, ecdsa_256_hmac_sha2_256_etm, maccmd("hmac-sha2-256-etm@openssh.com"), setup_ecdsa_256, teardown) \
|
||||||
f(client, ecdsa_256_hmac_sha2_512, maccmd("hmac-sha2-512"), setup_ecdsa_256, teardown) \
|
f(client, ecdsa_256_hmac_sha2_512, maccmd("hmac-sha2-512"), setup_ecdsa_256, teardown) \
|
||||||
|
Reference in New Issue
Block a user