aboutsummaryrefslogtreecommitdiff
path: root/include/NitrokeyManager.h
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-08-08 17:51:34 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-09 18:32:34 +0200
commita2da17c8608d25f64239047d0ff497adb015e411 (patch)
treec6d4b656280fe0b91903ac3398af8ac56c051ca6 /include/NitrokeyManager.h
parent8bb22cbc88d930f4e88989bfbce0d19dcd0887e2 (diff)
downloadlibnitrokey-a2da17c8608d25f64239047d0ff497adb015e411.tar.gz
libnitrokey-a2da17c8608d25f64239047d0ff497adb015e411.tar.bz2
Moving to shared ptr for device
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include/NitrokeyManager.h')
-rw-r--r--include/NitrokeyManager.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/NitrokeyManager.h b/include/NitrokeyManager.h
index be367fd..6fa096a 100644
--- a/include/NitrokeyManager.h
+++ b/include/NitrokeyManager.h
@@ -7,6 +7,7 @@
#include "stick10_commands.h"
#include "stick20_commands.h"
#include <vector>
+#include <memory>
namespace nitrokey {
using namespace nitrokey::device;
@@ -86,7 +87,7 @@ namespace nitrokey {
static NitrokeyManager *_instance;
bool connected;
- Device *device;
+ std::shared_ptr<Device> device;
bool is_valid_hotp_slot_number(uint8_t slot_number) const;
bool is_valid_totp_slot_number(uint8_t slot_number) const;