Re: openssl module for php

From: Date: Fri, 04 May 2001 19:12:27 +0000
Subject: Re: openssl module for php
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-53927@lists.php.net to get a copy of this message
On 2001-05-04 19:05:05, "spencer 'sporty' portee" <sportee@mail.communityconnect.com> wrote: > > On Fri, May 04, 2001 at 07:22:03PM +0200, Sascha Kettler wrote: > > > You won't need to pass the algorithm by an arg, as the key already contains > > > the algorithm identification (pkey->type). I haven't used any DSA encryption > > > yet, but maybe you can just add the code to the switch statements. > > but if its pem encoded, you need to use a proper algorithm to read it in, no? > > ala PEM_ASN1_read_bio( ... ) key = (EVP_PKEY *) PEM_ASN1_read_bio( (char *(*)())d2i_PrivateKey, PEM_STRING_EVP_PKEY, b, NULL, NULL, passphrase); We currently use this code for the private key, so it looks like we don't care what kind of key it is; openssl figures it out and we can find out by looking at key->type. Or am I missing something? --Wez.

« previous php.dev (#53927) next »