17 Commits
Author SHA1 Message Date
Julius Pfrommer 49f5b1c324 Merge remote-tracking branch 'origin/1.5' into merge_15_master_8 2026-05-04 11:47:34 +02:00
Niels Beier 42ada9ef6b fix(sec): guard basic256 plaintext block size underflow
Check getRemotePlainTextBlockSize for RSA key length failures and reject values <= 42 before subtracting the PKCS#1 v1.5 padding size. The previous code ignored the OpenSSL return value and subtracted unconditionally, which could wrap when key length retrieval failed or returned a too-small value.
Add a regression test that uses a zeroed fake channel context to exercise the failure path.
2026-04-28 22:07:36 +02:00
Julius Pfrommer 99cd8ab3a8 Merge remote-tracking branch 'origin/1.5' into merge_15_master_3 2026-02-21 00:05:03 +01:00
Julius Pfrommer 518e2ab33d refactor(plugins): Asymmetric decryption does not require a channel context (with the remote certificate) 2026-02-20 23:55:49 +01:00
Julius Pfrommer 5149268ed1 Merge remote-tracking branch 'origin/1.5' into merge_15_master_2 2026-02-18 20:56:40 +01:00
Julius Pfrommer 02802dea41 fix(plugins): Better handling of SecurityPolicies failing the initialization 2026-02-17 07:03:22 +01:00
Julius Pfrommer 285c753913 feat(plugins): Check for RSA/ECC certificates when initializing the SecurityPolicies 2026-02-17 07:03:22 +01:00
Julius Pfrommer 7671c1bb3b refactor(plugins): Remove the logging noise for each SecurityPolicy context instance 2026-02-16 11:22:35 +01:00
Moritz Bruder 029465e5c1 refactor(plugin): share common openssl policy context functions
Remove local functions and use a generic version since all are the same.
2026-01-17 02:44:25 +01:00
Moritz Bruder 359582b5a7 refactor(plugin): refactor common struct in openssl
Create shared struct openssl_PolicyContext.  Replace individual structs
by shared one.
2026-01-17 02:44:25 +01:00
Moritz Bruder 05437137f4 refactor(plugin): share common openssl channel context functions
Remove local functions and use a generic version since all are the same.
2026-01-17 02:44:25 +01:00
Moritz Bruder 972addb57f refactor(plugin): refactor common struct in openssl
Create shared struct mbedtls_ChannelContext.  Replace individual structs
by shared one.
2026-01-17 02:44:25 +01:00
Julius Pfrommer 0e874a80fa feat(plugins): Add PolicyType information to UA_SecurityPolicy to disambiguate None/RSA/ECC 2026-01-02 13:43:48 +01:00
Julius Pfrommer ba5ee03403 breaking(plugins): Modify the SecurityPolicy API to always forward the policy-pointer and the channel context (needed for ECC cleanup) 2026-01-02 13:43:48 +01:00
Julius Pfrommer ff24a547d4 Merge remote-tracking branch 'origin/1.4' into merge_14_master_22 2024-10-07 22:23:25 +02:00
Noel Graf dccdfe629c feat(plugin): Check which privateKey should be used if no key is specified 2024-10-01 23:47:35 +02:00
Julius Pfrommer d4534a9704 refactor(plugin): Consistently name the OpenSSL plugin files 2024-07-20 11:42:05 +02:00