From 8583b8a9bf658a9058e7796513f8cf576d66e48b Mon Sep 17 00:00:00 2001 From: Eliot Lear Date: Mon, 9 Mar 2020 16:01:20 +0100 Subject: Add support for Cryptographic Message Syntax (CMS) It add CMS (RFC 5652) support, which is an update to PKCS7. The functions are analogous BUT NOT IDENTICAL to openssl_pkcs7*. In particular, support for different encodings (PEM, DER, SMIME) is now available. --- ext/openssl/tests/openssl_cms_encrypt_pem.phpt | 48 ++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 ext/openssl/tests/openssl_cms_encrypt_pem.phpt (limited to 'ext/openssl/tests/openssl_cms_encrypt_pem.phpt') diff --git a/ext/openssl/tests/openssl_cms_encrypt_pem.phpt b/ext/openssl/tests/openssl_cms_encrypt_pem.phpt new file mode 100644 index 0000000000..4b99b65465 --- /dev/null +++ b/ext/openssl/tests/openssl_cms_encrypt_pem.phpt @@ -0,0 +1,48 @@ +--TEST-- +openssl_cms_encrypt() pem test +--SKIPIF-- + +--FILE-- + +--EXPECTF-- +bool(true) +Now is the winter of our discontent. +true +true -- cgit v1.2.1