16fd81a51SAndrew Jeffery# Changelog 26fd81a51SAndrew Jeffery 36fd81a51SAndrew JefferyAll notable changes to this project will be documented in this file. 46fd81a51SAndrew Jeffery 56fd81a51SAndrew JefferyThe format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), 66fd81a51SAndrew Jefferyand this project adheres to 76fd81a51SAndrew Jeffery[Semantic Versioning](https://semver.org/spec/v2.0.0.html). 86fd81a51SAndrew Jeffery 96fd81a51SAndrew JefferyChange categories: 106fd81a51SAndrew Jeffery 116fd81a51SAndrew Jeffery- Added 126fd81a51SAndrew Jeffery- Changed 136fd81a51SAndrew Jeffery- Deprecated 146fd81a51SAndrew Jeffery- Removed 156fd81a51SAndrew Jeffery- Fixed 166fd81a51SAndrew Jeffery- Security 176fd81a51SAndrew Jeffery 186fd81a51SAndrew Jeffery## [Unreleased] 1939f88325SRashmica Gupta 20986df2a1SAndrew Jeffery### Changed 21986df2a1SAndrew Jeffery 22986df2a1SAndrew Jeffery1. requester: Mark pldm_close() as LIBPLDM_ABI_TESTING 235fb9680bSAndrew Jeffery2. requester: Expose pldm_close() in header 24a873eca0SAndrew Jeffery3. bios_table: pldm_bios_table_string_entry_encode_check(): Handle overflow 25986df2a1SAndrew Jeffery 26fe0f01d8SAndrew Jeffery### Deprecated 27fe0f01d8SAndrew Jeffery 28fe0f01d8SAndrew Jeffery1. pldm_bios_table_attr_entry_integer_encode() 29fe0f01d8SAndrew Jeffery 30fe0f01d8SAndrew Jeffery Migrate to pldm_bios_table_attr_entry_integer_encode_check() 31fe0f01d8SAndrew Jeffery 327aeb7edbSAndrew Jeffery2. bios_table: Deprecate pldm_bios_table_attr_value_entry_encode_enum() 337aeb7edbSAndrew Jeffery 347aeb7edbSAndrew Jeffery Migrate to pldm_bios_table_attr_value_entry_encode_enum_check() 357aeb7edbSAndrew Jeffery 36*2d66393fSAndrew Jeffery3. bios_table: Deprecate pldm_bios_table_attr_value_entry_encode_string() 37*2d66393fSAndrew Jeffery 38*2d66393fSAndrew Jeffery Migrate to pldm_bios_table_attr_value_entry_encode_string_check() 39*2d66393fSAndrew Jeffery 406409c8a0SAndrew Jeffery### Removed 416409c8a0SAndrew Jeffery 426409c8a0SAndrew Jeffery1. bios_table: Remove deprecated APIs sanitized by assert(): 436409c8a0SAndrew Jeffery 446409c8a0SAndrew Jeffery - pldm_bios_table_string_entry_encode() 456409c8a0SAndrew Jeffery - pldm_bios_table_string_entry_decode_string() 466409c8a0SAndrew Jeffery - pldm_bios_table_attr_entry_enum_encode() 476409c8a0SAndrew Jeffery - pldm_bios_table_attr_entry_enum_decode_pv_num() 486409c8a0SAndrew Jeffery - pldm_bios_table_attr_entry_enum_decode_def_num() 496409c8a0SAndrew Jeffery - pldm_bios_table_attr_entry_enum_decode_pv_hdls() 506409c8a0SAndrew Jeffery - pldm_bios_table_attr_entry_string_encode() 516409c8a0SAndrew Jeffery - pldm_bios_table_attr_entry_string_decode_def_string_length() 526409c8a0SAndrew Jeffery 5309778a82SAndrew Jeffery### Fixed 54ffd5342cSPavithra Barithaya 55ffd5342cSPavithra Barithaya1. pdr: Return success for pldm_pdr_find_child_container_id_range_exclude() API 568cf70456SPavithra Barithaya2. pdr: Rework pldm_pdr_find_container_id_range_exclude() API 57a4da6858SAndrew Jeffery3. transport: mctp-demux: Don't test socket for non-zero value 584e1ba8a7SAndrew Jeffery4. requester: Return PLDM_REQUESTER_OPEN_FAIL from pldm_open() on error 59ffd5342cSPavithra Barithaya 60291da195SAndrew Jeffery## [0.3.0] - 2023-06-23 61291da195SAndrew Jeffery 627c250340SDung Cao### Added 637c250340SDung Cao 647c250340SDung Cao1. Add encode/decode pldmMessagePollEvent data 6583841fb5SAndrew Jeffery2. README: Add a section on working with libpldm 6639bd2ea5SArchanaKakani3. pdr: Introduce remote_container_id and associated APIs 679947f9d6SPavithra Barithaya4. pdr: Add APIs for creating and locating remote PDRs 684d694346SPavithra Barithaya5. pdr: Add pldm_pdr_find_last_in_range() 6925ddbccfSPavithra Barithaya6. pdr: Add pldm_entity_association_pdr_add_from_node_with_record_handle() 705dc02571SPavithra Barithaya7. pdr: Add pldm_pdr_find_container_id_range_exclude() 717c250340SDung Cao 72b443b487SRashmica Gupta### Changed 73b443b487SRashmica Gupta 74b443b487SRashmica Gupta1. include: Move installed transport.h under libpldm/ 7583841fb5SAndrew Jeffery2. libpldm: Explicit deprecated, stable and testing ABI classes 768de8e1ecSAndrew Jeffery3. meson: Reduce strength of oem-ibm requirements from enabled to allowed 778de8e1ecSAndrew Jeffery 788de8e1ecSAndrew Jeffery The `oem-ibm` feature is now enabled by the default meson configuration, for 798de8e1ecSAndrew Jeffery CI purposes. `oem-ibm` is still disabled by default in the `libpldm` bitbake 808de8e1ecSAndrew Jeffery recipe: 818de8e1ecSAndrew Jeffery 828de8e1ecSAndrew Jeffery https://github.com/openbmc/openbmc/blob/master/meta-phosphor/recipes-phosphor/libpldm/libpldm_git.bb#L10 838de8e1ecSAndrew Jeffery 848de8e1ecSAndrew Jeffery To disable `oem-ibm` in your development builds, pass `-Doem-ibm=disabled` 858de8e1ecSAndrew Jeffery when invoking `meson setup` 86b443b487SRashmica Gupta 8798c1e69dSAndrew Jeffery4. bios_table: Relax pldm_bios_table_string_entry_decode_string_check() 880c9f5a8aSAndrew Jeffery5. bios_table: Relax pldm_bios_table_attr_entry_enum_decode_pv_hdls_check() 8998c1e69dSAndrew Jeffery 90d47e8ab8SAndrew Jeffery### Deprecated 91d47e8ab8SAndrew Jeffery 92d47e8ab8SAndrew Jeffery1. bios_table: Deprecate APIs with arguments sanitized using assert() 93d47e8ab8SAndrew Jeffery 94d47e8ab8SAndrew Jeffery C provides enough foot-guns without us encoding them into library APIs. 95d47e8ab8SAndrew Jeffery Specifically, deprecate the following in favour of their `*_check()` variants 96d47e8ab8SAndrew Jeffery which ensure assertions won't fail or otherwise invoke UB: 97d47e8ab8SAndrew Jeffery 98d47e8ab8SAndrew Jeffery - pldm_bios_table_string_entry_encode() 99d47e8ab8SAndrew Jeffery - pldm_bios_table_string_entry_decode_string() 100d47e8ab8SAndrew Jeffery - pldm_bios_table_attr_entry_enum_encode() 101d47e8ab8SAndrew Jeffery - pldm_bios_table_attr_entry_enum_decode_pv_num() 102d47e8ab8SAndrew Jeffery - pldm_bios_table_attr_entry_enum_decode_def_num() 103d47e8ab8SAndrew Jeffery - pldm_bios_table_attr_entry_enum_decode_pv_hdls() 104d47e8ab8SAndrew Jeffery - pldm_bios_table_attr_entry_string_encode() 105d47e8ab8SAndrew Jeffery - pldm_bios_table_attr_entry_string_decode_def_string_length() 106d47e8ab8SAndrew Jeffery 1074b4603b3SAndrew Jeffery### Removed 1084b4603b3SAndrew Jeffery 1094b4603b3SAndrew Jeffery1. libpldm: Remove the requester-api option 1104b4603b3SAndrew Jeffery 11139f88325SRashmica Gupta### Fixed 11239f88325SRashmica Gupta 11339f88325SRashmica Gupta1. requester: Make pldm_open() return existing fd 114abaf61f4SDung Cao2. transport: Prevent sticking in waiting for response 115b01fb1ccSThu Nguyen3. transport: Match on response in pldm_transport_send_recv_msg() 116a3035938SRashmica Gupta4. requester: Add check before accessing hdr in pldm_recv() 117df02e360SAndrew Jeffery5. bios_table: pldm_bios_table_attr_entry_string_info_check() NULL deref 118