tests: Replace ssh_string_free() with SSH_STRING_FREE()

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Anderson Toshiyuki Sasaki
2018-09-24 18:56:22 +02:00
committed by Andreas Schneider
parent 2eaa23a20e
commit ca7da823c3
4 changed files with 10 additions and 10 deletions

View File

@@ -441,7 +441,7 @@ static void torture_pki_ed25519_sign(void **state)
/* ssh_print_hexa("signature", ssh_string_data(blob), ssh_string_len(blob)); */
ssh_signature_free(sig);
SSH_KEY_FREE(privkey);
ssh_string_free(blob);
SSH_STRING_FREE(blob);
}
@@ -473,7 +473,7 @@ static void torture_pki_ed25519_verify(void **state){
/* alter signature and expect false result */
SSH_KEY_FREE(pubkey);
ssh_string_free(blob);
SSH_STRING_FREE(blob);
free(pkey_ptr);
}
@@ -509,7 +509,7 @@ static void torture_pki_ed25519_verify_bad(void **state){
}
SSH_KEY_FREE(pubkey);
ssh_string_free(blob);
SSH_STRING_FREE(blob);
free(pkey_ptr);
}