@@ -30,8 +30,8 @@ function openssl_cipher_iv_length(string $cipher_algo): int
3030 * @param string $output_filename The name of the file to deposit the decrypted content.
3131 * @param $certificate The name of the file containing a certificate of the recipient.
3232 * @param $private_key The name of the file containing a PKCS#8 key.
33- * @param int $encoding The encoding of the input file. One of OPENSSL_CMS_SMIME ,
34- * OPENSLL_CMS_DER or OPENSSL_CMS_PEM .
33+ * @param int $encoding The encoding of the input file. One of OPENSSL_ENCODING_SMIME ,
34+ * OPENSSL_ENCODING_DER or OPENSSL_ENCODING_PEM .
3535 * @throws OpensslException
3636 *
3737 */
@@ -60,8 +60,8 @@ function openssl_cms_decrypt(string $input_filename, string $output_filename, $c
6060 * @param $certificate Recipients to encrypt to.
6161 * @param $headers Headers to include when S/MIME is used.
6262 * @param int $flags Flags to be passed to CMS_sign.
63- * @param int $encoding An encoding to output. One of OPENSSL_CMS_SMIME ,
64- * OPENSLL_CMS_DER or OPENSSL_CMS_PEM .
63+ * @param int $encoding An encoding to output. One of OPENSSL_ENCODING_SMIME ,
64+ * OPENSSL_ENCODING_DER or OPENSSL_ENCODING_PEM .
6565 * @param int $cipher_algo A cypher to use.
6666 * @throws OpensslException
6767 *
@@ -105,8 +105,8 @@ function openssl_cms_read(string $input_filename, array &$certificates): void
105105 * See Key/Certificate parameters for a list of valid values.
106106 * @param $headers An array of headers to be included in S/MIME output.
107107 * @param int $flags Flags to be passed to cms_sign.
108- * @param int $encoding The encoding of the output file. One of OPENSSL_CMS_SMIME ,
109- * OPENSLL_CMS_DER or OPENSSL_CMS_PEM .
108+ * @param int $encoding The encoding of the output file. One of OPENSSL_ENCODING_SMIME ,
109+ * OPENSSL_ENCODING_DER or OPENSSL_ENCODING_PEM .
110110 * @param $untrusted_certificates_filename Intermediate certificates to be included in the signature.
111111 * @throws OpensslException
112112 *
@@ -136,8 +136,8 @@ function openssl_cms_sign(string $input_filename, string $output_filename, $cert
136136 * @param $content A file pointing to the content when signatures are detached.
137137 * @param $pk7
138138 * @param $sigfile A file to save the signature to.
139- * @param int $encoding The encoding of the input file. One of OPENSSL_CMS_SMIME ,
140- * OPENSLL_CMS_DER or OPENSSL_CMS_PEM .
139+ * @param int $encoding The encoding of the input file. One of OPENSSL_ENCODING_SMIME ,
140+ * OPENSSL_ENCODING_DER or OPENSSL_ENCODING_PEM .
141141 * @throws OpensslException
142142 *
143143 */
0 commit comments