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_encrypt.pod

    r91772 r94082  
    33=head1 NAME
    44
    5 PKCS7_encrypt - create a PKCS#7 envelopedData structure
     5PKCS7_encrypt_ex, PKCS7_encrypt
     6- create a PKCS#7 envelopedData structure
    67
    78=head1 SYNOPSIS
     
    910 #include <openssl/pkcs7.h>
    1011
     12 PKCS7 *PKCS7_encrypt_ex(STACK_OF(X509) *certs, BIO *in,
     13                         const EVP_CIPHER *cipher, int flags,
     14                         OSSL_LIB_CTX *libctx, const char *propq);
    1115 PKCS7 *PKCS7_encrypt(STACK_OF(X509) *certs, BIO *in, const EVP_CIPHER *cipher,
    1216                      int flags);
     
    1418=head1 DESCRIPTION
    1519
    16 PKCS7_encrypt() creates and returns a PKCS#7 envelopedData structure. B<certs>
    17 is a list of recipient certificates. B<in> is the content to be encrypted.
    18 B<cipher> is the symmetric cipher to use. B<flags> is an optional set of flags.
    19 
    20 =head1 NOTES
     20PKCS7_encrypt_ex() creates and returns a PKCS#7 envelopedData structure.
     21I<certs> is a list of recipient certificates. I<in> is the content to be
     22encrypted. I<cipher> is the symmetric cipher to use. I<flags> is an optional set
     23of flags. The library context I<libctx> and the property query I<propq> are used
     24when retrieving algorithms from providers.
    2125
    2226Only RSA keys are supported in PKCS#7 and envelopedData so the recipient
     
    5357suitable for streaming I/O: no data is read from the BIO B<in>.
    5458
    55 =head1 NOTES
    56 
    5759If the flag B<PKCS7_STREAM> is set the returned B<PKCS7> structure is B<not>
    5860complete and outputting its contents via a function that does not
     
    6567BIO_new_PKCS7().
    6668
     69PKCS7_encrypt() is similar to PKCS7_encrypt_ex() but uses default
     70values of NULL for the library context I<libctx> and the property query I<propq>.
     71
    6772=head1 RETURN VALUES
    6873
    69 PKCS7_encrypt() returns either a PKCS7 structure or NULL if an error occurred.
    70 The error can be obtained from ERR_get_error(3).
     74PKCS7_encrypt_ex() and PKCS7_encrypt() return either a PKCS7 structure
     75or NULL if an error occurred. The error can be obtained from ERR_get_error(3).
    7176
    7277=head1 SEE ALSO
     
    7681=head1 HISTORY
    7782
     83The function PKCS7_encrypt_ex() was added in OpenSSL 3.0.
     84
    7885The B<PKCS7_STREAM> flag was added in OpenSSL 1.0.0.
    7986
    8087=head1 COPYRIGHT
    8188
    82 Copyright 2002-2016 The OpenSSL Project Authors. All Rights Reserved.
     89Copyright 2002-2020 The OpenSSL Project Authors. All Rights Reserved.
    8390
    84 Licensed under the OpenSSL license (the "License").  You may not use
     91Licensed under the Apache License 2.0 (the "License").  You may not use
    8592this file except in compliance with the License.  You can obtain a copy
    8693in 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