Hi,

SSL_CTX_use_certificate.pod indicates that SSL_CTX_use_PrivateKey_file
accepts private keys in either SSL_FILETYPE_ASN1 or SSL_FILETYPE_PEM.
However, the function in the ssl_rsa.c file clearly doesn't support ASN1.

So either the docs don't match with the intent of the code to only
support SSL_FILETYPE_PEM or someone forgot to add the case to handle
SSL_FILETYPE_ASN1. Seems unlikely that this was forgotten since the
function has a 'if(type = SSL_FILETYPE_PEM)' case but doesn't have a
SSL_FILETYPE_ASN1 case.

So this patch updates the doc file.

Thanks,
Walter

Index: SSL_CTX_use_certificate.pod
================================================== =================
RCS file:
/usr/local/cvs/openssl/openssl/doc/ssl/SSL_CTX_use_certificate.pod,v
retrieving revision 1.8
diff -u -r1.8 SSL_CTX_use_certificate.pod
--- SSL_CTX_use_certificate.pod 2005/03/30 11:50:14 1.8
+++ SSL_CTX_use_certificate.pod 2005/04/05 06:49:26
@@ -86,8 +86,8 @@
key to B.

SSL_CTX_use_PrivateKey_file() adds the first private key found in
-B to B. The formatting B of the certificate must be
specified
-from the known types SSL_FILETYPE_PEM, SSL_FILETYPE_ASN1.
+B to B. Currently, the only supported file format for the
private
+key is SSL_FILETYPE_PEM.
SSL_CTX_use_RSAPrivateKey_file() adds the first private RSA key found in
B to B. SSL_use_PrivateKey_file() adds the first private
key found
in B to B; SSL_use_RSAPrivateKey_file() adds the first private

__________________________________________________ ____________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager majordomo@openssl.org