Re: openssl module for php

From: Date: Fri, 04 May 2001 20:36:19 +0000
Subject: Re: openssl module for php
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-53959@lists.php.net to get a copy of this message
> > I've used SSLeay back in 1996 once, and then a few weeks ago for my > patch. > > You don't need to be an openssl expert, but as with all cryptography you > > should have some basic understanding before using it. > > which is why i'm still confused on how you intend to get any of the > openssl functions to simply figure out the key type it is. especially if you > store it in PEM, much less DSA. The PHP code uses PEM_ASN1_read_bio to parse the PEM. This function works for both RSA and DSA key stored in PEM. It returns a pointer to a EVP_PKEY structure, which in turn has a variable type that tells which type of key this is. Sascha

« previous php.dev (#53959) next »