OSSL_CRMF_MSG_set1_regInfo_certReq.pod 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. =pod
  2. =head1 NAME
  3. OSSL_CRMF_MSG_set1_regInfo_utf8Pairs,
  4. OSSL_CRMF_MSG_set1_regInfo_certReq
  5. - functions setting CRMF Registration Info
  6. =head1 SYNOPSIS
  7. #include <openssl/crmf.h>
  8. int OSSL_CRMF_MSG_set1_regInfo_utf8Pairs(OSSL_CRMF_MSG *msg,
  9. const ASN1_UTF8STRING *utf8pairs);
  10. int OSSL_CRMF_MSG_set1_regInfo_certReq(OSSL_CRMF_MSG *msg,
  11. const OSSL_CRMF_CERTREQUEST *cr);
  12. =head1 DESCRIPTION
  13. OSSL_CRMF_MSG_set1_regInfo_utf8Pairs() adds a copy of the given I<utf8pairs>
  14. value as utf8Pairs regInfo to the given I<msg>. See RFC 4211 section 7.1.
  15. OSSL_CRMF_MSG_set1_regInfo_certReq() adds a copy of the given I<cr> value
  16. as certReq regInfo to the given I<msg>. See RFC 4211 section 7.2.
  17. =head1 RETURN VALUES
  18. All functions return 1 on success, 0 on error.
  19. =head1 NOTES
  20. Calling these functions multiple times adds multiple instances of the respective
  21. control to the regInfo structure of the given I<msg>. While RFC 4211 expects
  22. multiple utf8Pairs in one regInfo structure, it does not allow multiple certReq.
  23. =head1 SEE ALSO
  24. RFC 4211
  25. =head1 HISTORY
  26. The OpenSSL CRMF support was added in OpenSSL 3.0.
  27. =head1 COPYRIGHT
  28. Copyright 2007-2019 The OpenSSL Project Authors. All Rights Reserved.
  29. Licensed under the Apache License 2.0 (the "License"). You may not use
  30. this file except in compliance with the License. You can obtain a copy
  31. in the file LICENSE in the source distribution or at
  32. L<https://www.openssl.org/source/license.html>.
  33. =cut