CMS_FINAL(3)

πŸ“¦ version 4.4.0, in alpine 3.24, arch rolling

✨ CMS_final(3) ✨

okay bestie, welcome to the library functions manual πŸ’– this page is all about CMS_final() and it is literally the finaliser for a CMS_ContentInfo structure. no cap.

🌸 NAME 🌸

CMS_final β€” finalise a CMS_ContentInfo structure πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

library β€œlibcrypto” #include <openssl/cms.h>

int
CMS_final(CMS_ContentInfo *cms, BIO *data, BIO *dcont,
    unsigned int flags);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so CMS_final() finalises the structure cms. its whole purpose is to perform any operations necessary on cms β€” digest computation for example β€” and set the appropriate fields. ✨

The parameter data contains the content to be processed. πŸ“

The dcont parameter contains a BIO to write content to after processing: this is only used with detached data and will usually be set to NULL. πŸ™ˆ

This function will normally be called when the CMS_PARTIAL flag is used. 🫢

bestie, it should only be used when streaming is not performed because the streaming I/O functions perform finalisation operations internally. like, do not come for streaming here, fr fr πŸ’€

🌈 RETURN VALUES 🌈

CMS_final() returns 1 for success or 0 for failure. that's it. iconic binary behavior πŸ‘‘

πŸ‘€ SEE ALSO πŸ‘€

πŸ’œ HISTORY πŸ’œ

CMS_final() first appeared in OpenSSL 0.9.8h and has been available since OpenBSD 6.7. periodt ✨


cute sign-off: this page is comin' at you from Debian, dated June 8, 2025 β€” mwah πŸ’‹

πŸ“¦ where this page comes from