mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-poco.git
synced 2025-11-02 11:38:08 +00:00
RSAKeyImpl #2201
This commit is contained in:
@@ -11,6 +11,9 @@
|
||||
#include "PKCS12ContainerTest.h"
|
||||
#include "CppUnit/TestCaller.h"
|
||||
#include "CppUnit/TestSuite.h"
|
||||
#include "Poco/Crypto/EVPPKey.h"
|
||||
#include "Poco/Crypto/RSAKey.h"
|
||||
#include "Poco/Crypto/KeyPairImpl.h"
|
||||
#include "Poco/Environment.h"
|
||||
#include "Poco/Path.h"
|
||||
#include "Poco/File.h"
|
||||
@@ -20,6 +23,7 @@
|
||||
#include <fstream>
|
||||
|
||||
|
||||
|
||||
using namespace Poco::Crypto;
|
||||
using Poco::Environment;
|
||||
using Poco::Path;
|
||||
@@ -82,6 +86,9 @@ void PKCS12ContainerTest::full(const PKCS12Container& pkcs12)
|
||||
EVPPKey pKey = pkcs12.getKey();
|
||||
assert (EVP_PKEY_RSA == pKey.type());
|
||||
|
||||
RSAKey rsa(pkcs12);
|
||||
assert (rsa.impl()->type() == KeyPairImpl::KT_RSA_IMPL);
|
||||
|
||||
assert (pkcs12.hasX509Certificate());
|
||||
fullCert(pkcs12.getX509Certificate());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user