Skip to content

Commit

Permalink
deploy openssl/openssl@ce6b2f9 to master
Browse files Browse the repository at this point in the history
  • Loading branch information
openssl-machine committed Jul 17, 2024
1 parent 07a7433 commit 5ee95af
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion master/man1/openssl-cms/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion master/man1/openssl-smime/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion master/man3/CMS_add0_cert/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
int CMS_add0_crl(CMS_ContentInfo *cms, X509_CRL *crl);
int CMS_add1_crl(CMS_ContentInfo *cms, X509_CRL *crl);
STACK_OF(X509_CRL) *CMS_get1_crls(CMS_ContentInfo *cms);
</code></pre></div><h2 id=description>DESCRIPTION<a class=headerlink href=#description title="Permanent link">&para;</a></h2><p>CMS_add0_cert() and CMS_add1_cert() add certificate <em>cert</em> to <em>cms</em> unless it is already present. This is used by <a href=../CMS_sign/ >CMS_sign_ex(3)</a> and <a href=../CMS_sign/ >CMS_sign(3)</a> and may be used before calling <a href=../CMS_verify/ >CMS_verify(3)</a> to help chain building in certificate validation. As the 0 implies, CMS_add0_cert() adds <em>cert</em> internally to <em>cms</em> and on success it must not be freed up by the caller. In contrast, the caller of CMS_add1_cert() must free <em>cert</em>. <em>cms</em> must be of type signed data or (authenticated) enveloped data. For signed data, such a certificate can be used when signing or verifying to fill in the signer certificate or to provide an extra CA certificate that may be needed for chain building in certificate validation.</p><p>CMS_get1_certs() returns all certificates in <em>cms</em>.</p><p>CMS_add0_crl() and CMS_add1_crl() add CRL <em>crl</em> to <em>cms</em>. <em>cms</em> must be of type signed data or (authenticated) enveloped data. For signed data, such a CRL may be used in certificate validation with <a href=../CMS_verify/ >CMS_verify(3)</a>. It may be given both for inclusion when signing a CMS message and when verifying a signed CMS message.</p><p>CMS_get1_crls() returns all CRLs in <em>cms</em>.</p><h2 id=notes>NOTES<a class=headerlink href=#notes title="Permanent link">&para;</a></h2><p>The CMS_ContentInfo structure <em>cms</em> must be of type signed data or enveloped data or authenticated enveloped data or an error will be returned.</p><p>For signed data, certificates and CRLs are added to the <em>certificates</em> and <em>crls</em> fields of SignedData structure. For enveloped data they are added to <strong>OriginatorInfo</strong>.</p><h2 id=return-values>RETURN VALUES<a class=headerlink href=#return-values title="Permanent link">&para;</a></h2><p>CMS_add0_cert(), CMS_add1_cert() and CMS_add0_crl() and CMS_add1_crl() return 1 for success and 0 for failure.</p><p>CMS_get1_certs() and CMS_get1_crls() return the STACK of certificates or CRLs or NULL if there are none or an error occurs. The only error which will occur in practice is if the <em>cms</em> type is invalid.</p><h2 id=see-also>SEE ALSO<a class=headerlink href=#see-also title="Permanent link">&para;</a></h2><p><a href=../ERR_get_error/ >ERR_get_error(3)</a>, <a href=../CMS_sign/ >CMS_sign(3)</a>, <a href=../CMS_sign/ >CMS_sign_ex(3)</a>, <a href=../CMS_verify/ >CMS_verify(3)</a>, <a href=../CMS_encrypt/ >CMS_encrypt(3)</a></p><h2 id=history>HISTORY<a class=headerlink href=#history title="Permanent link">&para;</a></h2><p>CMS_add0_cert() and CMS_add1_cert() have been changed in OpenSSL 3.2 not to throw an error if a certificate to be added is already present.</p><h2 id=copyright>COPYRIGHT<a class=headerlink href=#copyright title="Permanent link">&para;</a></h2><p>Copyright 2008-2023 The OpenSSL Project Authors. All Rights Reserved.</p><p>Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <a href=https://www.openssl.org/source/license.html>https://www.openssl.org/source/license.html</a>.</p></article></div><script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script></div></main><footer class=md-footer><div class="md-footer-meta md-typeset"><div class="md-footer-meta__inner md-grid"><div class=md-copyright> Made with <a href=https://squidfunk.github.io/mkdocs-material/ target=_blank rel=noopener> Material for MkDocs </a></div></div></div></footer></div><div class=md-dialog data-md-component=dialog><div class="md-dialog__inner md-typeset"></div></div><script id=__config type=application/json>{"base": "../..", "features": ["navigation.indexes", "navigation.instant", "navigation.path", "navigation.prune", "navigation.tabs", "navigation.tabs.sticky", "navigation.tracking", "search.suggest", "toc.follow"], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": {"default": "master", "provider": "mike"}}</script><script src=../../assets/javascripts/bundle.ad660dcc.min.js></script></body></html>
</code></pre></div><h2 id=description>DESCRIPTION<a class=headerlink href=#description title="Permanent link">&para;</a></h2><p>CMS_add0_cert() and CMS_add1_cert() add certificate <em>cert</em> to <em>cms</em> unless it is already present. This is used by <a href=../CMS_sign/ >CMS_sign_ex(3)</a> and <a href=../CMS_sign/ >CMS_sign(3)</a> and may be used before calling <a href=../CMS_verify/ >CMS_verify(3)</a> to help chain building in certificate validation. As the 0 implies, CMS_add0_cert() adds <em>cert</em> internally to <em>cms</em> and on success it must not be freed up by the caller. In contrast, the caller of CMS_add1_cert() must free <em>cert</em>. <em>cms</em> must be of type signed data or (authenticated) enveloped data. For signed data, such a certificate can be used when signing or verifying to fill in the signer certificate or to provide an extra CA certificate that may be needed for chain building in certificate validation.</p><p>CMS_get1_certs() returns all certificates in <em>cms</em>.</p><p>CMS_add0_crl() and CMS_add1_crl() add CRL <em>crl</em> to <em>cms</em>. <em>cms</em> must be of type signed data or (authenticated) enveloped data. For signed data, such a CRL may be used in certificate validation with <a href=../CMS_verify/ >CMS_verify(3)</a>. It may be given both for inclusion when signing a CMS message and when verifying a signed CMS message.</p><p>CMS_get1_crls() returns all CRLs in <em>cms</em>.</p><h2 id=notes>NOTES<a class=headerlink href=#notes title="Permanent link">&para;</a></h2><p>The CMS_ContentInfo structure <em>cms</em> must be of type signed data or enveloped data or authenticated enveloped data or an error will be returned.</p><p>For signed data, certificates and CRLs are added to the <em>certificates</em> and <em>crls</em> fields of SignedData structure. For enveloped data they are added to <strong>OriginatorInfo</strong>.</p><h2 id=return-values>RETURN VALUES<a class=headerlink href=#return-values title="Permanent link">&para;</a></h2><p>CMS_add0_cert(), CMS_add1_cert() and CMS_add0_crl() and CMS_add1_crl() return 1 for success and 0 for failure.</p><p>CMS_get1_certs() and CMS_get1_crls() return the STACK of certificates or CRLs, which is empty if there are none. They return NULL on error. Besides out-of-memory, the only error which will occur in practice is if the <em>cms</em> type is invalid.</p><h2 id=see-also>SEE ALSO<a class=headerlink href=#see-also title="Permanent link">&para;</a></h2><p><a href=../ERR_get_error/ >ERR_get_error(3)</a>, <a href=../CMS_sign/ >CMS_sign(3)</a>, <a href=../CMS_sign/ >CMS_sign_ex(3)</a>, <a href=../CMS_verify/ >CMS_verify(3)</a>, <a href=../CMS_encrypt/ >CMS_encrypt(3)</a></p><h2 id=history>HISTORY<a class=headerlink href=#history title="Permanent link">&para;</a></h2><p>CMS_add0_cert() and CMS_add1_cert() have been changed in OpenSSL 3.2 not to throw an error if a certificate to be added is already present.</p><h2 id=copyright>COPYRIGHT<a class=headerlink href=#copyright title="Permanent link">&para;</a></h2><p>Copyright 2008-2023 The OpenSSL Project Authors. All Rights Reserved.</p><p>Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <a href=https://www.openssl.org/source/license.html>https://www.openssl.org/source/license.html</a>.</p></article></div><script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script></div></main><footer class=md-footer><div class="md-footer-meta md-typeset"><div class="md-footer-meta__inner md-grid"><div class=md-copyright> Made with <a href=https://squidfunk.github.io/mkdocs-material/ target=_blank rel=noopener> Material for MkDocs </a></div></div></div></footer></div><div class=md-dialog data-md-component=dialog><div class="md-dialog__inner md-typeset"></div></div><script id=__config type=application/json>{"base": "../..", "features": ["navigation.indexes", "navigation.instant", "navigation.path", "navigation.prune", "navigation.tabs", "navigation.tabs.sticky", "navigation.tracking", "search.suggest", "toc.follow"], "search": "../../assets/javascripts/workers/search.b8dbb3d2.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}, "version": {"default": "master", "provider": "mike"}}</script><script src=../../assets/javascripts/bundle.ad660dcc.min.js></script></body></html>
Loading

0 comments on commit 5ee95af

Please sign in to comment.