[dev] messages signed & encrypted with attached files --- FIX

Sebastian Calero Laguia scalero at datadec.es
Tue Jun 17 09:58:43 PDT 2003


Sorry, I don´t use cvs but these are the changes:

******  line 144  ******
                    } else {
                    --  $sig_result =
$this->_impSmime->verifySignature($signed_data);
                    --  $cert =
$this->_impSmime->getSignerCert($signed_data);
                    ++  $sig_result =
$this->_impSmime->verifySignature($mime->getContents());
                    ++  $cert =
$this->_impSmime->getSignerCert($mime->getContents());
                    }
                }

******  line 173  ******
        $mc = &new MIME_Contents($mime_message, array('download' =>
'download_attach', 'view' => 'view_attach'), array(&$contents));
        $mc->buildMessage();
 ++  $text .= '<table>' . $mc->getAttachments() . '</table>';
        $text .= '<table>' . $mc->getMessage(true) . '</table>';

******  line 237  ******
                if ($mime_message) {
                    if ($mime_message->getType() == 'multipart/signed') {
                        $mime_message->setInformation('smime_signenc',
true);
                        $mime_message->setInformation('smime_headers',
$this->_headers);
                ++   $mime_message->setContents($decrypted_data);
                ++   $mime_message->splitContents();
                    } else {
                        $msg .= $this->endTableCode();
                    }

******  line 245  ******
                    /* We need to stick the output into a MIME_Contents
                       object. */
                    $mc = &new MIME_Contents($mime_message, array('download'
=> 'download_attach', 'view' => 'view_attach'), array(&$contents));
                    $mc->buildMessage();
            ++   $msg .= '<table>' . $mc->getAttachments() . '</table>';
                    $msg .= '<table>' . $mc->getMessage(true) . '</table>';


Grettings...

Sebastian Calero
Datadec Online.
----- Original Message -----
From: "Chuck Hagenbuch" <chuck at horde.org>
To: <dev at lists.horde.org>
Sent: Tuesday, June 17, 2003 4:04 AM
Subject: Re: [dev] messages signed & encrypted with attached files --- FIX


> Quoting Sebastian Calero Laguia <scalero at datadec.es>:
>
> > I Attach the changes I made to the file "pkcs7.php" to solve:
> >
> > 1.- Show the files attached to encrypted only messages.
> > 2.- Show correctly signed & encrypted messages.
> >
> > The lines to add appear with '++' at the beginning and those to erase
> > with '--'.
>
> This is really hard to follow; can you send a cvs diff -u of the file
> instead?
>
> -chuck
>
> --
> Charles Hagenbuch, <chuck at horde.org>
> The alligators were there, too, in a bathtub inside the house.
>
>
> --
> Horde developers mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: dev-unsubscribe at lists.horde.org



More information about the dev mailing list