mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-01-06 06:28:56 +01:00
Add EC support to x509write_key
This commit is contained in:
parent
7f1f0926e4
commit
6de63e480d
4 changed files with 108 additions and 27 deletions
|
|
@ -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" );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue