1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

PK: rename members for consistency CIPHER, MD

Also add pk_get_name() to remove a direct access to pk_type
This commit is contained in:
Manuel Pégourié-Gonnard
2013-08-14 18:26:41 +02:00
parent 09162ddcaa
commit 3fb5c5ee1c
4 changed files with 50 additions and 30 deletions

View File

@ -227,7 +227,7 @@ void x509parse_public_keyfile_ec( char *key_file, int result )
{
ecp_keypair *eckey;
TEST_ASSERT( pk_can_do( &ctx, POLARSSL_PK_ECKEY ) );
eckey = (ecp_keypair *) ctx.data;
eckey = pk_ec( ctx );
TEST_ASSERT( ecp_check_pubkey( &eckey->grp, &eckey->Q ) == 0 );
}
@ -251,7 +251,7 @@ void x509parse_keyfile_ec( char *key_file, char *password, int result )
{
ecp_keypair *eckey;
TEST_ASSERT( pk_can_do( &ctx, POLARSSL_PK_ECKEY ) );
eckey = (ecp_keypair *) ctx.data;
eckey = pk_ec( ctx );
TEST_ASSERT( ecp_check_privkey( &eckey->grp, &eckey->d ) == 0 );
}