Skip to content

Commit f088f60

Browse files
committed
【添加】由于版本升级遗漏提交的文件
1 parent fcbb5e5 commit f088f60

File tree

9 files changed

+446
-0
lines changed

9 files changed

+446
-0
lines changed

extmod/axtls-include/config.h

Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
/*
2+
* Automatically generated header file: don't edit
3+
*/
4+
5+
#define HAVE_DOT_CONFIG 1
6+
#define CONFIG_PLATFORM_LINUX 1
7+
#undef CONFIG_PLATFORM_CYGWIN
8+
#undef CONFIG_PLATFORM_WIN32
9+
10+
/*
11+
* General Configuration
12+
*/
13+
#define PREFIX "/usr/local"
14+
#undef CONFIG_DEBUG
15+
#undef CONFIG_STRIP_UNWANTED_SECTIONS
16+
#undef CONFIG_VISUAL_STUDIO_7_0
17+
#undef CONFIG_VISUAL_STUDIO_8_0
18+
#undef CONFIG_VISUAL_STUDIO_10_0
19+
#define CONFIG_VISUAL_STUDIO_7_0_BASE ""
20+
#define CONFIG_VISUAL_STUDIO_8_0_BASE ""
21+
#define CONFIG_VISUAL_STUDIO_10_0_BASE ""
22+
#define CONFIG_EXTRA_CFLAGS_OPTIONS ""
23+
#define CONFIG_EXTRA_LDFLAGS_OPTIONS ""
24+
25+
/*
26+
* SSL Library
27+
*/
28+
#undef CONFIG_SSL_SERVER_ONLY
29+
#undef CONFIG_SSL_CERT_VERIFICATION
30+
#undef CONFIG_SSL_FULL_MODE
31+
#define CONFIG_SSL_SKELETON_MODE 1
32+
#define CONFIG_SSL_ENABLE_SERVER 1
33+
#define CONFIG_SSL_ENABLE_CLIENT 1
34+
#undef CONFIG_SSL_DIAGNOSTICS
35+
#define CONFIG_SSL_PROT_LOW 1
36+
#undef CONFIG_SSL_PROT_MEDIUM
37+
#undef CONFIG_SSL_PROT_HIGH
38+
#define CONFIG_SSL_AES 1
39+
#define CONFIG_SSL_USE_DEFAULT_KEY 1
40+
#define CONFIG_SSL_PRIVATE_KEY_LOCATION ""
41+
#define CONFIG_SSL_PRIVATE_KEY_PASSWORD ""
42+
#define CONFIG_SSL_X509_CERT_LOCATION ""
43+
#undef CONFIG_SSL_GENERATE_X509_CERT
44+
#define CONFIG_SSL_X509_COMMON_NAME ""
45+
#define CONFIG_SSL_X509_ORGANIZATION_NAME ""
46+
#define CONFIG_SSL_X509_ORGANIZATION_UNIT_NAME ""
47+
#undef CONFIG_SSL_HAS_PEM
48+
#undef CONFIG_SSL_USE_PKCS12
49+
#define CONFIG_SSL_EXPIRY_TIME
50+
#define CONFIG_X509_MAX_CA_CERTS 0
51+
#define CONFIG_SSL_MAX_CERTS 3
52+
#undef CONFIG_SSL_CTX_MUTEXING
53+
#undef CONFIG_USE_DEV_URANDOM
54+
#undef CONFIG_WIN32_USE_CRYPTO_LIB
55+
#undef CONFIG_OPENSSL_COMPATIBLE
56+
#undef CONFIG_PERFORMANCE_TESTING
57+
#undef CONFIG_SSL_TEST
58+
#undef CONFIG_AXTLSWRAP
59+
#undef CONFIG_AXHTTPD
60+
#undef CONFIG_HTTP_STATIC_BUILD
61+
#define CONFIG_HTTP_PORT
62+
#define CONFIG_HTTP_HTTPS_PORT
63+
#define CONFIG_HTTP_SESSION_CACHE_SIZE
64+
#define CONFIG_HTTP_WEBROOT ""
65+
#define CONFIG_HTTP_TIMEOUT
66+
#undef CONFIG_HTTP_HAS_CGI
67+
#define CONFIG_HTTP_CGI_EXTENSIONS ""
68+
#undef CONFIG_HTTP_ENABLE_LUA
69+
#define CONFIG_HTTP_LUA_PREFIX ""
70+
#undef CONFIG_HTTP_BUILD_LUA
71+
#define CONFIG_HTTP_CGI_LAUNCHER ""
72+
#undef CONFIG_HTTP_DIRECTORIES
73+
#undef CONFIG_HTTP_HAS_AUTHORIZATION
74+
#undef CONFIG_HTTP_HAS_IPV6
75+
#undef CONFIG_HTTP_ENABLE_DIFFERENT_USER
76+
#define CONFIG_HTTP_USER ""
77+
#undef CONFIG_HTTP_VERBOSE
78+
#undef CONFIG_HTTP_IS_DAEMON
79+
80+
/*
81+
* Language Bindings
82+
*/
83+
#undef CONFIG_BINDINGS
84+
#undef CONFIG_CSHARP_BINDINGS
85+
#undef CONFIG_VBNET_BINDINGS
86+
#define CONFIG_DOT_NET_FRAMEWORK_BASE ""
87+
#undef CONFIG_JAVA_BINDINGS
88+
#define CONFIG_JAVA_HOME ""
89+
#undef CONFIG_PERL_BINDINGS
90+
#define CONFIG_PERL_CORE ""
91+
#define CONFIG_PERL_LIB ""
92+
#undef CONFIG_LUA_BINDINGS
93+
#define CONFIG_LUA_CORE ""
94+
95+
/*
96+
* Samples
97+
*/
98+
#undef CONFIG_SAMPLES
99+
#undef CONFIG_C_SAMPLES
100+
#undef CONFIG_CSHARP_SAMPLES
101+
#undef CONFIG_VBNET_SAMPLES
102+
#undef CONFIG_JAVA_SAMPLES
103+
#undef CONFIG_PERL_SAMPLES
104+
#undef CONFIG_LUA_SAMPLES
105+
#undef CONFIG_BIGINT_CLASSICAL
106+
#undef CONFIG_BIGINT_MONTGOMERY
107+
#undef CONFIG_BIGINT_BARRETT
108+
#undef CONFIG_BIGINT_CRT
109+
#undef CONFIG_BIGINT_KARATSUBA
110+
#define MUL_KARATSUBA_THRESH
111+
#define SQU_KARATSUBA_THRESH
112+
#undef CONFIG_BIGINT_SLIDING_WINDOW
113+
#undef CONFIG_BIGINT_SQUARE
114+
#undef CONFIG_BIGINT_CHECK_ON
115+
#undef CONFIG_INTEGER_32BIT
116+
#undef CONFIG_INTEGER_16BIT
117+
#undef CONFIG_INTEGER_8BIT

extmod/axtls-include/version.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#define AXTLS_VERSION "(no version)"

extmod/lwip-include/arch/cc.h

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#ifndef MICROPY_INCLUDED_EXTMOD_LWIP_INCLUDE_ARCH_CC_H
2+
#define MICROPY_INCLUDED_EXTMOD_LWIP_INCLUDE_ARCH_CC_H
3+
4+
#include <stdint.h>
5+
6+
// Generate lwip's internal types from stdint
7+
8+
typedef uint8_t u8_t;
9+
typedef int8_t s8_t;
10+
typedef uint16_t u16_t;
11+
typedef int16_t s16_t;
12+
typedef uint32_t u32_t;
13+
typedef int32_t s32_t;
14+
15+
typedef u32_t mem_ptr_t;
16+
17+
#define U16_F "hu"
18+
#define S16_F "hd"
19+
#define X16_F "hx"
20+
#define U32_F "u"
21+
#define S32_F "d"
22+
#define X32_F "x"
23+
24+
#define X8_F "02x"
25+
#define SZT_F "u"
26+
27+
#define BYTE_ORDER LITTLE_ENDIAN
28+
29+
#define LWIP_CHKSUM_ALGORITHM 2
30+
31+
#include <assert.h>
32+
#define LWIP_PLATFORM_DIAG(x)
33+
#define LWIP_PLATFORM_ASSERT(x) { assert(1); }
34+
35+
//#define PACK_STRUCT_FIELD(x) x __attribute__((packed))
36+
#define PACK_STRUCT_FIELD(x) x
37+
#define PACK_STRUCT_STRUCT __attribute__((packed))
38+
#define PACK_STRUCT_BEGIN
39+
#define PACK_STRUCT_END
40+
41+
#endif // MICROPY_INCLUDED_EXTMOD_LWIP_INCLUDE_ARCH_CC_H

extmod/lwip-include/arch/perf.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#ifndef MICROPY_INCLUDED_EXTMOD_LWIP_INCLUDE_ARCH_PERF_H
2+
#define MICROPY_INCLUDED_EXTMOD_LWIP_INCLUDE_ARCH_PERF_H
3+
4+
#define PERF_START /* null definition */
5+
#define PERF_STOP(x) /* null definition */
6+
7+
#endif // MICROPY_INCLUDED_EXTMOD_LWIP_INCLUDE_ARCH_PERF_H

extmod/lwip-include/lwipopts.h

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#ifndef MICROPY_INCLUDED_EXTMOD_LWIP_INCLUDE_LWIPOPTS_H
2+
#define MICROPY_INCLUDED_EXTMOD_LWIP_INCLUDE_LWIPOPTS_H
3+
4+
#include <py/mpconfig.h>
5+
#include <py/misc.h>
6+
#include <py/mphal.h>
7+
8+
// We're running without an OS for this port. We don't provide any services except light protection.
9+
#define NO_SYS 1
10+
11+
#define SYS_LIGHTWEIGHT_PROT 1
12+
#include <stdint.h>
13+
typedef uint32_t sys_prot_t;
14+
15+
#define TCP_LISTEN_BACKLOG 1
16+
17+
// We'll put these into a proper ifdef once somebody implements an ethernet driver
18+
#define LWIP_ARP 0
19+
#define LWIP_ETHERNET 0
20+
21+
#define LWIP_DNS 1
22+
23+
#define LWIP_NETCONN 0
24+
#define LWIP_SOCKET 0
25+
26+
#ifdef MICROPY_PY_LWIP_SLIP
27+
#define LWIP_HAVE_SLIPIF 1
28+
#endif
29+
30+
// For now, we can simply define this as a macro for the timer code. But this function isn't
31+
// universal and other ports will need to do something else. It may be necessary to move
32+
// things like this into a port-provided header file.
33+
#define sys_now mp_hal_ticks_ms
34+
35+
#endif // MICROPY_INCLUDED_EXTMOD_LWIP_INCLUDE_LWIPOPTS_H

extmod/uzlib/defl_static.h

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/*
2+
* Copyright (c) uzlib authors
3+
*
4+
* This software is provided 'as-is', without any express
5+
* or implied warranty. In no event will the authors be
6+
* held liable for any damages arising from the use of
7+
* this software.
8+
*
9+
* Permission is granted to anyone to use this software
10+
* for any purpose, including commercial applications,
11+
* and to alter it and redistribute it freely, subject to
12+
* the following restrictions:
13+
*
14+
* 1. The origin of this software must not be
15+
* misrepresented; you must not claim that you
16+
* wrote the original software. If you use this
17+
* software in a product, an acknowledgment in
18+
* the product documentation would be appreciated
19+
* but is not required.
20+
*
21+
* 2. Altered source versions must be plainly marked
22+
* as such, and must not be misrepresented as
23+
* being the original software.
24+
*
25+
* 3. This notice may not be removed or altered from
26+
* any source distribution.
27+
*/
28+
29+
/* This files contains type declaration and prototypes for defl_static.c.
30+
They may be altered/distinct from the originals used in PuTTY source
31+
code. */
32+
33+
struct Outbuf {
34+
unsigned char *outbuf;
35+
int outlen, outsize;
36+
unsigned long outbits;
37+
int noutbits;
38+
int comp_disabled;
39+
};
40+
41+
void outbits(struct Outbuf *out, unsigned long bits, int nbits);
42+
void zlib_start_block(struct Outbuf *ctx);
43+
void zlib_finish_block(struct Outbuf *ctx);
44+
void zlib_literal(struct Outbuf *ectx, unsigned char c);
45+
void zlib_match(struct Outbuf *ectx, int distance, int len);

extmod/uzlib/tinf_compat.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* This header contains compatibility defines for the original tinf API
2+
and uzlib 2.x and below API. These defines are deprecated and going
3+
to be removed in the future, so applications should migrate to new
4+
uzlib API. */
5+
#define TINF_DATA struct uzlib_uncomp
6+
7+
#define destSize dest_size
8+
#define destStart dest_start
9+
#define readSource source_read_cb

0 commit comments

Comments
 (0)