mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 22:25:47 +01:00
Cleanup unused bit in ssl
Became unused when removing deprecated ssl_set_own_cert_xxx() functions
This commit is contained in:
parent
348bcb3694
commit
d16df8f60a
@ -769,7 +769,6 @@ struct _ssl_key_cert
|
|||||||
{
|
{
|
||||||
x509_crt *cert; /*!< cert */
|
x509_crt *cert; /*!< cert */
|
||||||
pk_context *key; /*!< private key */
|
pk_context *key; /*!< private key */
|
||||||
int key_own_alloc; /*!< did we allocate key? */
|
|
||||||
ssl_key_cert *next; /*!< next key/cert pair */
|
ssl_key_cert *next; /*!< next key/cert pair */
|
||||||
};
|
};
|
||||||
#endif /* POLARSSL_X509_CRT_PARSE_C */
|
#endif /* POLARSSL_X509_CRT_PARSE_C */
|
||||||
|
@ -6507,14 +6507,7 @@ static void ssl_key_cert_free( ssl_key_cert *key_cert )
|
|||||||
while( cur != NULL )
|
while( cur != NULL )
|
||||||
{
|
{
|
||||||
next = cur->next;
|
next = cur->next;
|
||||||
|
|
||||||
if( cur->key_own_alloc )
|
|
||||||
{
|
|
||||||
pk_free( cur->key );
|
|
||||||
polarssl_free( cur->key );
|
|
||||||
}
|
|
||||||
polarssl_free( cur );
|
polarssl_free( cur );
|
||||||
|
|
||||||
cur = next;
|
cur = next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user