@@ -546,6 +546,13 @@ PHP 8.0 UPGRADE NOTES
546
546
compile-time warnings and replay them on the next include, even if it is
547
547
served from cache.
548
548
549
+ - OpenSSL:
550
+ . Added Cryptographic Message Syntax (CMS) (RFC 5652) support composed of
551
+ functions for encryption, decryption, signing, verifying and reading. The
552
+ API is similar to the API for PKCS #7 functions with an addition of new
553
+ encoding constants: OPENSSL_ENCODING_DER, OPENSSL_ENCODING_SMIME and
554
+ OPENSSL_ENCODING_PEM.
555
+
549
556
- Standard:
550
557
. printf() and friends how support the %h and %H format specifiers. These
551
558
are the same as %g and %G, but always use "." as the decimal separator,
@@ -650,6 +657,18 @@ PHP 8.0 UPGRADE NOTES
650
657
. Added get_resource_id($resource) function, which returns the same value as
651
658
(int) $resource. It provides the same functionality under a clearer API.
652
659
660
+ - OpenSSL:
661
+ . Added openssl_cms_encrypt() encrypts the message in the file with the
662
+ certificates and outputs the result to the supplied file.
663
+ . Added openssl_cms_decrypt() that decrypts the S/MIME message in the file
664
+ and outputs the results to the supplied file.
665
+ . Added openssl_cms_read() that exports the CMS file to an array of PEM
666
+ certificates.
667
+ . Added openssl_cms_sign() that signs the MIME message in the file with
668
+ a cert and key and output the result to the supplied file.
669
+ . Added openssl_cms_verify() that verifies that the data block is intact,
670
+ the signer is who they say they are, and returns the certs of the signers.
671
+
653
672
- PCRE:
654
673
. Added preg_last_error_msg(), which returns a human-readable message for
655
674
the last PCRE error. It complements preg_last_error(), which returns an
0 commit comments