Fixed client certificate handling with TLS 1.2

This commit is contained in:
Paul Bakker 2012-11-23 13:38:07 +01:00
parent e667c98fb1
commit 926af7582a
3 changed files with 201 additions and 47 deletions

View file

@ -192,6 +192,11 @@
#define SSL_SIG_RSA 1
/*
* Client Certificate Types
*/
#define SSL_CERT_TYPE_RSA_SIGN 1
/*
* Message, alert and handshake types
*/
@ -351,6 +356,8 @@ struct _ssl_handshake_params
* Handshake specific crypto variables
*/
int sig_alg; /*!< Signature algorithm */
int cert_type; /*!< Requested cert type */
int verify_sig_alg; /*!< Signature algorithm for verify */
#if defined(POLARSSL_DHM_C)
dhm_context dhm_ctx; /*!< DHM key exchange */
#endif