Lines Matching full:openssl

2 dnl OpenSSL support shared by top-level and sntp/configure.ac
5 dnl options --with-openssl-incdir, --with-openssl-libdir..
7 dnl Specifying --with-openssl-libdir or --with-openssl-incdir skips
16 dnl OPENSSL defined only if using OpenSSL
19 dnl ntp_openssl yes if using OpenSSL, no otherwise
20 dnl VER_SUFFIX "o" if using OpenSSL
23 dnl CFLAGS_NTP OpenSSL-specific flags added as needed, and
26 dnl including OpenSSL headers.
27 dnl CPPFLAGS_NTP OpenSSL -Iincludedir flags added as needed.
28 dnl LDADD_NTP OpenSSL -L and -l flags added as needed.
29 dnl LDFLAGS_NTP OpenSSL runpath flags as needed.
43 [+ =openssl,libcrypto]
48 with_crypto=openssl,libcrypto
51 [with_crypto=openssl,libcrypto] dnl if not given
54 [openssl-libdir],
56 [--with-openssl-libdir],
61 [openssl-incdir],
63 [--with-openssl-incdir],
93 AC_PATH_PROG([PATH_OPENSSL], [openssl])
103 AC_MSG_ERROR([only one of --with-openssl-{inc,lib}dir=... given - provide both or neither])
115 # if --with-openssl-{inc,lib}dir are not given:
116 # we should use pkg-config to find openssl
117 # if we don't have pkg-config, if openssl is in the base OS, use that.
122 # If PKG_CONFIG is notempty and we haven't been given openssl paths,
123 # then let's make sure that the openssl executable's path corresponds
124 # to the path in openssl.pc, and 'openssl version' matches the Version
125 # in openssl.pc. If $PKG_CONFIG tells us an INCPATH and/or a LIBPATH,
128 # harlan@ntp-testbuild.tal1> openssl version
129 # OpenSSL 1.1.1t 7 Feb 2023
130 # harlan@ntp-testbuild.tal1> grep 1.1.1t /ntpbuild/include/openssl/*
131 # /ntpbuild/include/openssl/opensslv.h:# define OPENSSL_VERSION_TEXT "OpenSSL 1.1.1t 7 Feb 2023"
135 # OpenSSL 1.1.1t 7 Feb 2023
136 # OpenSSL 1.1.1t 7 Feb 2023
137 # OpenSSL 1.1.1t 7 Feb 2023
143 # Having said this, do we really care if the openssl executable that
153 openssl)
159 overf=`openssl version`
166 oinc=`openssl --variable=includedir`
167 olib=`openssl --variable=libdir`
172 # /ntpbuild/include/openssl/opensslv.h:# define OPENSSL_VERSION_TEXT "OpenSSL 1.1.1t 7 Feb 2023"
175 # OpenSSL 1.1.1t 7 Feb 2023
179 # harlan@ntp-testbuild.tal1> echo '"OpenSSL 1.1.1t 7 Feb 2023"' | cut -f 2 -d\"
180 # OpenSSL 1.1.1t 7 Feb 2023
181 # harlan@ntp-testbuild.tal1> grep OPENSSL_VERSION_TEXT /ntpbuild/include/openssl/opensslv.h
182 # # define OPENSSL_VERSION_TEXT "OpenSSL 1.1.1t 7 Feb 2023"
188 pkgpath="`echo $PATH_OPENSSL | sed -e 's:/bin/openssl$::'`/lib/pkgconfig"
272 NTP_OPENSSL_VERBOSE_MSG([OpenSSL Phase I checks:])
311 ntp_ssl_libdir_search="/usr/lib /usr/lib/openssl /usr/sfw/lib"
347 openssl.pc/libcrypto.pc to PKG_CONFIG_PATH, or use the
348 --with-openssl-libdir=/some/path option to configure.
358 AC_MSG_NOTICE([Searching for openssl/evp.h without -I])
362 [openssl/evp.h],
371 AC_MSG_NOTICE([Searching for openssl include directory])
392 AC_MSG_NOTICE([Searching for openssl/evp.h in $i])
397 [openssl/evp.h],
408 openssl.pc/libcrypto.pc to PKG_CONFIG_PATH, or use the
409 -with-openssl-incdir=/some/path option to configure.
410 No usable openssl/evp.h found in any of the following direcotries:
415 AC_MSG_NOTICE([Found evp.h in $ntp_ssl_incdir/openssl])
436 #include "openssl/evp.h"
459 #include "openssl/evp.h"
485 #include "openssl/evp.h"
505 [Unable to run program using crypto, check openssl.pc
507 --with-openssl-libdir=/some/path option to configure.]
514 NTP_OPENSSL_VERBOSE_MSG([OpenSSL Phase II checks:])
545 #include "openssl/evp.h"
564 #include "openssl/evp.h"
583 dnl Older OpenSSL headers have a number of callback prototypes inside
615 [if OpenSSL triggers warnings],
620 #include "openssl/asn1_mac.h"
621 #include "openssl/bn.h"
622 #include "openssl/err.h"
623 #include "openssl/evp.h"
624 #include "openssl/pem.h"
625 #include "openssl/rand.h"
626 #include "openssl/x509v3.h"
653 dnl gcc without OpenSSL
664 [openssl/cmac.h],
672 AC_DEFINE([OPENSSL], [], [Use OpenSSL?])
673 dnl OpenSSL 3 deprecates a bunch of functions used by Autokey.
675 dnl for us because we do not want to require OpenSSL 3 yet.
678 dnl So, tell it to the hand, OpenSSL deprecation warnings...
680 [Suppress OpenSSL 3 deprecation warnings])
690 NTP_OPENSSL_VERBOSE_MSG([OpenSSL final checks:])