#include "first.h"
-#include "testtrace.h"
-
#ifdef USE_OPENSSL
#include <openssl/ssl.h>
#ifdef T578_ENABLED
+#include "testtrace.h"
+
static struct t758_ctx {
int socket_calls;
int max_socket_calls;
***************************************************************************/
#include "unitcheck.h"
+#if defined(_WIN32) || defined(MSDOS)
+
#include "tool_cfgable.h"
#include "tool_doswin.h"
-#if defined(_WIN32) || defined(MSDOS)
static char *getflagstr(int flags)
{
char *buf = curlx_malloc(256);
*
***************************************************************************/
#include "unitcheck.h"
-#include "netrc.h"
#ifndef CURL_DISABLE_NETRC
+#include "netrc.h"
+
static void t1304_stop(char **password, char **login)
{
Curl_safefree(*password);
***************************************************************************/
#include "unitcheck.h"
-#include "curl_fnmatch.h"
-
#ifndef CURL_DISABLE_FTP
+#include "curl_fnmatch.h"
+
/*
CURL_FNMATCH_MATCH 0
CURL_FNMATCH_NOMATCH 1
***************************************************************************/
#include "unitcheck.h"
-#include "vtls/x509asn1.h"
-
#if defined(USE_GNUTLS) || defined(USE_SCHANNEL) || defined(USE_MBEDTLS)
+#include "vtls/x509asn1.h"
+
struct test_spec {
const char *input;
const char *exp_output;
***************************************************************************/
#include "unitcheck.h"
-#include "vtls/x509asn1.h"
-
#if defined(USE_GNUTLS) || defined(USE_SCHANNEL) || defined(USE_MBEDTLS)
+#include "vtls/x509asn1.h"
+
struct test1657_spec {
CURLcode (*setbuf)(const struct test1657_spec *spec, struct dynbuf *buf);
size_t n;
***************************************************************************/
#include "unitcheck.h"
+#if !defined(CURL_DISABLE_HTTP) && !defined(CURL_DISABLE_HSTS)
+
#include "urldata.h"
#include "hsts.h"
-#if defined(CURL_DISABLE_HTTP) || defined(CURL_DISABLE_HSTS)
-static CURLcode test_unit1660(const char *arg)
-{
- UNITTEST_BEGIN_SIMPLE
- puts("nothing to do when HTTP or HSTS are disabled");
- UNITTEST_END_SIMPLE
-}
-#else
-
static void showsts(struct stsentry *e, const char *chost)
{
if(!e)
UNITTEST_END(curl_global_cleanup())
}
+#else
+static CURLcode test_unit1660(const char *arg)
+{
+ UNITTEST_BEGIN_SIMPLE
+ puts("nothing to do when HTTP or HSTS are disabled");
+ UNITTEST_END_SIMPLE
+}
#endif
***************************************************************************/
#include "unitcheck.h"
+#ifndef CURL_DISABLE_HTTP
+
#include "urldata.h"
#include "http1.h"
#include "curl_trc.h"
-#ifndef CURL_DISABLE_HTTP
static void check_eq(const char *s, const char *exp_s, const char *name)
{
if(s && exp_s) {