CMS_FINAL(3)
β¨ 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
- alpine 3.24: libressl-doc 4.3.1-r0 Β· custom
- arch rolling: libressl 4.4.0-1 Β· ISC AND custom:OpenSSL
- Copyright (c) 2008 The OpenSSL Project. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms