Skip to content

Commit

Permalink
lib-ssl-iostream: Add comment about verifying certs in callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse committed Feb 25, 2019
1 parent 2dea2f8 commit 2e5b624
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib-ssl-iostream/iostream-ssl.h
Expand Up @@ -76,7 +76,12 @@ int ssl_iostream_handshake(struct ssl_iostream *ssl_io);
/* Call the given callback when SSL handshake finishes. The callback must
verify whether the certificate and its hostname is valid. If there is no
callback, the default is to use ssl_iostream_check_cert_validity() with the
same host as given to io_stream_create_ssl_client() */
same host as given to io_stream_create_ssl_client()
Before the callback is called, certificate is only checked for issuer
and validity period. You should call ssl_iostream_check_cert_validity()
in your callback.
*/
void ssl_iostream_set_handshake_callback(struct ssl_iostream *ssl_io,
ssl_iostream_handshake_callback_t *callback,
void *context);
Expand Down

0 comments on commit 2e5b624

Please sign in to comment.