| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Don't use BIO_snprintf as it is deprecated | Norbert Pocs | 2026-08-27 | 1 | -1/+1 |
| | | | | | | | | | Signed-off-by: Norbert Pocs <[email protected]> Reviewed-by: Milan Broz <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> Merge-date: Thu Aug 27 14:35:30 2026 Merged-from: https://github.com/openssl/openssl/pull/32547 | ||||
| * | encoder: pass the data type up through the encoder chain | Jakub Zelenka | 2026-08-27 | 1 | -0/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | In encoder_process(), the data type (the name of the encoder implementation that produced the current encoding) is determined at the deepest recursion level, but was not propagated up through the recursion together with the other results of the recursive call. As a consequence, the abstract object handed to a chained encoder implementation contained an OSSL_OBJECT_PARAM_DATA_TYPE parameter with NULL data, in violation of provider-object(7), which specifies it as a UTF8 string carrying the type of the object content. This went unnoticed because no encoders provided by OpenSSL itself are ever chained. Also extend endecode_api_test to verify that a chained encoder implementation receives the correct data type. Assisted-by: Claude:claude-fable-5 Reviewed-by: Matt Caswell <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> Merge-date: Thu Aug 27 13:45:07 2026 Merged-from: https://github.com/openssl/openssl/pull/32019 | ||||
| * | test: add low-level OSSL_ENCODER / OSSL_DECODER API test | Jakub Zelenka | 2026-08-27 | 1 | -0/+986 |
| Add a test that exercises the encoder and decoder chain processing in encoder_lib.c and decoder_lib.c through a built-in test provider implementing a two-stage encoder chain ("TEST-KEY" -> "inter" -> "pem") and the mirrored decoder chain. This covers previously untested code paths: - encoder chaining through abstract objects, including the intermediate memory BIO handling in encoder_process() - OSSL_ENCODER_to_fp() and OSSL_DECODER_from_fp() - OSSL_ENCODER_to_data() edge cases (size query, pre-allocated buffer, too small buffer) - OSSL_DECODER_CTX_add_decoder() and OSSL_DECODER_export() - decoding from a non-seekable BIO (BIO_f_readbuffer wrapping) - various error paths and NULL argument checks in both APIs Assisted-by: Claude:claude-fable-5 Reviewed-by: Matt Caswell <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> Merge-date: Thu Aug 27 13:45:07 2026 Merged-from: https://github.com/openssl/openssl/pull/32019 | |||||
