mirror of https://github.com/openssl/openssl.git
GitHub CI / check_update (push) Has been cancelled
Details
GitHub CI / check_docs (push) Has been cancelled
Details
GitHub CI / check-ansi (push) Has been cancelled
Details
GitHub CI / basic_gcc (push) Has been cancelled
Details
GitHub CI / basic_clang (push) Has been cancelled
Details
GitHub CI / linux-arm64 (push) Has been cancelled
Details
GitHub CI / freebsd-x86_64 (push) Has been cancelled
Details
GitHub CI / minimal (push) Has been cancelled
Details
GitHub CI / no-deprecated (push) Has been cancelled
Details
GitHub CI / no-shared-ubuntu (push) Has been cancelled
Details
GitHub CI / no-shared-macos (macos-13) (push) Has been cancelled
Details
GitHub CI / no-shared-macos (macos-14) (push) Has been cancelled
Details
GitHub CI / non-caching (push) Has been cancelled
Details
GitHub CI / address_ub_sanitizer (push) Has been cancelled
Details
GitHub CI / fuzz_tests (push) Has been cancelled
Details
GitHub CI / memory_sanitizer (push) Has been cancelled
Details
GitHub CI / threads_sanitizer (push) Has been cancelled
Details
GitHub CI / enable_non-default_options (push) Has been cancelled
Details
GitHub CI / full_featured (push) Has been cancelled
Details
GitHub CI / no-legacy (push) Has been cancelled
Details
GitHub CI / legacy (push) Has been cancelled
Details
GitHub CI / out-of-readonly-source-and-install-ubuntu (push) Has been cancelled
Details
GitHub CI / out-of-readonly-source-and-install-macos (macos-13) (push) Has been cancelled
Details
GitHub CI / out-of-readonly-source-and-install-macos (macos-14) (push) Has been cancelled
Details
GitHub CI / external-tests-misc (push) Has been cancelled
Details
GitHub CI / external-tests-providers (push) Has been cancelled
Details
GitHub CI / external-tests-pyca (3.9, 1.51.0) (push) Has been cancelled
Details
Compiler Zoo CI / compiler (map[cc:clang-11 distro:ubuntu-22.04]) (push) Has been cancelled
Details
Compiler Zoo CI / compiler (map[cc:clang-12 distro:ubuntu-22.04]) (push) Has been cancelled
Details
Compiler Zoo CI / compiler (map[cc:clang-13 distro:ubuntu-22.04]) (push) Has been cancelled
Details
Compiler Zoo CI / compiler (map[cc:clang-14 distro:ubuntu-22.04]) (push) Has been cancelled
Details
Compiler Zoo CI / compiler (map[cc:clang-15 distro:ubuntu-22.04 llvm-ppa-name:jammy]) (push) Has been cancelled
Details
Compiler Zoo CI / compiler (map[cc:clang-16 distro:ubuntu-22.04 llvm-ppa-name:jammy]) (push) Has been cancelled
Details
Compiler Zoo CI / compiler (map[cc:clang-17 distro:ubuntu-22.04 llvm-ppa-name:jammy]) (push) Has been cancelled
Details
Compiler Zoo CI / compiler (map[cc:gcc-10 distro:ubuntu-22.04]) (push) Has been cancelled
Details
Compiler Zoo CI / compiler (map[cc:gcc-11 distro:ubuntu-22.04]) (push) Has been cancelled
Details
Compiler Zoo CI / compiler (map[cc:gcc-12 distro:ubuntu-22.04]) (push) Has been cancelled
Details
Compiler Zoo CI / compiler (map[cc:gcc-13 distro:ubuntu-22.04 gcc-ppa-name:ubuntu-toolchain-r/test]) (push) Has been cancelled
Details
Compiler Zoo CI / compiler (map[cc:gcc-9 distro:ubuntu-22.04]) (push) Has been cancelled
Details
Cross Compile / cross-compilation (map[arch:aarch64-linux-gnu fips:no libs:libc6-dev-arm64-cross target:linux-aarch64]) (push) Has been cancelled
Details
Cross Compile / cross-compilation (map[arch:alpha-linux-gnu fips:no libs:libc6.1-dev-alpha-cross target:linux-alpha-gcc]) (push) Has been cancelled
Details
Cross Compile / cross-compilation (map[arch:arm-linux-gnueabi fips:no libs:libc6-dev-armel-cross target:linux-armv4 tests:-test_includes -test_store -test_x509_store]) (push) Has been cancelled
Details
Cross Compile / cross-compilation (map[arch:arm-linux-gnueabihf fips:no libs:libc6-dev-armhf-cross target:linux-armv4 tests:-test_includes -test_store -test_x509_store]) (push) Has been cancelled
Details
Cross Compile / cross-compilation (map[arch:hppa-linux-gnu fips:no libs:libc6-dev-hppa-cross target:-static -O1 linux-generic32 tests:-test_includes -test_store -test_x509_store]) (push) Has been cancelled
Details
Cross Compile / cross-compilation (map[arch:hppa-linux-gnu libs:libc6-dev-hppa-cross target:linux-generic32 tests:none]) (push) Has been cancelled
Details
Cross Compile / cross-compilation (map[arch:i386-pc-msdosdjgpp libs:libc-djgpp-dev libwatt-djgpp-dev djgpp-utils ppa:jwt27/djgpp-toolchain target:no-threads 386 DJGPP tests:none]) (push) Has been cancelled
Details
Cross Compile / cross-compilation (map[arch:m68k-linux-gnu fips:no libs:libc6-dev-m68k-cross target:-static -m68040 linux-latomic -Wno-stringop-overflow tests:-test_includes -test_store -test_x509_store]) (push) Has been cancelled
Details
Cross Compile / cross-compilation (map[arch:m68k-linux-gnu libs:libc6-dev-m68k-cross target:-mcfv4e -mxgot linux-latomic -Wno-stringop-overflow no-quic tests:none]) (push) Has been cancelled
Details
Cross Compile / cross-compilation (map[arch:mips-linux-gnu fips:no libs:libc6-dev-mips-cross target:-static linux-mips32 tests:-test_includes -test_store -test_x509_store]) (push) Has been cancelled
Details
Cross Compile / cross-compilation (map[arch:mips-linux-gnu libs:libc6-dev-mips-cross target:linux-mips32 tests:none]) (push) Has been cancelled
Details
Cross Compile / cross-compilation (map[arch:mips64-linux-gnuabi64 fips:no libs:libc6-dev-mips64-cross target:-static linux64-mips64]) (push) Has been cancelled
Details
Cross Compile / cross-compilation (map[arch:mips64-linux-gnuabi64 libs:libc6-dev-mips64-cross target:linux64-mips64 tests:none]) (push) Has been cancelled
Details
Cross Compile / cross-compilation (map[arch:mipsel-linux-gnu fips:no libs:libc6-dev-mipsel-cross target:linux-mips32 tests:-test_includes -test_store -test_x509_store]) (push) Has been cancelled
Details
Cross Compile / cross-compilation (map[arch:powerpc64le-linux-gnu fips:no libs:libc6-dev-ppc64el-cross target:linux-ppc64le]) (push) Has been cancelled
Details
Cross Compile / cross-compilation (map[arch:riscv64-linux-gnu fips:no libs:libc6-dev-riscv64-cross target:linux64-riscv64]) (push) Has been cancelled
Details
Cross Compile / cross-compilation (map[arch:s390x-linux-gnu fips:no libs:libc6-dev-s390x-cross target:linux64-s390x -Wno-stringop-overflow]) (push) Has been cancelled
Details
Cross Compile / cross-compilation (map[arch:sh4-linux-gnu fips:no libs:libc6-dev-sh4-cross target:no-async linux-latomic tests:-test_includes -test_store -test_x509_store]) (push) Has been cancelled
Details
Cross Compile / cross-compilation (map[arch:sparc64-linux-gnu libs:libc6-dev-sparc64-cross target:linux64-sparcv9 tests:none]) (push) Has been cancelled
Details
Fuzz-checker CI / fuzz-checker (map[cc:afl-clang-fast config:enable-fuzz-afl no-module install:afl++ name:AFL]) (push) Has been cancelled
Details
Fuzz-checker CI / fuzz-checker (map[cc:clang-18 config:enable-fuzz-libfuzzer enable-asan enable-ubsan -fno-sanitize=function -fsanitize-coverage=trace-cmp -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION extra:enable-fips enable-ec_nistp_64_gcc_128 -fno-sanitize=alignment ena… (push) Has been cancelled
Details
Fuzz-checker CI / fuzz-checker (map[cc:clang-18 config:enable-fuzz-libfuzzer enable-asan enable-ubsan -fno-sanitize=function install:libfuzzer-18-dev libs:--with-fuzzer-lib=/usr/lib/llvm-18/lib/libFuzzer.a --with-fuzzer-include=/usr/include/clang/18/include/fuzzer linke… (push) Has been cancelled
Details
CIFuzz / Fuzzing (push) Has been cancelled
Details
Run-checker CI / run-checker (enable-trace enable-fips) (push) Has been cancelled
Details
Run-checker CI / run-checker (no-cmp) (push) Has been cancelled
Details
Run-checker CI / run-checker (no-cms) (push) Has been cancelled
Details
Run-checker CI / run-checker (no-default-thread-pool) (push) Has been cancelled
Details
Run-checker CI / run-checker (no-dgram) (push) Has been cancelled
Details
Run-checker CI / run-checker (no-dh) (push) Has been cancelled
Details
Run-checker CI / run-checker (no-dtls) (push) Has been cancelled
Details
Run-checker CI / run-checker (no-ec) (push) Has been cancelled
Details
Run-checker CI / run-checker (no-ecx) (push) Has been cancelled
Details
Run-checker CI / run-checker (no-http) (push) Has been cancelled
Details
Run-checker CI / run-checker (no-legacy) (push) Has been cancelled
Details
Run-checker CI / run-checker (no-ml-dsa) (push) Has been cancelled
Details
Run-checker CI / run-checker (no-ml-kem) (push) Has been cancelled
Details
Run-checker CI / run-checker (no-quic) (push) Has been cancelled
Details
Run-checker CI / run-checker (no-sock) (push) Has been cancelled
Details
Run-checker CI / run-checker (no-ssl-trace) (push) Has been cancelled
Details
Run-checker CI / run-checker (no-stdio) (push) Has been cancelled
Details
Run-checker CI / run-checker (no-thread-pool) (push) Has been cancelled
Details
Run-checker CI / run-checker (no-threads) (push) Has been cancelled
Details
Run-checker CI / run-checker (no-tls) (push) Has been cancelled
Details
Run-checker CI / run-checker (no-tls1_2) (push) Has been cancelled
Details
Run-checker CI / run-checker (no-tls1_3) (push) Has been cancelled
Details
Run-checker CI / run-checker (no-ui) (push) Has been cancelled
Details
Run-checker merge / run-checker (enable-asan enable-ubsan no-shared no-asm -DOPENSSL_SMALL_FOOTPRINT -fno-sanitize=function) (push) Has been cancelled
Details
Run-checker merge / run-checker (enable-pie) (push) Has been cancelled
Details
Run-checker merge / run-checker (enable-ubsan no-asm -DOPENSSL_SMALL_FOOTPRINT -fno-sanitize=function) (push) Has been cancelled
Details
Run-checker merge / run-checker (enable-weak-ssl-ciphers) (push) Has been cancelled
Details
Run-checker merge / run-checker (enable-zlib) (push) Has been cancelled
Details
Run-checker merge / run-checker (no-dso) (push) Has been cancelled
Details
Run-checker merge / run-checker (no-dynamic-engine) (push) Has been cancelled
Details
Run-checker merge / run-checker (no-ec2m enable-fips) (push) Has been cancelled
Details
Run-checker merge / run-checker (no-engine no-shared) (push) Has been cancelled
Details
Run-checker merge / run-checker (no-err) (push) Has been cancelled
Details
Run-checker merge / run-checker (no-filenames) (push) Has been cancelled
Details
Run-checker merge / run-checker (no-integrity-only-ciphers) (push) Has been cancelled
Details
Run-checker merge / run-checker (no-module) (push) Has been cancelled
Details
Run-checker merge / run-checker (no-ocsp) (push) Has been cancelled
Details
Run-checker merge / run-checker (no-pinshared) (push) Has been cancelled
Details
Run-checker merge / run-checker (no-srp) (push) Has been cancelled
Details
Run-checker merge / run-checker (no-srtp) (push) Has been cancelled
Details
Run-checker merge / run-checker (no-ts) (push) Has been cancelled
Details
Run-checker merge / jitter (push) Has been cancelled
Details
Run-checker merge / threads_sanitizer_atomic_fallback (push) Has been cancelled
Details
Windows GitHub CI / shared (map[arch:win32 config:--strict-warnings no-fips os:windows-2022]) (push) Has been cancelled
Details
Windows GitHub CI / shared (map[arch:win64 config:enable-fips no-thread-pool no-quic os:windows-2022]) (push) Has been cancelled
Details
Windows GitHub CI / shared (map[arch:win64 config:enable-fips os:windows-2019]) (push) Has been cancelled
Details
Windows GitHub CI / plain (windows-2022) (push) Has been cancelled
Details
Windows GitHub CI / minimal (windows-2019) (push) Has been cancelled
Details
Windows GitHub CI / cygwin (windows-2019, map[arch:win64 config:-DCMAKE_C_COMPILER=gcc --strict-warnings enable-demos no-fips]) (push) Has been cancelled
Details
Windows Compression GitHub CI / zstd (push) Has been cancelled
Details
Windows Compression GitHub CI / brotli (push) Has been cancelled
Details
On the server side we were changing the handshake rx secret a little late. This meant the application was forced to call SSL_do_handshake() again even if there was nothing to read in order to get the secret. We move it a little earlier int the process to avoid this. Fixes the issue described in: https://github.com/ngtcp2/ngtcp2/pull/1582#issuecomment-2735950083 Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/27101) |
||
---|---|---|
.. | ||
README.md | ||
extensions.c | ||
extensions_clnt.c | ||
extensions_cust.c | ||
extensions_srvr.c | ||
statem.c | ||
statem_clnt.c | ||
statem_dtls.c | ||
statem_lib.c | ||
statem_local.h | ||
statem_srvr.c |
README.md
State Machine Design
This file provides some guidance on the thinking behind the design of the state machine code to aid future maintenance.
The state machine code replaces an older state machine present in OpenSSL versions 1.0.2 and below. The new state machine has the following objectives:
- Remove duplication of state code between client and server
- Remove duplication of state code between TLS and DTLS
- Simplify transitions and bring the logic together in a single location so that it is easier to validate
- Remove duplication of code between each of the message handling functions
- Receive a message first and then work out whether that is a valid transition - not the other way around (the other way causes lots of issues where we are expecting one type of message next but actually get something else)
- Separate message flow state from handshake state (in order to better
understand each)
- message flow state = when to flush buffers; handling restarts in the event of NBIO events; handling the common flow of steps for reading a message and the common flow of steps for writing a message etc
- handshake state = what handshake message are we working on now
- Control complexity: only the state machine can change state: keep all the state changes local to the state machine component
The message flow state machine is divided into a reading sub-state machine and a writing sub-state machine. See the source comments in statem.c for a more detailed description of the various states and transitions possible.
Conceptually the state machine component is designed as follows:
libssl
|
-------------------------|-----statem.h------------------------------------
|
_______V____________________
| |
| statem.c |
| |
| Core state machine code |
|____________________________|
statem_local.h ^ ^
_________| |_______
| |
_____________|____________ _____________|____________
| | | |
| statem_clnt.c | | statem_srvr.c |
| | | |
| TLS/DTLS client specific | | TLS/DTLS server specific |
| state machine code | | state machine code |
|__________________________| |__________________________|
| |_______________|__ |
| ________________| | |
| | | |
____________V_______V________ ________V______V_______________
| | | |
| statem_lib.c | | statem_dtls.c |
| | | |
| Non core functions common | | Non core functions common to |
| to both servers and clients | | both DTLS servers and clients |
|_____________________________| |_______________________________|