99 lines
2.6 KiB
C
99 lines
2.6 KiB
C
/* user_settings.h
|
|
*
|
|
* Copyright (C) 2006-2023 wolfSSL Inc.
|
|
*
|
|
* This file is part of wolfSSL.
|
|
*
|
|
* wolfSSL is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* wolfSSL is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
*/
|
|
|
|
#ifndef _USER_SETTINGS_H_
|
|
#define _USER_SETTINGS_H_
|
|
|
|
#define SERVER_IP "192.168.1.123"
|
|
#define CUSTOM_SERVER_CONNECTION
|
|
|
|
#define WOLFSSL_AZSPHERE
|
|
/* Client connects to the server with these details. */
|
|
#ifdef CUSTOM_SERVER_CONNECTION
|
|
#ifndef SERVER_IP
|
|
#define SERVER_IP "192.168.1.200" /* Local Test Server IP */
|
|
#endif
|
|
#ifndef DEFAULT_PORT
|
|
#define DEFAULT_PORT 11111
|
|
#endif
|
|
#define CERT ca_cert_der_2048
|
|
#define SIZEOF_CERT sizeof_ca_cert_der_2048
|
|
static const char msg[] = "Are you listening wolfSSL Server?";
|
|
#else
|
|
#ifndef SERVER_IP
|
|
#define SERVER_IP "www.wolfssl.com"
|
|
#endif
|
|
#ifndef DEFAULT_PORT
|
|
#define DEFAULT_PORT 443
|
|
#endif
|
|
#define CERT wolfssl_website_root_ca
|
|
#define SIZEOF_CERT sizeof_wolfssl_website_root_ca
|
|
static const char msg[] = "GET /index.html HTTP/1.1\r\n\r\n";
|
|
#endif
|
|
|
|
/* Math: Normal (!USE_FAST_MATH) */
|
|
#define SIZEOF_LONG_LONG 8
|
|
#define WC_RSA_BLINDING
|
|
#define ECC_TIMING_RESISTANT
|
|
|
|
/* Enable options */
|
|
#define HAVE_CHACHA
|
|
#define HAVE_POLY1305
|
|
#define HAVE_ECC
|
|
#define HAVE_SUPPORTED_CURVES
|
|
#define HAVE_TLS_EXTENSIONS
|
|
#define HAVE_ONE_TIME_AUTH
|
|
#define HAVE_TRUNCATED_HMAC
|
|
#define HAVE_EXTENDED_MASTER
|
|
#define HAVE_ALPN
|
|
#define HAVE_SNI
|
|
#define HAVE_OCSP
|
|
#define HAVE_AESGCM
|
|
|
|
/* Disable options */
|
|
#define NO_PWDBASED
|
|
#define NO_DSA
|
|
#define NO_DES3
|
|
#define NO_RC4
|
|
#define NO_MD4
|
|
|
|
/* Benchmark / Testing */
|
|
#define BENCH_EMBEDDED
|
|
#define USE_CERT_BUFFERS_2048
|
|
#define USE_CERT_BUFFERS_256
|
|
|
|
/* OS */
|
|
#define SINGLE_THREADED
|
|
|
|
/* Filesystem */
|
|
#define NO_FILESYSTEM
|
|
|
|
/* Debug */
|
|
#include <applibs/log.h>
|
|
#define printf Log_Debug
|
|
#define WOLFIO_DEBUG
|
|
|
|
#define NO_MAIN_DRIVER
|
|
#define WOLFSSL_IGNORE_FILE_WARN /* Added per peer review as a guard against
|
|
* future warnings, PR #5778 */
|
|
|
|
#endif /* _USER_SETTINGS_H_ */
|