Add EC support to x509write_key

This commit is contained in:
Manuel Pégourié-Gonnard 2013-09-12 04:59:34 +02:00 committed by Paul Bakker
parent 7f1f0926e4
commit 6de63e480d
4 changed files with 108 additions and 27 deletions

View file

@ -169,7 +169,7 @@ void x509_key_check( char *key_file )
pk_init( &key );
TEST_ASSERT( x509parse_keyfile( &key, key_file, NULL ) == 0 );
ret = x509write_key_pem( pk_rsa( key ), buf, sizeof( buf ) - 1);
ret = x509write_key_pem( &key, buf, sizeof( buf ) - 1);
TEST_ASSERT( ret >= 0 );
f = fopen( key_file, "r" );