[Opalvoip-svn] SF.net SVN: opalvoip:[34889] ptlib/trunk
Brought to you by:
csoutheren,
rjongbloed
From: <rjo...@us...> - 2016-07-28 11:51:09
|
Revision: 34889 http://sourceforge.net/p/opalvoip/code/34889 Author: rjongbloed Date: 2016-07-28 11:51:07 +0000 (Thu, 28 Jul 2016) Log Message: ----------- Renamed function to be consistent. Modified Paths: -------------- ptlib/trunk/include/ptclib/shttpsvc.h ptlib/trunk/src/ptclib/shttpsvc.cxx Modified: ptlib/trunk/include/ptclib/shttpsvc.h =================================================================== --- ptlib/trunk/include/ptclib/shttpsvc.h 2016-07-28 11:49:52 UTC (rev 34888) +++ ptlib/trunk/include/ptclib/shttpsvc.h 2016-07-28 11:51:07 UTC (rev 34889) @@ -77,10 +77,10 @@ const char * dn = NULL ///< Distinguished Name to use if creating new self signed certificate. ); - /** Set the server certificates to use. + /** Set the server credentials, certificates etc, to use. Must be called before ListenForHTTP() or https will not be supported. */ - bool SetServerCertificates( + bool SetServerCredentials( const PString & cert, ///< Certificate file or text string const PString & key, ///< Private key file or text string const PString & ca ///< Certificate authority file, directory or text string Modified: ptlib/trunk/src/ptclib/shttpsvc.cxx =================================================================== --- ptlib/trunk/src/ptclib/shttpsvc.cxx 2016-07-28 11:49:52 UTC (rev 34888) +++ ptlib/trunk/src/ptclib/shttpsvc.cxx 2016-07-28 11:51:07 UTC (rev 34889) @@ -166,11 +166,11 @@ key.Save(certificateFile, true); } - return SetServerCertificates(certificateFile, certificateFile, PString::Empty()); + return SetServerCredentials(certificateFile, certificateFile, PString::Empty()); } -bool PSecureHTTPServiceProcess::SetServerCertificates(const PString & cert, const PString & key, const PString & ca) +bool PSecureHTTPServiceProcess::SetServerCredentials(const PString & cert, const PString & key, const PString & ca) { if (m_sslContext == NULL) m_sslContext = new PSSLContext(PSSLContext::TLSv1); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |