mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-16 06:56:41 +02:00
compile fix: doesn't compile after latest NetSSL refactoring
This commit is contained in:
parent
a33fb4a4b5
commit
92b1067a57
@ -12,14 +12,14 @@
|
|||||||
// execute, and transmit the Software, and to prepare derivative works of the
|
// execute, and transmit the Software, and to prepare derivative works of the
|
||||||
// Software, and to permit third-parties to whom the Software is furnished to
|
// Software, and to permit third-parties to whom the Software is furnished to
|
||||||
// do so, all subject to the following:
|
// do so, all subject to the following:
|
||||||
//
|
//
|
||||||
// The copyright notices in the Software and this entire statement, including
|
// The copyright notices in the Software and this entire statement, including
|
||||||
// the above license grant, this restriction and the following disclaimer,
|
// the above license grant, this restriction and the following disclaimer,
|
||||||
// must be included in all copies of the Software, in whole or in part, and
|
// must be included in all copies of the Software, in whole or in part, and
|
||||||
// all derivative works of the Software, unless such copies or derivative
|
// all derivative works of the Software, unless such copies or derivative
|
||||||
// works are solely in the form of machine-executable object code generated by
|
// works are solely in the form of machine-executable object code generated by
|
||||||
// a source language processor.
|
// a source language processor.
|
||||||
//
|
//
|
||||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
// FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
|
// FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
|
||||||
@ -151,12 +151,12 @@ void RSATest::createRSACipherLarge()
|
|||||||
void RSATest::testCertificate()
|
void RSATest::testCertificate()
|
||||||
{
|
{
|
||||||
X509Certificate cert("any.pem");
|
X509Certificate cert("any.pem");
|
||||||
Context::Ptr pContext(new Context("", "", false));
|
//Context::Ptr pContext(new Context(Context::SERVER_USE,"", "", false));
|
||||||
bool ok = cert.verify("www.appinf.com", pContext);
|
bool ok = cert.verify("www.appinf.com");
|
||||||
RSAKey key(cert);
|
RSAKey key(cert);
|
||||||
Cipher::Ptr pCipher = CipherFactory::defaultFactory().createCipher(key);
|
Cipher::Ptr pCipher = CipherFactory::defaultFactory().createCipher(key);
|
||||||
std::string val("lets do some encryption");
|
std::string val("lets do some encryption");
|
||||||
|
|
||||||
std::string enc = pCipher->encryptString(val);
|
std::string enc = pCipher->encryptString(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user