Skip to content

Commit 5d5f04a

Browse files
committed
Add 1.3 GET_CERTIFICATE format
Signed-off-by: Jiewen Yao <[email protected]>
1 parent 31fbad7 commit 5d5f04a

File tree

1 file changed

+9
-2
lines changed
  • include/industry_standard

1 file changed

+9
-2
lines changed

include/industry_standard/spdm.h

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,24 +503,31 @@ typedef uint16_t spdm_key_usage_bit_mask_t;
503503
typedef struct {
504504
spdm_message_header_t header;
505505
/* param1 == BIT[0:3]=slot_id, BIT[4:7]=RSVD
506-
* param2 == RSVD*/
506+
* param2 == Request Attribute in 1.3 */
507507
uint16_t offset;
508508
uint16_t length;
509509
} spdm_get_certificate_request_t;
510510

511511
#define SPDM_GET_CERTIFICATE_REQUEST_SLOT_ID_MASK 0xF
512512

513+
/* SPDM GET_CERTIFICATE request Attributes */
514+
#define SPDM_GET_CERTIFICATE_REQUEST_ATTRIBUTES_SLOT_SIZE_REQUESTED 0x01
515+
513516
/* SPDM GET_CERTIFICATE response */
514517
typedef struct {
515518
spdm_message_header_t header;
516519
/* param1 == BIT[0:3]=slot_id, BIT[4:7]=RSVD
517-
* param2 == RSVD*/
520+
* param2 == Response Attribute in 1.3 */
518521
uint16_t portion_length;
519522
uint16_t remainder_length;
520523
/*uint8_t cert_chain[portion_length];*/
521524
} spdm_certificate_response_t;
522525

523526
#define SPDM_CERTIFICATE_RESPONSE_SLOT_ID_MASK 0xF
527+
528+
/* SPDM CERTIFICATE response Attributes */
529+
#define SPDM_CERTIFICATE_RESPONSE_ATTRIBUTES_CERTIFICATE_INFO_MASK 0x7
530+
524531
typedef struct {
525532
/* Total length of the certificate chain, in bytes,
526533
* including all fields in this table.*/

0 commit comments

Comments
 (0)