Fix and document BIO_FLAGS_NONCLEAR_RST behavior on memory BIO
[openssl.git] / doc / man3 / OSSL_CRMF_MSG_set_validity.pod
index a610337392b7d9a71cee9c53972db80d6f5c24b6..80f236614805cae65deab70970be10c6717b3bba 100644 (file)
@@ -17,10 +17,10 @@ OSSL_CRMF_MSGS_verify_popo
 
  int OSSL_CRMF_MSG_set_validity(OSSL_CRMF_MSG *crm, time_t from, time_t to);
 
- int OSSL_CRMF_MSG_set_certReqId(OSSL_CRMF_MSG *crm, const int rid);
+ int OSSL_CRMF_MSG_set_certReqId(OSSL_CRMF_MSG *crm, int rid);
 
  int OSSL_CRMF_CERTTEMPLATE_fill(OSSL_CRMF_CERTTEMPLATE *tmpl,
-                                 const EVP_PKEY *pubkey,
+                                 EVP_PKEY *pubkey,
                                  const X509_NAME *subject,
                                  const X509_NAME *issuer,
                                  const ASN1_INTEGER *serial);
@@ -31,7 +31,7 @@ OSSL_CRMF_MSGS_verify_popo
  int OSSL_CRMF_MSG_push0_extension(OSSL_CRMF_MSG *crm,
                                    const X509_EXTENSION *ext);
 
- int OSSL_CRMF_MSG_create_popo(OSSL_CRMF_MSG *crm, const EVP_PKEY *pkey,
+ int OSSL_CRMF_MSG_create_popo(OSSL_CRMF_MSG *crm, EVP_PKEY *pkey,
                                int dgst, int ppmtd);
 
  int OSSL_CRMF_MSGS_verify_popo(const OSSL_CRMF_MSGS *reqs,
@@ -46,10 +46,12 @@ OSSL_CRMF_MSG_set_certReqId() sets B<rid> as the certReqId of B<crm>.
 
 OSSL_CRMF_CERTTEMPLATE_fill() sets those fields of the certTemplate B<tmpl>
 for which non-NULL values are provided: B<pubkey>, B<subject>, B<issuer>,
-and/or B<serial>. The arguments are not consumed.
+and/or B<serial>.
+On success the reference counter of the B<pubkey> (if given) is incremented,
+while the B<subject>, B<issuer>, and B<serial> structures (if given) are copied.
 
 OSSL_CRMF_MSG_set0_extensions() sets B<exts> as the extensions in the
-certTemplate of B<crm>. Consumes B<exts>.
+certTemplate of B<crm>. Frees any pre-existing ones and consumes B<exts>.
 
 OSSL_CRMF_MSG_push0_extension() pushes the X509 extension B<ext> to the
 extensions in the certTemplate of B<crm>.  Consumes B<ext>.
@@ -93,9 +95,9 @@ RFC 4211
 
 =head1 COPYRIGHT
 
-Copyright 2007-2018 The OpenSSL Project Authors. All Rights Reserved.
+Copyright 2007-2019 The OpenSSL Project Authors. All Rights Reserved.
 
-Licensed under the OpenSSL license (the "License").  You may not use
+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
 L<https://www.openssl.org/source/license.html>.