Lines Matching refs:ca

1188 dnl Check if a default ca-bundle should be used
1191 dnl /etc/ssl/certs/ca-certificates.crt Debian systems
1192 dnl /etc/pki/tls/certs/ca-bundle.crt Redhat and Mandriva
1193 dnl /usr/share/ssl/certs/ca-bundle.crt old(er) Redhat
1194 dnl /usr/local/share/certs/ca-root-nss.crt MidnightBSD
1202 AC_ARG_WITH(ca-bundle,
1203 AS_HELP_STRING([--with-ca-bundle=FILE],
1204 [Absolute path to a file containing CA certificates (example: /etc/ca-bundle.crt)])
1205 AS_HELP_STRING([--without-ca-bundle], [Don't use a default CA bundle]),
1209 AC_MSG_ERROR([--with-ca-bundle=FILE requires a path to the CA bundle])
1213 AC_ARG_WITH(ca-path,
1214 AS_HELP_STRING([--with-ca-path=DIRECTORY],
1219 AS_HELP_STRING([--without-ca-path], [Don't use a default CA path]),
1223 AC_MSG_ERROR([--with-ca-path=DIRECTORY requires a path to the CA path directory])
1235 ca="$want_ca"
1238 dnl --with-ca-bundle given
1239 ca="$want_ca"
1242 dnl --with-ca-path given
1244 ca="no"
1247 dnl Both auto-detections can be skipped by --without-ca-*
1248 ca="no"
1253 dnl neither of the --with-ca-* options are provided
1259 cac="${prefix}/share/curl/curl-ca-bundle.crt"
1261 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
1264 for a in /etc/ssl/certs/ca-certificates.crt \
1265 /etc/pki/tls/certs/ca-bundle.crt \
1266 /usr/share/ssl/certs/ca-bundle.crt \
1267 /usr/local/share/certs/ca-root-nss.crt \
1271 ca="$a"
1276 AC_MSG_NOTICE([want $want_capath ca $ca])
1282 AC_MSG_WARN([skipped the ca-cert path detection when cross-compiling])
1286 if test "x$ca" = "xno" || test -f "$ca"; then
1310 if test "x$ca" != "xno"; then
1311 CURL_CA_BUNDLE="$ca"
1312 AC_DEFINE_UNQUOTED(CURL_CA_BUNDLE, "$ca", [Location of default ca bundle])
1314 AC_MSG_RESULT([$ca])
1318 AC_DEFINE_UNQUOTED(CURL_CA_PATH, "$capath", [Location of default ca path])
1321 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
1326 AC_ARG_WITH(ca-fallback,
1327 AS_HELP_STRING([--with-ca-fallback], [Use the built-in CA store of the SSL library])
1328 AS_HELP_STRING([--without-ca-fallback], [Don't use the built-in CA store of the SSL library]),
1331 AC_MSG_ERROR([--with-ca-fallback only allows yes or no as parameter])
1338 AC_MSG_ERROR([--with-ca-fallback only works with OpenSSL or GnuTLS])
1347 dnl Check if a ca-bundle should be embedded
1353 AC_ARG_WITH(ca-embed,
1354 AS_HELP_STRING([--with-ca-embed=FILE],
1355 …[Absolute path to a file containing CA certificates to embed in the curl tool (example: /etc/ca-bu…
1356 AS_HELP_STRING([--without-ca-embed], [Don't embed a default CA bundle in the curl tool]),
1360 AC_MSG_ERROR([--with-ca-embed=FILE requires a path to the CA bundle])