compat.wolfssl
#includewolfSSL — portable TLS/crypto library (static source build, TLS 1.3)
#include <wolfssl/options.h>
mcpp add compat.wolfssl@5.9.4
用法
来自本仓库自己的测试项目 —— CI 真的编译并运行过,不是为了网站写的。
// compat.wolfssl: the configuration reaches the consumer, and the library
// behaves. Every assertion affects the exit status.
// Included explicitly because this is the file that states the feature set;
// the package's default-implied define also makes settings.h pull it in.
#include <wolfssl/options.h>
#include <wolfssl/ssl.h>
#include <wolfssl/version.h>
#include <wolfssl/wolfcrypt/aes.h>
#include <wolfssl/wolfcrypt/ecc.h>
#include <wolfssl/wolfcrypt/random.h>
#include <wolfssl/wolfcrypt/sha256.h>
// Compile-time assertions: a consumer that did not inherit the package's
// configuration would fail here rather than at run time.
#ifndef WOLFSSL_TLS13
#error "compat.wolfssl: the consumer did not inherit WOLFSSL_TLS13"
#endif
#ifndef HAVE_AESGCM
#error "compat.wolfssl: the consumer did not inherit HAVE_AESGCM"
#endif
// …
tests/examples/wolfssl/tests/wolfssl.cpp · 项目 tests/examples/wolfssl
构建
- targets
wolfssl (lib)- language
c++23- C standard
c11- import std
- no
- include dirs
*, mcpp_generated
特性
| 特性 | 声明了 |
|---|---|
| configured | defines |
| default | implies |
源文件 (38)
*/src/internal.c*/src/wolfio.c*/src/keys.c*/src/ssl.c*/src/ocsp.c*/src/tls.c*/src/tls13.c*/wolfcrypt/src/hmac.c*/wolfcrypt/src/hash.c*/wolfcrypt/src/cpuid.c*/wolfcrypt/src/kdf.c*/wolfcrypt/src/random.c*/wolfcrypt/src/sha256.c*/wolfcrypt/src/sha.c*/wolfcrypt/src/sha512.c*/wolfcrypt/src/sha3.c*/wolfcrypt/src/rsa.c*/wolfcrypt/src/sp_int.c*/wolfcrypt/src/integer.c*/wolfcrypt/src/ecc.c*/wolfcrypt/src/aes.c*/wolfcrypt/src/logging.c*/wolfcrypt/src/wc_port.c*/wolfcrypt/src/error.c*/wolfcrypt/src/wc_encrypt.c*/wolfcrypt/src/signature.c*/wolfcrypt/src/wolfmath.c*/wolfcrypt/src/memory.c*/wolfcrypt/src/dh.c*/wolfcrypt/src/asn.c*/wolfcrypt/src/coding.c*/wolfcrypt/src/poly1305.c*/wolfcrypt/src/pwdbased.c*/wolfcrypt/src/pkcs12.c*/wolfcrypt/src/chacha.c*/wolfcrypt/src/chacha20_poly1305.c*/wolfcrypt/src/wc_mlkem.c*/wolfcrypt/src/wc_mlkem_poly.c
生成的文件
mcpp_generated/wolfssl/options.h
版本
| 版本 | 平台 | 镜像 | sha256 |
|---|---|---|---|
5.9.4 最新 |
LinuxWindowsmacOS | 源站 | 7256bfc89b18… |