parent
bf7dcbd080
commit
9140217aa7
1 changed files with 2 additions and 2 deletions
|
@ -612,7 +612,7 @@
|
|||
continue;
|
||||
}
|
||||
|
||||
fputs($fp, "EHLO www.cacert.org\r\n");
|
||||
fputs($fp, "EHLO ping.cacert.org\r\n");
|
||||
do {
|
||||
$line = fgets($fp, 4096);
|
||||
$has_starttls |= substr(trim($line),4) == "STARTTLS";
|
||||
|
@ -634,7 +634,7 @@
|
|||
|
||||
stream_socket_enable_crypto($fp, true, STREAM_CRYPTO_METHOD_TLSv1_0_CLIENT|STREAM_CRYPTO_METHOD_TLSv1_1_CLIENT|STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT);
|
||||
|
||||
fputs($fp, "EHLO www.cacert.org\r\n");
|
||||
fputs($fp, "EHLO ping.cacert.org\r\n");
|
||||
do {
|
||||
$line = fgets($fp, 4096);
|
||||
} while(substr($line, 0, 4) == "250-");
|
||||
|
|
Loading…
Reference in a new issue