VirtualBox

Ignore:
Timestamp:
Mar 3, 2022 7:17:34 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
150325
Message:

libs/openssl-3.0.1: started applying and adjusting our OpenSSL changes to 3.0.1. bugref:10128

Location:
trunk/src/libs/openssl-3.0.1
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/openssl-3.0.1

    • Property svn:mergeinfo
      •  

        old new  
        1212/vendor/openssl/1.1.1c:131722-131725
        1313/vendor/openssl/1.1.1k:145841-145843
         14/vendor/openssl/3.0.1:150323-150324
         15/vendor/openssl/current:147554-150322
  • trunk/src/libs/openssl-3.0.1/doc/man3/PKCS7_sign.pod

    r91772 r94082  
    33=head1 NAME
    44
    5 PKCS7_sign - create a PKCS#7 signedData structure
     5PKCS7_sign_ex, PKCS7_sign
     6- create a PKCS#7 signedData structure
    67
    78=head1 SYNOPSIS
     
    910 #include <openssl/pkcs7.h>
    1011
     12 PKCS7 *PKCS7_sign_ex(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs,
     13                      BIO *data, int flags, OSSL_LIB_CTX *libctx,
     14                      const char *propq);
    1115 PKCS7 *PKCS7_sign(X509 *signcert, EVP_PKEY *pkey, STACK_OF(X509) *certs,
    1216                   BIO *data, int flags);
     
    1418=head1 DESCRIPTION
    1519
    16 PKCS7_sign() creates and returns a PKCS#7 signedData structure. B<signcert> is
    17 the certificate to sign with, B<pkey> is the corresponding private key.
    18 B<certs> is an optional additional set of certificates to include in the PKCS#7
    19 structure (for example any intermediate CAs in the chain).
     20PKCS7_sign_ex() creates and returns a PKCS#7 signedData structure.
     21I<igncert> is the certificate to sign with, Ipkey> is the corresponding
     22private key. I<certs> is an optional additional set of certificates to include
     23in the PKCS#7 structure (for example any intermediate CAs in the chain). The
     24library context I<libctx> and property query I<propq> are used when
     25retrieving algorithms from providers.
    2026
    2127The data to be signed is read from BIO B<data>.
    2228
    2329B<flags> is an optional set of flags.
    24 
    25 =head1 NOTES
    2630
    2731Any of the following flags (ored together) can be passed in the B<flags>
     
    6771which additional signers and capabilities can be added before finalization.
    6872
    69 =head1 NOTES
    70 
    7173If the flag B<PKCS7_STREAM> is set the returned B<PKCS7> structure is B<not>
    7274complete and outputting its contents via a function that does not properly
     
    9395B<NOT> be NULL.
    9496
     97PKCS7_sign() is similar to PKCS7_sign_ex() but uses default values of
     98NULL for the library context I<libctx> and the property query I<propq>.
     99
    95100=head1 BUGS
    96101
     
    99104=head1 RETURN VALUES
    100105
    101 PKCS7_sign() returns either a valid PKCS7 structure or NULL if an error
    102 occurred.  The error can be obtained from ERR_get_error(3).
     106PKCS7_sign_ex() and PKCS7_sign() return either a valid PKCS7 structure
     107or NULL if an error occurred.  The error can be obtained from ERR_get_error(3).
    103108
    104109=head1 SEE ALSO
     
    107112
    108113=head1 HISTORY
     114
     115The function PKCS7_sign_ex() was added in OpenSSL 3.0.
    109116
    110117The B<PKCS7_PARTIAL> flag, and the ability for B<certs>, B<signcert>,
     
    115122=head1 COPYRIGHT
    116123
    117 Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved.
     124Copyright 2002-2020 The OpenSSL Project Authors. All Rights Reserved.
    118125
    119 Licensed under the OpenSSL license (the "License").  You may not use
     126Licensed under the Apache License 2.0 (the "License").  You may not use
    120127this file except in compliance with the License.  You can obtain a copy
    121128in the file LICENSE in the source distribution or at
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette