Skip to content

Commit

Permalink
Only compile X509_check_* functions when building against openssl < 1…
Browse files Browse the repository at this point in the history
….0.2
  • Loading branch information
Gabriel Russell committed Mar 9, 2015
1 parent 8feeee5 commit 9814818
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions hostname.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ static int do_x509_check(X509 *x, const unsigned char *chk, size_t chklen,
return 0;
}

#if OPENSSL_VERSION_NUMBER < 0x1000200fL

int X509_check_host(X509 *x, const unsigned char *chk, size_t chklen,
unsigned int flags)
{
Expand All @@ -364,4 +366,6 @@ int X509_check_ip(X509 *x, const unsigned char *chk, size_t chklen,
return do_x509_check(x, chk, chklen, flags, GEN_IPADD);
}

#endif /* OPENSSL_VERSION_NUMBER < 0x1000200fL */

#endif

0 comments on commit 9814818

Please sign in to comment.