OSSL_CRMF_MSG_set1_regCtrl_regToken.pod 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. =pod
  2. =head1 NAME
  3. OSSL_CRMF_MSG_set1_regCtrl_regToken,
  4. OSSL_CRMF_MSG_set1_regCtrl_authenticator,
  5. OSSL_CRMF_MSG_PKIPublicationInfo_push0_SinglePubInfo,
  6. OSSL_CRMF_MSG_set0_SinglePubInfo,
  7. OSSL_CRMF_MSG_set_PKIPublicationInfo_action,
  8. OSSL_CRMF_MSG_set1_regCtrl_pkiPublicationInfo,
  9. OSSL_CRMF_MSG_set1_regCtrl_protocolEncrKey,
  10. OSSL_CRMF_MSG_set1_regCtrl_oldCertID,
  11. OSSL_CRMF_CERTID_gen
  12. - functions setting CRMF Registration Controls
  13. =head1 SYNOPSIS
  14. #include <openssl/crmf.h>
  15. int OSSL_CRMF_MSG_set1_regCtrl_regToken(OSSL_CRMF_MSG *msg,
  16. const ASN1_UTF8STRING *tok);
  17. int OSSL_CRMF_MSG_set1_regCtrl_authenticator(OSSL_CRMF_MSG *msg,
  18. const ASN1_UTF8STRING *auth);
  19. int OSSL_CRMF_MSG_PKIPublicationInfo_push0_SinglePubInfo(
  20. OSSL_CRMF_PKIPUBLICATIONINFO *pi,
  21. OSSL_CRMF_SINGLEPUBINFO *spi);
  22. int OSSL_CRMF_MSG_set0_SinglePubInfo(OSSL_CRMF_SINGLEPUBINFO *spi,
  23. int method, GENERAL_NAME *nm);
  24. int OSSL_CRMF_MSG_set_PKIPublicationInfo_action(
  25. OSSL_CRMF_PKIPUBLICATIONINFO *pi, int action);
  26. int OSSL_CRMF_MSG_set1_regCtrl_pkiPublicationInfo(OSSL_CRMF_MSG *msg,
  27. const OSSL_CRMF_PKIPUBLICATIONINFO *pi);
  28. int OSSL_CRMF_MSG_set1_regCtrl_protocolEncrKey(OSSL_CRMF_MSG *msg,
  29. const X509_PUBKEY *pubkey);
  30. int OSSL_CRMF_MSG_set1_regCtrl_oldCertID(OSSL_CRMF_MSG *msg,
  31. const OSSL_CRMF_CERTID *cid);
  32. OSSL_CRMF_CERTID *OSSL_CRMF_CERTID_gen(const X509_NAME *issuer,
  33. const ASN1_INTEGER *serial);
  34. =head1 DESCRIPTION
  35. OSSL_CRMF_MSG_set1_regCtrl_regToken() sets the regToken control in the given
  36. I<msg> copying the given I<tok> as value. See RFC 4211, section 6.1.
  37. OSSL_CRMF_MSG_set1_regCtrl_authenticator() sets the authenticator control in
  38. the given I<msg> copying the given I<auth> as value. See RFC 4211, section 6.2.
  39. OSSL_CRMF_MSG_PKIPublicationInfo_push0_SinglePubInfo() pushes the given I<spi>
  40. to I<si>. Consumes the I<spi> pointer.
  41. OSSL_CRMF_MSG_set0_SinglePubInfo() sets in the given SinglePubInfo I<spi>
  42. the I<method> and publication location, in the form of a GeneralName, I<nm>.
  43. The publication location is optional, and therefore I<nm> may be NULL.
  44. The function consumes the I<nm> pointer if present.
  45. Available methods are:
  46. # define OSSL_CRMF_PUB_METHOD_DONTCARE 0
  47. # define OSSL_CRMF_PUB_METHOD_X500 1
  48. # define OSSL_CRMF_PUB_METHOD_WEB 2
  49. # define OSSL_CRMF_PUB_METHOD_LDAP 3
  50. OSSL_CRMF_MSG_set_PKIPublicationInfo_action() sets the action in the given I<pi>
  51. using the given I<action> as value. See RFC 4211, section 6.3.
  52. Available actions are:
  53. # define OSSL_CRMF_PUB_ACTION_DONTPUBLISH 0
  54. # define OSSL_CRMF_PUB_ACTION_PLEASEPUBLISH 1
  55. OSSL_CRMF_MSG_set1_regCtrl_pkiPublicationInfo() sets the pkiPublicationInfo
  56. control in the given I<msg> copying the given I<tok> as value. See RFC 4211,
  57. section 6.3.
  58. OSSL_CRMF_MSG_set1_regCtrl_protocolEncrKey() sets the protocolEncrKey control in
  59. the given I<msg> copying the given I<pubkey> as value. See RFC 4211 section 6.6.
  60. OSSL_CRMF_MSG_set1_regCtrl_oldCertID() sets the oldCertID control in the given
  61. I<msg> copying the given I<cid> as value. See RFC 4211, section 6.5.
  62. OSSL_CRMF_CERTID_gen produces an OSSL_CRMF_CERTID_gen structure copying the
  63. given I<issuer> name and I<serial> number.
  64. =head1 RETURN VALUES
  65. OSSL_CRMF_CERTID_gen returns a pointer to the resulting structure
  66. or NULL on error.
  67. All other functions return 1 on success, 0 on error.
  68. =head1 NOTES
  69. A function OSSL_CRMF_MSG_set1_regCtrl_pkiArchiveOptions() for setting an
  70. Archive Options Control is not yet implemented due to missing features to
  71. create the needed OSSL_CRMF_PKIARCHIVEOPTINS content.
  72. =head1 SEE ALSO
  73. RFC 4211
  74. =head1 HISTORY
  75. The OpenSSL CRMF support was added in OpenSSL 3.0.
  76. =head1 COPYRIGHT
  77. Copyright 2007-2019 The OpenSSL Project Authors. All Rights Reserved.
  78. Licensed under the Apache License 2.0 (the "License"). You may not use
  79. this file except in compliance with the License. You can obtain a copy
  80. in the file LICENSE in the source distribution or at
  81. L<https://www.openssl.org/source/license.html>.
  82. =cut