ssl: Validate hostnames

Closes #524
This commit is contained in:
TingPing
2014-11-19 21:43:01 -05:00
parent ebaaf466bf
commit c9b63f7f9b
3 changed files with 219 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ char *_SSL_set_verify (SSL_CTX *ctx, void *(verify_callback), char *cacert);
int SSL_get_fd(SSL *);
*/
void _SSL_close (SSL * ssl);
int _SSL_check_hostname(X509 *cert, const char *host);
int _SSL_get_cert_info (struct cert_info *cert_info, SSL * ssl);
struct chiper_info *_SSL_get_cipher_info (SSL * ssl);