[ingo] Fwd: Re: [PHP-DEV] STARTTLS support for SIEVE

Jan Schneider jan at horde.org
Mon Dec 19 08:26:34 PST 2005

IIRC, we even use this approach in IMP's IMAP_Client already. It  
should be easy to implement this in Ingo for PHP5 too.
If we already have an enhancement ticket for it, it would be great is  
someone could update it with this information.

----- Weitergeleitete Nachricht von kingwez at gmail.com -----
      Datum: Mon, 19 Dec 2005 05:30:16 -0500
        Von: Wez Furlong <kingwez at gmail.com>
Antwort an: Wez Furlong <kingwez at gmail.com>
    Betreff: Re: [PHP-DEV] STARTTLS support for SIEVE
         An: Anish Mistry <mistry.7 at osu.edu>
         Cc: internals at lists.php.net

You've patched this at the transport level; while that will work, it's
architecturally incorrect.
STARTTLS is a protocol level thing, so you code would be better suited
as a wrapper.
You can implement wrappers in user-space
so you don't need to patch the C code.
In fact, you don't even need a wrapper for this functionality:

$s = fsockopen($host, $port);
// do capability negiotiation here
// ...
// now turn on crypto
stream_socket_enable_crypto($s, true,


On 12/19/05, Anish Mistry <mistry.7 at osu.edu> wrote:
> Attached is a patch to enable (SIEVE) STARTTLS support for fsockopen
> using stls://host.example.org
> I'm pretty sure I've got it to conform to the RFC:
> http://www.holtmann.org/email/sieve/draft-martin-managesieve-03.txt
> Currently it only works with SIEVE, but it could be easily extended to
> do SMTP (Send "EHLO hostname" first) and IMAP.
> Maybe something like sieve+stls:// and smtp+stls:// would be better
> for the separate STARTTLS setups.
> http://am-productions.biz/docs/patch-openssl-starttls.patch
> I'm sure there are a bunch of things "wrong" with how I've done this,
> so feel free to send suggestions.
> Thanks,
> --
> Anish Mistry

PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

----- Ende der weitergeleiteten Nachricht -----


Do you need professional PHP or Horde consulting?

More information about the ingo mailing list