DMTF / libspdm

BSD 3-Clause "New" or "Revised" License
90 stars 94 forks source link

`libspdm_verify_set_cert_leaf_cert_basic_constraints` needs to be updated for SPDM 1.3 #2731

Open steven-bellock opened 1 month ago

steven-bellock commented 1 month ago

Follow-up to #2657.

libspdm_verify_set_cert_leaf_cert_basic_constraints currently allows the existence of a device certificate's CA field to be optional. This is mandatory for SPDM 1.3 and its value must be true. In addition the function should handle generic certificates the same as device certificates. The current logic treats generic certificates the same as alias certificates, which is incorrect.