Re: assymetric encryption functions based on OpenSSL

From: Date: Mon, 13 Nov 2000 20:31:18 +0000
Subject: Re: assymetric encryption functions based on OpenSSL
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.dev 
Request: Send a blank email to php-dev+get-37998@lists.php.net to get a copy of this message
At 09:24 PM 11/13/00 +0100, Stig Venaas wrote:
On Mon, Nov 13, 2000 at 02:20:14PM -0600, Andrei Zmievski wrote: On Mon, 13 Nov 2000, Stig Venaas wrote:
The advantage of the current way is that you can do: $fp = fopen("http://www.www.ww/cert.pem"); $x509 = openssl_read_x509($fp); How about both? I can check whether it's a string or a resource.
Sorry, but how is it better than: $x509 = openssl_read_x509("http://www.www.ww/cert.pem"); You're right, I thought this would be hard to do, but I guess I can use php_fopen_wrapper() behind the curtains. Will have a look at this.
As I mentioned, keep away from FILE *'s and from php_fopen_wrapper(). The extension will be much more robust if it works with strings. Andi --- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.dev (#37998) next »