forked from duosecurity/duo_unix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable use of Apple's Trust Evaluation Agent for certificate validat…
…ion, to enforce proper CA pinning on OS X
- Loading branch information
Vikas Kumar
committed
May 12, 2014
1 parent
90caa47
commit 860bcb0
Showing
3 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# | ||
# Copyright (c) 2014 Duo Security | ||
# All rights reserved, all wrongs reversed | ||
# | ||
# SYNOPSIS | ||
# | ||
# AX_CHECK_X509([action-if-found[, action-if-not-found]]) | ||
# | ||
# DESCRIPTION | ||
# | ||
# Checks to see if the function X509_TEA_set_state exists in OPENSSL_LIBS | ||
# | ||
#serial 1 | ||
|
||
AU_ALIAS([CHECK_X509], [AX_CHECK_X509]) | ||
AC_DEFUN([AX_CHECK_X509],[ | ||
AC_MSG_CHECKING([whether X509_TEA_set_state runs]) | ||
save_LIBS="$LIBS" | ||
save_LDFLAGS="$LDFLAGS" | ||
save_CPPFLAGS="$CPPFLAGS" | ||
LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" | ||
LIBS="$OPENSSL_LIBS $LIBS" | ||
CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" | ||
AC_RUN_IFELSE( | ||
AC_LANG_PROGRAM([void X509_TEA_set_state(int change);], [X509_TEA_set_state(0);]), | ||
[ | ||
AC_MSG_RESULT([yes]) | ||
$1 | ||
], [ | ||
AC_MSG_RESULT([no]) | ||
$2 | ||
]) | ||
CPPFLAGS="$save_CPPFLAGS" | ||
LDFLAGS="$save_LDFLAGS" | ||
LIBS="$save_LIBS" | ||
]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters