Cleanup unused bit in ssl

Became unused when removing deprecated ssl_set_own_cert_xxx() functions
This commit is contained in:
Manuel Pégourié-Gonnard 2015-03-31 14:04:51 +02:00
parent 348bcb3694
commit d16df8f60a
2 changed files with 0 additions and 8 deletions

View file

@ -769,7 +769,6 @@ struct _ssl_key_cert
{
x509_crt *cert; /*!< cert */
pk_context *key; /*!< private key */
int key_own_alloc; /*!< did we allocate key? */
ssl_key_cert *next; /*!< next key/cert pair */
};
#endif /* POLARSSL_X509_CRT_PARSE_C */

View file

@ -6507,14 +6507,7 @@ static void ssl_key_cert_free( ssl_key_cert *key_cert )
while( cur != NULL )
{
next = cur->next;
if( cur->key_own_alloc )
{
pk_free( cur->key );
polarssl_free( cur->key );
}
polarssl_free( cur );
cur = next;
}
}