Skip to content

Commit

Permalink
Merge pull request #723 from EricMCornelius/master
Browse files Browse the repository at this point in the history
Add ip-based client certificate authentication to https servers
  • Loading branch information
s-ludwig committed Jul 16, 2014
2 parents 2fbe32f + ddd7508 commit 959441a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/vibe/http/server.d
Original file line number Diff line number Diff line change
Expand Up @@ -1191,7 +1191,8 @@ private void handleHTTPConnection(TCPConnection connection, HTTPServerListener l
// If this is a HTTPS server, initiate SSL
if (listen_info.sslContext) {
logTrace("accept ssl");
ssl_stream = createSSLStreamFL(http_stream, listen_info.sslContext, SSLStreamState.accepting);
// TODO: reverse DNS lookup for peer_name of the incoming connection for SSL client certificate verification purposes
ssl_stream = createSSLStreamFL(http_stream, listen_info.sslContext, SSLStreamState.accepting, null, connection.remoteAddress);
http_stream = ssl_stream;
}

Expand Down

0 comments on commit 959441a

Please sign in to comment.