Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49086 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 35683 invoked from network); 16 Jul 2010 07:54:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jul 2010 07:54:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.161.42 mail-fx0-f42.google.com Received: from [209.85.161.42] ([209.85.161.42:55862] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3D/83-12736-330104C4 for ; Fri, 16 Jul 2010 03:54:28 -0400 Received: by fxm17 with SMTP id 17so1046516fxm.29 for ; Fri, 16 Jul 2010 00:54:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=3omia+VwTBDNqzRnaMz/vr3NiJaAXVYSEcGeORbXM98=; b=pN2jb3vUb+UXBGr4Y6JuN703mGU3QiSAldd/FdER+GHXyQ3w+plDN0fVXj7WeBF/AA wnLtFn+6MpNPztZL2Wo84/Zsui3NDOD3ZSiTKfbXhfAESmwDzUjRyy7ov3dxgYJXgVcg a35rSC+YrD6ThIgt47C6FOUA6LEJd9pC0DjSw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=YHwQtpvZTKZnbDgp0Qag6ocWw4O9anqiID5yzm578E5VNBbFakFSr9rDtEuTDe+WBi BKF/aDhIyI0AwGdOGaKVHoEdkk/ZU/YbQEcBQRi+j+nl/H3B2PSJed1F+oy6AZBldZb3 68pqS14F7wInlma1NRomdbJOB+J8flVRNxQhg= MIME-Version: 1.0 Received: by 10.223.107.141 with SMTP id b13mr339567fap.19.1279266864355; Fri, 16 Jul 2010 00:54:24 -0700 (PDT) Received: by 10.223.125.84 with HTTP; Fri, 16 Jul 2010 00:54:24 -0700 (PDT) In-Reply-To: <4C400E13.1000704@quis.cx> References: <4C400E13.1000704@quis.cx> Date: Fri, 16 Jul 2010 09:54:24 +0200 Message-ID: To: Jille Timmermans Cc: internals@lists.php.net, Paul van Brouwershaven Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] In memory support for openssl_pkcs7_* From: pierre.php@gmail.com (Pierre Joye) hi, On Fri, Jul 16, 2010 at 9:45 AM, Jille Timmermans wrote: > For the record: I created a proof-of-concept patch which changes > openssl_pkcs7_sign() to use the input filename as a string instead as a > filename. Paul has tested this and it seems to work. > > I don't know what the best way is to go from here. We could add an extra > argument to all those functions which toggles whether they are threated as > filenames or not. Or we could let all the functies also accept streams, > etc.. > Is there a maintainer of the OpenSSL (pcks7) functions? > > -- Jille > > Op 15-7-2010 11:15, Paul van Brouwershaven schreef: >> >> Hi, >> >> The PHP functions openssl_pkcs7_(sign|encrypt|decrypt|verify) do require >> files to be executed. In >> many cases this will create the unintended requirement of temporary files. >> In compare with >> openssl_(sign|encrypt|decrypt|verify|...) which are doing almost the same >> thing this is a strange >> behavior. >> >> When we look at the purpose of openssl_pkcs7_* (working with digital >> signatures in mail), you would >> not expect to work with files instead of strings for this few data. Can you open a feature request for these changes/features please? So I won't lost track of them. Thanks for your workd and feedbacks, Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org