mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 22:50:50 +02:00
54cb1d8d38
- store pointer to WC_RNG instead of full struct - enforce RNG is not dropped before consumer structs The C library stores a pointer via the set_rng() methods on a few structs (e.g. RSA). This change holds a reference (or instance) of RNG within the consumer structs to ensure it is kept alive if set_rng (or now set_shared_rng) is used.
21 lines
464 B
Makefile
21 lines
464 B
Makefile
FEATURES := alloc,rand_core,aead,cipher,digest,mac,signature,password-hash,kem
|
|
CARGO_FEATURE_FLAGS := --features $(FEATURES)
|
|
|
|
.PHONY: all
|
|
all:
|
|
cargo build $(CARGO_FEATURE_FLAGS)
|
|
cargo clippy $(CARGO_FEATURE_FLAGS)
|
|
cargo doc $(CARGO_FEATURE_FLAGS)
|
|
|
|
.PHONY: test
|
|
test:
|
|
cargo test $(CARGO_FEATURE_FLAGS) -- --test-threads=1
|
|
|
|
.PHONY: testfips
|
|
testfips:
|
|
cargo test $(CARGO_FEATURE_FLAGS) --lib --bins --tests -- --test-threads=1
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
cargo clean
|