mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +00:00
Add smart pointers to CKey objects.
This commit is contained in:
4
key.h
4
key.h
@@ -13,6 +13,8 @@
|
||||
#include <openssl/ecdsa.h>
|
||||
#include <openssl/obj_mac.h>
|
||||
|
||||
#include <boost/shared_ptr.hpp>
|
||||
|
||||
#include "SecureAllocator.h"
|
||||
#include "NewcoinAddress.h"
|
||||
#include "uint256.h"
|
||||
@@ -85,6 +87,8 @@ protected:
|
||||
bool fSet;
|
||||
|
||||
public:
|
||||
typedef boost::shared_ptr<CKey> pointer;
|
||||
|
||||
CKey()
|
||||
{
|
||||
pkey = EC_KEY_new_by_curve_name(NID_secp256k1);
|
||||
|
||||
Reference in New Issue
Block a user