mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-02-18 16:33:01 +00:00
Rename x509parse_key & co with _rsa suffix
This commit is contained in:
@@ -104,7 +104,7 @@ int main( int argc, char *argv[] )
|
||||
fflush( stdout );
|
||||
|
||||
rsa_init( &p_rsa, RSA_PKCS_V15, 0 );
|
||||
if( x509parse_keyfile( &p_rsa, argv[1], NULL ) != 0 )
|
||||
if( x509parse_keyfile_rsa( &p_rsa, argv[1], NULL ) != 0 )
|
||||
{
|
||||
ret = 1;
|
||||
printf( " failed\n ! Could not load key.\n\n" );
|
||||
|
||||
@@ -196,10 +196,10 @@ int main( int argc, char *argv[] )
|
||||
printf( " . Loading the client private key %s...", name );
|
||||
fflush( stdout );
|
||||
|
||||
ret = x509parse_keyfile( &rsa, name, NULL );
|
||||
ret = x509parse_keyfile_rsa( &rsa, name, NULL );
|
||||
if( ret != 0 )
|
||||
{
|
||||
printf( " failed\n ! x509parse_key returned %d\n\n", ret );
|
||||
printf( " failed\n ! x509parse_key_rsa returned %d\n\n", ret );
|
||||
goto exit;
|
||||
}
|
||||
|
||||
|
||||
@@ -229,11 +229,11 @@ static int ssl_test( struct options *opt )
|
||||
goto exit;
|
||||
}
|
||||
|
||||
ret = x509parse_key( &rsa, (const unsigned char *) test_srv_key,
|
||||
ret = x509parse_key_rsa( &rsa, (const unsigned char *) test_srv_key,
|
||||
strlen( test_srv_key ), NULL, 0 );
|
||||
if( ret != 0 )
|
||||
{
|
||||
printf( " ! x509parse_key returned %d\n\n", ret );
|
||||
printf( " ! x509parse_key_rsa returned %d\n\n", ret );
|
||||
goto exit;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user