optional certificate-based peer authentication on TLS server side

This commit is contained in:
Andreas Steffen
2010-08-15 13:02:57 +02:00
parent 758d7283fb
commit b51ac45c48
6 changed files with 49 additions and 23 deletions
+4 -3
View File
@@ -178,8 +178,8 @@ METHOD(tls_t, destroy, void,
* See header
*/
tls_t *tls_create(bool is_server, identification_t *server,
identification_t *peer, char *msk_label,
tls_application_t *application)
identification_t *peer, bool request_peer_auth,
char *msk_label, tls_application_t *application)
{
private_tls_t *this;
@@ -205,7 +205,8 @@ tls_t *tls_create(bool is_server, identification_t *server,
if (is_server)
{
this->handshake = &tls_server_create(&this->public, this->crypto,
this->server, this->peer)->handshake;
this->server, this->peer,
request_peer_auth)->handshake;
}
else
{