From e248596baca1b192787d3d717abda5158cc38d65 Mon Sep 17 00:00:00 2001 From: Nils Larsch Date: Fri, 8 Apr 2005 22:49:57 +0000 Subject: [PATCH] improve docu of SSL_CTX_use_PrivateKey() --- doc/ssl/SSL_CTX_use_certificate.pod | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/ssl/SSL_CTX_use_certificate.pod b/doc/ssl/SSL_CTX_use_certificate.pod index 48c888c337..10be95fdb1 100644 --- a/doc/ssl/SSL_CTX_use_certificate.pod +++ b/doc/ssl/SSL_CTX_use_certificate.pod @@ -77,6 +77,12 @@ SSL_CTX_use_PrivateKey() adds B as private key to B. SSL_CTX_use_RSAPrivateKey() adds the private key B of type RSA to B. SSL_use_PrivateKey() adds B as private key to B; SSL_use_RSAPrivateKey() adds B as private key of type RSA to B. +If a certificate has already been set and the private does not belong +to the certificate an error is returned. To change a certificate, private +key pair the new certificate needs to be set with SSL_use_certificate() +or SSL_CTX_use_certificate() before setting the private key with +SSL_CTX_use_PrivateKey() or SSL_use_PrivateKey(). + SSL_CTX_use_PrivateKey_ASN1() adds the private key of type B stored at memory location B (length B) to B. @@ -154,4 +160,10 @@ L, L, L +=head1 HISTORY + +Support for DER encoded private keys (SSL_FILETYPE_ASN1) in +SSL_CTX_use_PrivateKey_file() and SSL_use_PrivateKey_file() was added +in 0.9.8 . + =cut -- 2.25.1