cms_add1_signing_cert.pod 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. =pod
  2. =head1 NAME
  3. cms_add1_signing_cert, cms_add1_signing_cert_v2
  4. - add ESS signing-certificate signed attribute to a
  5. CMS_SignerInfo data structure
  6. =head1 SYNOPSIS
  7. #include <openssl/cms.h>
  8. int cms_add1_signing_cert(CMS_SignerInfo *si, ESS_SIGNING_CERT *sc);
  9. int cms_add1_signing_cert_v2(CMS_SignerInfo *si, ESS_SIGNING_CERT_V2 *sc2);
  10. =head1 DESCRIPTION
  11. cms_add1_signing_cert() adds an ESS Signing Certificate I<sc> (version 1) signed
  12. attribute to the CMS_SignerInfo I<si>.
  13. cms_add1_signing_cert_v2() adds an ESS Signing Certificate I<sc2> (version 2) signed
  14. attribute to the CMS_SignerInfo I<si>.
  15. The ESS Signing Certificate attributes version 1 and 2 are defined in RFC 5035
  16. which updates Section 5.4 of RFC 2634.
  17. =head1 NOTES
  18. This attribute is mandatory to make a CMS compliant with CAdES-BES
  19. (European Standard ETSI EN 319 122-1 V1.1.1).
  20. For a fuller description see L<openssl-cms(1)>).
  21. =head1 RETURN VALUES
  22. cms_add1_signing_cert() and cms_add1_signing_cert_v2() return 1 if attribute
  23. is added or 0 if an error occurred.
  24. =head1 COPYRIGHT
  25. Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
  26. Licensed under the Apache License 2.0 (the "License"). You may not use
  27. this file except in compliance with the License. You can obtain a copy
  28. in the file LICENSE in the source distribution or at
  29. L<https://www.openssl.org/source/license.html>.
  30. =cut