mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-23 15:55:10 +01:00
Remove rsa member from x509_cert structure
This commit is contained in:
parent
ff56da3a26
commit
991d0f5aca
2 changed files with 0 additions and 13 deletions
|
|
@ -1422,17 +1422,6 @@ static int x509parse_crt_der_core( x509_cert *crt, const unsigned char *buf,
|
|||
return( ret );
|
||||
}
|
||||
|
||||
/*
|
||||
* Temporary hack for compatibility while transitioning to PK abstraction
|
||||
* (Cannot use rsa_wrap above since it would force RSA key type.)
|
||||
*/
|
||||
if( crt->pk.type == POLARSSL_PK_RSA ) {
|
||||
memcpy( &crt->rsa, pk_rsa( crt->pk ), sizeof( rsa_context ) );
|
||||
free( crt->pk.data );
|
||||
crt->pk.data = &crt->rsa;
|
||||
crt->pk.dont_free = 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* issuerUniqueID [1] IMPLICIT UniqueIdentifier OPTIONAL,
|
||||
* -- If present, version shall be v2 or v3
|
||||
|
|
@ -4011,7 +4000,6 @@ void x509_free( x509_cert *crt )
|
|||
do
|
||||
{
|
||||
pk_free( &cert_cur->pk );
|
||||
rsa_free( &cert_cur->rsa );
|
||||
|
||||
name_cur = cert_cur->issuer.next;
|
||||
while( name_cur != NULL )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue