summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 253ec80)
raw | patch | inline | side by side (parent: 253ec80)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 1 Jul 2008 06:46:07 +0000 (06:46 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 1 Jul 2008 06:46:07 +0000 (06:46 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11488 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/mail/personal/mail/sieve/class_sieve.inc | patch | blob | history |
diff --git a/gosa-plugins/mail/personal/mail/sieve/class_sieve.inc b/gosa-plugins/mail/personal/mail/sieve/class_sieve.inc
index e63d35b5fc633decf292b02195ed1f3fcba91215..b38fe8b2e3e341fd5e27568c85b1d2001e18078c 100644 (file)
/* Check if PHP supports TLS encryption for sockets
*/
if(function_exists("stream_socket_enable_crypto")){
-
if (@ fputs ($this->fp, "STARTTLS\r\n") === false) {
$this->error_raw = "fputs() returned 'false'"; return (false);
} @ $linha = fgets ($this->fp, 1024); if ($linha === false) {
$this->error_raw = "expected an 'OK', but server replied: '" . trim ($linha) . "'"; return (false);
} if (! @ stream_socket_enable_crypto ($this->fp, true, STREAM_CRYPTO_METHOD_TLS_CLIENT)) {
$this->error_raw = "stream_socket_enable_crypto() returned 'false'"; return (false);
- }else{
-# echo "Done";
}
}
}