Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions openssl/openssl_hostname_validation.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
* License: See LICENSE
*
*/

#ifndef openssl_hostname_validation_h
#define openssl_hostname_validation_h

#ifndef OPENSSL_HOSTNAME_VALIDATION_LINKAGE
#define OPENSSL_HOSTNAME_VALIDATION_LINKAGE extern
#endif

typedef enum {
MatchFound,
MatchNotFound,
Expand All @@ -29,4 +35,6 @@ typedef enum {
* Returns MalformedCertificate if any of the hostnames had a NUL character embedded in it.
* Returns Error if there was an error.
*/
HostnameValidationResult validate_hostname(const char *hostname, const X509 *server_cert);
OPENSSL_HOSTNAME_VALIDATION_LINKAGE HostnameValidationResult validate_hostname(const char *hostname, const X509 *server_cert);

#endif