2727extern "C" {
2828#endif
2929
30- /**
31- * @brief TCG DICE TCB Freshness X509 extension context.
32- *
33- * This is the context expected by
34- * @ref n20_x509_ext_tcg_dice_tcb_freshness_content.
35- * An instance of this object must be passed to the callback.
36- * This is typically done using @ref n20_x509_extension by
37- * initializing @ref n20_x509_extension_t.content_cb with
38- * @ref n20_x509_ext_tcg_dice_tcb_freshness_content and setting
39- * @ref n20_x509_extension_t.context to an instance of this
40- * struct.
41- *
42- * (See TCG DICE Attestation Architecture Version 1.1, Section 6.3.)
43- * @sa OID_TCG_DICE_TCB_FRESHNESS
44- */
45- struct n20_x509_ext_tcg_dice_tcb_freshness_s {
46- /**
47- * @brief Nonce used as the freshness indicator.
48- *
49- * If nonce.buffer is NULL, the nonce is not rendered in the extension.
50- */
51- n20_slice_t nonce ;
52- };
53-
5430/**
5531 * @brief Alias for @ref n20_x509_ext_tcg_dice_tcb_freshness_s
5632 */
@@ -60,11 +36,13 @@ typedef struct n20_x509_ext_tcg_dice_tcb_freshness_s n20_x509_ext_tcg_dice_tcb_f
6036 * @brief Renders the value of a TCG DICE TCB Freshness X509 extension.
6137 *
6238 * The function expects a pointer to an instance of
63- * @ref n20_x509_ext_tcg_dice_tcb_freshness_t as @p context argument.
39+ * @ref n20_slice_t as @p context argument.
6440 *
65- * If @p context is NULL, nothing is rendered, which would leave the resulting TCG DICE TCB
66- * Freshness extension malformed.
41+ * If @p context is NULL, or if @p context->buffer is NULL, nothing is rendered,
42+ * which would leave the resulting TCG DICE TCB Freshness extension malformed.
6743 *
44+ * (See TCG DICE Attestation Architecture Version 1.1, Section 6.3.)
45+ * @sa OID_TCG_DICE_TCB_FRESHNESS
6846 * This function is typically not used directly but instead
6947 * passed to @ref n20_x509_extension by initializing an
7048 * instance of @ref n20_x509_extensions_t
0 commit comments