Re: [PHP-DEV] assymetric encryption functions based on OpenSSL From: Stig Venaas (Stig.Venaas <email protected>)
Date: 11/13/00

On Mon, Nov 13, 2000 at 02:12:40PM -0600, Andrei Zmievski wrote:
> On Mon, 13 Nov 2000, Sterling Hughes wrote:
> > I see some on the website given in the e-mail: http://www.venaas.no/php/ :)
>
> Hmm, I wonder if it'd better to just pass the certificate file name to
> the functions instead of requiring the user to open them and pass the
> file pointer...

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.

Stig

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>