Skip to content

Commit 367c55f

Browse files
committed
Update NEWS and UPGRADING for the OpenSSL ext CMS addition
1 parent 8583b8a commit 367c55f

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ PHP NEWS
102102
. Fixed bug #79665 (ini_get() and opcache_get_configuration() inconsistency).
103103
(cmb)
104104

105+
- OpenSSL:
106+
. Added Cryptographic Message Syntax (CMS) support. (Eliot Lear)
107+
105108
- PCRE:
106109
. Don't ignore invalid escape sequences. (sjon)
107110

UPGRADING

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,13 @@ PHP 8.0 UPGRADE NOTES
546546
compile-time warnings and replay them on the next include, even if it is
547547
served from cache.
548548

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+
549556
- Standard:
550557
. printf() and friends how support the %h and %H format specifiers. These
551558
are the same as %g and %G, but always use "." as the decimal separator,
@@ -650,6 +657,18 @@ PHP 8.0 UPGRADE NOTES
650657
. Added get_resource_id($resource) function, which returns the same value as
651658
(int) $resource. It provides the same functionality under a clearer API.
652659

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+
653672
- PCRE:
654673
. Added preg_last_error_msg(), which returns a human-readable message for
655674
the last PCRE error. It complements preg_last_error(), which returns an

0 commit comments

Comments
 (0)