this->attributes = attributes;
}
+METHOD(pkcs7_t, get_attributes, pkcs9_t*,
+ private_pkcs7_t *this)
+{
+ return this->attributes;
+}
+
/**
* build a DER-encoded issuerAndSerialNumber object
*/
.create_certificate_enumerator = _create_certificate_enumerator,
.set_certificate = _set_certificate,
.set_attributes = _set_attributes,
+ .get_attributes = _get_attributes,
.build_envelopedData = _build_envelopedData,
.build_signedData = _build_signedData,
.destroy = _destroy,
/**
* Add authenticated attributes.
*
- * @param attributes attributes to be included
+ * @param attributes attributes to be included (gets adopted)
*/
void (*set_attributes) (pkcs7_t *this, pkcs9_t *attributes);
+ /**
+ * Get attributes.
+ *
+ * @reutrn attributes (internal data)
+ */
+ pkcs9_t *(*get_attributes) (pkcs7_t *this);
+
/**
* Build a data object
*