Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ejohnstown committed Nov 6, 2023
1 parent 5b43981 commit 97a41f5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ static void test_wolfSSH_ReadKey(void)
AssertNotNull(key);
AssertIntGT(keySz, 0);
AssertStrEQ(keyType, "ssh-rsa");
AssertIntEQ(keyTypeSz, WSTRLEN("ssh-rsa"));
AssertIntEQ(keyTypeSz, (word32)WSTRLEN("ssh-rsa"));
AssertTrue(isPrivate);
WFREE(key, NULL, DYNTYPE_FILE);

Expand All @@ -628,7 +628,7 @@ static void test_wolfSSH_ReadKey(void)
AssertNotNull(key);
AssertIntGT(keySz, 0);
AssertStrEQ(keyType, "ssh-rsa");
AssertIntEQ(keyTypeSz, WSTRLEN("ssh-rsa"));
AssertIntEQ(keyTypeSz, (word32)WSTRLEN("ssh-rsa"));
AssertTrue(isPrivate);
WFREE(key, NULL, DYNTYPE_FILE);

Expand All @@ -644,7 +644,7 @@ static void test_wolfSSH_ReadKey(void)
AssertNotNull(key);
AssertIntGT(keySz, 0);
AssertStrEQ(keyType, "ssh-rsa");
AssertIntEQ(keyTypeSz, WSTRLEN("ssh-rsa"));
AssertIntEQ(keyTypeSz, (word32)WSTRLEN("ssh-rsa"));
AssertFalse(isPrivate);
WFREE(key, NULL, DYNTYPE_FILE);

Expand All @@ -660,7 +660,7 @@ static void test_wolfSSH_ReadKey(void)
AssertNotNull(key);
AssertIntGT(keySz, 0);
AssertStrEQ(keyType, "ecdsa-sha2-nistp256");
AssertIntEQ(keyTypeSz, WSTRLEN("ecdsa-sha2-nistp256"));
AssertIntEQ(keyTypeSz, (word32)WSTRLEN("ecdsa-sha2-nistp256"));
AssertTrue(isPrivate);
WFREE(key, NULL, DYNTYPE_FILE);

Expand All @@ -676,7 +676,7 @@ static void test_wolfSSH_ReadKey(void)
AssertNotNull(key);
AssertIntGT(keySz, 0);
AssertStrEQ(keyType, "ecdsa-sha2-nistp256");
AssertIntEQ(keyTypeSz, WSTRLEN("ecdsa-sha2-nistp256"));
AssertIntEQ(keyTypeSz, (word32)WSTRLEN("ecdsa-sha2-nistp256"));
AssertTrue(isPrivate);
WFREE(key, NULL, DYNTYPE_FILE);

Expand All @@ -692,7 +692,7 @@ static void test_wolfSSH_ReadKey(void)
AssertNotNull(key);
AssertIntGT(keySz, 0);
AssertStrEQ(keyType, "ecdsa-sha2-nistp256");
AssertIntEQ(keyTypeSz, WSTRLEN("ecdsa-sha2-nistp256"));
AssertIntEQ(keyTypeSz, (word32)WSTRLEN("ecdsa-sha2-nistp256"));
AssertFalse(isPrivate);
WFREE(key, NULL, DYNTYPE_FILE);

Expand All @@ -707,10 +707,10 @@ static void test_wolfSSH_ReadKey(void)
ret = wolfSSH_ReadKey_file(WOLFSSH_KEYS_PATH "id_rsa",
&key, &keySz, &keyType, &keyTypeSz, &isPrivate, NULL);
AssertIntEQ(ret, WS_SUCCESS);
AssertPtrEq(key, keyCheck);
AssertNotNull(key);
AssertIntGT(keySz, 0);
AssertStrEQ(keyType, "ssh-rsa");
AssertIntEQ(keyTypeSz, WSTRLEN("ssh-rsa"));
AssertIntEQ(keyTypeSz, (word32)WSTRLEN("ssh-rsa"));
AssertTrue(isPrivate);
WFREE(keyCheck, NULL, DYNTYPE_FILE);
}
Expand Down

0 comments on commit 97a41f5

Please sign in to comment.