Skip to content

Commit

Permalink
[ot_certs] Make asn1 library compile with C++
Browse files Browse the repository at this point in the history
Signed-off-by: Amaury Pouly <[email protected]>
  • Loading branch information
pamaury committed Jan 8, 2024
1 parent fca3c5d commit 5452a5a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sw/device/silicon_creator/lib/cert/asn1.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
#include "sw/device/lib/base/memory.h"
#include "sw/device/silicon_creator/lib/error.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
* Structure holding the state of the asn1 generator.
*
Expand Down Expand Up @@ -229,4 +233,8 @@ rom_error_t asn1_push_string(asn1_state_t *state, uint8_t tag, const char *str,
rom_error_t asn1_push_hexstring(asn1_state_t *state, uint8_t tag,
const uint8_t *bytes, size_t size);

#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus

#endif // OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_CERT_ASN1_H_

0 comments on commit 5452a5a

Please sign in to comment.