Finalise a partially built CMS_ContentInfo (for example digest computation and field fill-in).
Declared in <openssl/cms.h>
int
CMS_final(
CMS_ContentInfo* cms,
BIO* data,
BIO* dcont,
unsigned int flags);
Used when CMS_PARTIAL is set and streaming I/O is not performing finalisation internally.
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| cms | ContentInfo created with CMS_PARTIAL that still needs finalisation. |
| data | BIO supplying content to process (for example for digesting). |
| dcont | BIO that receives processed content for detached data, or usually NULL. |
| flags | CMS flags controlling finalisation behaviour. |