mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Fix "make check-spaces"
This commit is contained in:
parent
7f9066ceee
commit
c94f6b228b
@ -526,15 +526,15 @@ test_crypto_digests(void)
|
||||
r = crypto_pk_get_digest(k, digest);
|
||||
test_assert(r == 0);
|
||||
test_memeq(hex_str(digest, DIGEST_LEN),
|
||||
AUTHORITY_SIGNKEY_1_DIGEST, HEX_DIGEST_LEN);
|
||||
AUTHORITY_SIGNKEY_1_DIGEST, HEX_DIGEST_LEN);
|
||||
|
||||
r = crypto_pk_get_all_digests(k, &pkey_digests);
|
||||
|
||||
test_memeq(hex_str(pkey_digests.d[DIGEST_SHA1], DIGEST_LEN),
|
||||
AUTHORITY_SIGNKEY_1_DIGEST, HEX_DIGEST_LEN);
|
||||
AUTHORITY_SIGNKEY_1_DIGEST, HEX_DIGEST_LEN);
|
||||
test_memeq(hex_str(pkey_digests.d[DIGEST_SHA256], DIGEST256_LEN),
|
||||
AUTHORITY_SIGNKEY_1_DIGEST256, HEX_DIGEST256_LEN);
|
||||
done:
|
||||
AUTHORITY_SIGNKEY_1_DIGEST256, HEX_DIGEST256_LEN);
|
||||
done:
|
||||
crypto_pk_free(k);
|
||||
}
|
||||
|
||||
|
@ -9,7 +9,6 @@
|
||||
#include "or.h"
|
||||
#include "test.h"
|
||||
|
||||
|
||||
static void
|
||||
test_tortls_evp_pkey_eq(void)
|
||||
{
|
||||
@ -27,7 +26,7 @@ test_tortls_evp_pkey_eq(void)
|
||||
test_assert(tor_tls_evp_pkey_eq(evp1, evp2) == 0);
|
||||
test_assert(tor_tls_evp_pkey_eq(evp1, evp1) == 1);
|
||||
|
||||
done:
|
||||
done:
|
||||
crypto_pk_free(pk1);
|
||||
crypto_pk_free(pk2);
|
||||
if (evp1)
|
||||
@ -43,3 +42,4 @@ struct testcase_t tortls_tests[] = {
|
||||
TORTLS_LEGACY(evp_pkey_eq),
|
||||
END_OF_TESTCASES
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user