php-src/ext/openssl/tests
Peter Kokot f1d7e3ca0b Sync leading and final newlines in *.phpt sections
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.

According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-15 04:31:31 +02:00
..
001.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
74651.pem Fix bug #74651 - check EVP_SealInit as it can return -1 2017-07-04 19:30:56 -07:00
bug25614.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug28382.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug28382cert.txt
bug36732.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug37820.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug37820cert.pem
bug37820key.pem
bug38255.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug38261.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug39217.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug39217cert1.txt
bug39217cert2.txt
bug41033.pem
bug41033.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug41033pub.pem
bug41353.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug46127.pem
bug46127.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug47828.phpt
bug48182.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug54060.phpt
bug54061.phpt
bug54992-ca.pem
bug54992.pem
bug54992.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
bug55259.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
bug55646.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
bug60632.phpt yet two test fixes in openssl in 5.6 2016-02-16 08:28:10 +01:00
bug61124.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
bug61930.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
bug64802.pem
bug64802.phpt
bug65538_001.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
bug65538_002.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
bug65538_003.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
bug65538.phar
bug65698.crt
bug65698.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
bug65729.pem
bug65729.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug66501.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug67403.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
bug68265.pem
bug68265.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
bug68879.pem
bug68879.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
bug68912.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug68920.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
bug69215-ca.pem
bug69215-client.pem
bug69215-server.pem
bug69215.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
bug70395.phpt
bug70438.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
bug71475.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
bug71917.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
bug72165.phpt Re-fix #72165 2016-05-06 09:30:41 +02:00
bug72333.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
bug72336.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
bug72362.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
bug73072.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
bug73478.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
bug73711.cnf Fix bug #73711 (Segfault in openssl_pkey_new when generating DSA or DH key) 2017-04-23 20:30:14 +01:00
bug73711.phpt Fix bug #73711 (Segfault in openssl_pkey_new when generating DSA or DH key) 2017-04-23 20:30:14 +01:00
bug73833.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
bug74022_2.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
bug74022.pfx Fixed #74022 PHP Fast CGI crashes when reading from a pfx file. 2017-02-02 12:48:12 +01:00
bug74022.phpt Fixed #74022 PHP Fast CGI crashes when reading from a pfx file. 2017-02-02 12:48:12 +01:00
bug74099.phpt Fixed #74099 - Memory leak with openssl_encrypt() 2017-02-17 21:23:16 +01:00
bug74159.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
bug74341.phpt Fixed bug #74341 2017-04-02 01:04:32 +02:00
bug74402.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
bug74651.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
bug74720_0.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
bug74720_1.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
bug74798.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
bug74903.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
bug75307.phpt Fix bug #75307 Wrong reflection for openssl_open function 2017-10-27 16:06:01 +01:00
bug76296.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
bug76705.pem Fix bug #76705 (unusable ssl => peer_fingerprint in stream_context_create()) 2018-08-19 20:14:26 +01:00
bug76705.phpt Fix bug #76705 (unusable ssl => peer_fingerprint in stream_context_create()) 2018-08-19 20:14:26 +01:00
capture_peer_cert_001.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
cert.crt
cert.csr Rename and clean up OpenSSL tests 2016-02-03 16:20:27 +00:00
cert.p7b Add openssl_pkcs7_read and output P7B in openssl_pkcs7_verify 2017-06-22 20:36:23 +01:00
check_default_conf_path.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
cipher_tests.inc Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
cve2013_4073.pem
cve2013_4073.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
cve-2013-6420.crt
cve-2013-6420.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
ecc.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
openssl_csr_export_bacis.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
openssl_csr_export_to_file_basic.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
openssl_csr_get_public_key_basic.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
openssl_csr_get_subject_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
openssl_csr_new_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
openssl_csr_sign_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
openssl_decrypt_basic.phpt Add OPENSSL_DONT_ZERO_PAD_KEY constant to prevent key padding 2017-06-25 18:08:50 +01:00
openssl_decrypt_ccm.phpt Merge branch 'PHP-7.1' into PHP-7.2 2018-06-21 16:47:08 +01:00
openssl_decrypt_error.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
openssl_decrypt_gcm.phpt Merge branch 'PHP-7.1' into PHP-7.2 2018-06-21 16:47:08 +01:00
openssl_digest_basic.phpt
openssl_encrypt_ccm.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
openssl_encrypt_crash.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
openssl_encrypt_error.phpt Add OPENSSL_DONT_ZERO_PAD_KEY constant to prevent key padding 2017-06-25 18:08:50 +01:00
openssl_encrypt_gcm.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
openssl_error_string_basic.phpt Backport changes for OpenSSL 1.1.1 CI integration 2018-09-13 11:03:42 +02:00
openssl_free_key.phpt Add OpenSSL 1.1.0 support to PHP 7.0 2017-04-07 19:21:33 +01:00
openssl_get_cipher_methods.phpt
openssl_get_md_methods.phpt
openssl_open_basic.phpt Rename and clean up OpenSSL tests 2016-02-03 16:20:27 +00:00
openssl_pbkdf2_basic.phpt Rename and clean up OpenSSL tests 2016-02-03 16:20:27 +00:00
openssl_peer_fingerprint_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
openssl_pkcs7_decrypt_basic.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
openssl_pkcs7_decrypt_error.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
openssl_pkcs7_encrypt_basic.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
openssl_pkcs7_read_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
openssl_pkcs7_sign_basic.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
openssl_pkcs7_verify_basic.phpt Relax test condition, as OpenSSL 1.1.x out differs in EOL only 2017-06-24 00:25:51 +02:00
openssl_pkcs12_export_basic.phpt Set different invalid path in openssl_pkcs12_export so it is more unlikely to exist 2017-10-30 16:40:55 +00:00
openssl_pkcs12_export_to_file_basic.phpt Fix clean up for openssl_pkcs12_export_to_file_basic 2017-10-22 18:54:15 +01:00
openssl_pkcs12_read_basic.phpt openssl: Add openssl_pkcs12_(read, export) tests 2017-06-18 19:02:51 +01:00
openssl_pkey_export_basic.phpt Merge branch 'PHP-7.0' into PHP-7.1 2017-10-30 16:42:23 +00:00
openssl_pkey_get_details_basic.phpt Adds initial support to generate and work with ECC public key pair 2016-06-26 16:15:25 +01:00
openssl_pkey_new_basic.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
openssl_pkey_new_error.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
openssl_private_decrypt_basic.phpt Rename and clean up OpenSSL tests 2016-02-03 16:20:27 +00:00
openssl_private_encrypt_basic.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
openssl_public_decrypt_basic.phpt Rename and clean up OpenSSL tests 2016-02-03 16:20:27 +00:00
openssl_public_encrypt_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
openssl_random_pseudo_bytes_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
openssl_seal_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
openssl_sign_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
openssl_spki_export_basic.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
openssl_spki_export_challenge_basic.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
openssl_spki_new_basic.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
openssl_spki_verify_basic.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
openssl_verify_basic.phpt Rename and clean up OpenSSL tests 2016-02-03 16:20:27 +00:00
openssl_x509_check_private_key_basic.phpt Extend openssl_x509_check_private_key to test resource cert 2017-10-30 16:40:55 +00:00
openssl_x509_checkpurpose_basic.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
openssl_x509_export_basic.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
openssl_x509_export_to_file_basic.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
openssl_x509_fingerprint_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
openssl_x509_free_basic.phpt Split and clean up OpenSSL X509 tests 2016-02-04 16:51:36 +00:00
openssl_x509_parse_basic.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
openssl_x509_read_basic.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
openssl.cnf Add oid_section to the testing openssl.cnf 2017-04-27 15:09:58 +01:00
p12_with_extra_certs.p12
peer_verification.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
private_ec.key
private_rsa_1024.key
private_rsa_2048_pass_php.key Add test for openssl_error_string 2016-06-05 17:23:05 +01:00
private_rsa_2048.key Add private RSA keys with 2048 and 4096 bit long modulus 2016-01-31 13:57:00 +00:00
private_rsa_4096.key Add private RSA keys with 2048 and 4096 bit long modulus 2016-01-31 13:57:00 +00:00
private.crt openssl: Add openssl_pkcs12_(read, export) tests 2017-06-18 19:02:51 +01:00
public_ec.key
public.crt openssl: Add openssl_pkcs12_(read, export) tests 2017-06-18 19:02:51 +01:00
public.key
san_peer_matching.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
san-ca.pem
san-cert.pem
ServerClientTestCase.inc Trim trailing whitespace in source code files 2018-10-13 14:14:50 +02:00
session_meta_capture.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
signed.eml openssl: Add basic openssl_pkcs7_verify tests 2017-06-01 08:12:25 +01:00
sni_server_ca.pem Use correct certs for SNI server tests 2018-01-30 19:58:40 +00:00
sni_server_cs_cert.pem Use correct certs for SNI server tests with separate key and cert 2018-01-30 20:08:19 +00:00
sni_server_cs_key.pem Use correct certs for SNI server tests with separate key and cert 2018-01-30 20:08:19 +00:00
sni_server_cs.pem Use correct certs for SNI server tests 2018-01-30 19:58:40 +00:00
sni_server_key_cert.phpt Make new openssl ext tests in 7.2 consitent 2018-06-21 17:02:44 +01:00
sni_server_uk_cert.pem Use correct certs for SNI server tests with separate key and cert 2018-01-30 20:08:19 +00:00
sni_server_uk_key.pem Use correct certs for SNI server tests with separate key and cert 2018-01-30 20:08:19 +00:00
sni_server_uk.pem Use correct certs for SNI server tests 2018-01-30 19:58:40 +00:00
sni_server_us_cert.pem Use correct certs for SNI server tests with separate key and cert 2018-01-30 20:08:19 +00:00
sni_server_us_key.pem Use correct certs for SNI server tests with separate key and cert 2018-01-30 20:08:19 +00:00
sni_server_us.pem Use correct certs for SNI server tests 2018-01-30 19:58:40 +00:00
sni_server.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
stream_crypto_flags_001.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
stream_crypto_flags_002.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
stream_crypto_flags_003.phpt Sync leading and final newlines in *.phpt sections 2018-10-15 04:31:31 +02:00
stream_crypto_flags_004.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
stream_security_level.phpt Fix stream_security_level.phpt with OpenSSL 1.1.1 2018-09-02 20:00:08 +01:00
stream_server_reneg_limit.phpt Fix ssl stream reneg limit test to print only after first renegotiation 2018-09-09 18:53:55 +01:00
stream_verify_peer_name_001.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
stream_verify_peer_name_002.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
stream_verify_peer_name_003.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
streams_crypto_method.pem
streams_crypto_method.phpt Make code in openssl ext tests more consistent 2018-06-21 16:38:19 +01:00
tls_wrapper.phpt Make new openssl ext tests in 7.2 consitent 2018-06-21 17:02:44 +01:00
tlsv1.0_wrapper.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
tlsv1.1_wrapper.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00
tlsv1.2_wrapper.phpt Trim trailing whitespace in *.phpt 2018-10-14 19:44:14 +02:00