diff options
| author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-07-20 07:32:54 +0200 | 
|---|---|---|
| committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-01 13:54:45 +0200 | 
| commit | 64042e16048e61c5b83401eadc5bce1f6bd05c46 (patch) | |
| tree | cda4168295675acc304b3786934b156703e8b1cd /include | |
| parent | a5d11eab6003a6ed0f7c78ecb7136b28ee938a23 (diff) | |
| download | libnitrokey-64042e16048e61c5b83401eadc5bce1f6bd05c46.tar.gz libnitrokey-64042e16048e61c5b83401eadc5bce1f6bd05c46.tar.bz2 | |
Initializing with external function
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/stick10_commands.h | 12 | 
1 files changed, 0 insertions, 12 deletions
| diff --git a/include/stick10_commands.h b/include/stick10_commands.h index b7f6de0..d15ee73 100644 --- a/include/stick10_commands.h +++ b/include/stick10_commands.h @@ -507,15 +507,6 @@ class WriteGeneralConfig : Command<CommandID::WRITE_CONFIG> {        CommandTransaction;  }; -//            struct clear_on_const { -//                clear_on_const(){ -//                    initialize(); -//                } -//                void initialize(){ -//                    bzero(this, sizeof(*this)); -//                } -//        }; -  class FirstAuthenticate : Command<CommandID::FIRST_AUTHENTICATE> {   public:    struct CommandPayload { @@ -523,7 +514,6 @@ class FirstAuthenticate : Command<CommandID::FIRST_AUTHENTICATE> {      uint8_t temporary_password[25];      bool isValid() const { return true; } -    void initialize(){ bzero(this, sizeof(*this)); }      std::string dissect() const {        std::stringstream ss; @@ -556,8 +546,6 @@ class Authorize : Command<CommandID::AUTHORIZE> {      uint32_t crc_to_authorize;      uint8_t temporary_password[25]; -      void initialize(){ bzero(this, sizeof(*this)); } -        std::string dissect() const {        std::stringstream ss;        ss << " crc_to_authorize:\t" << std::hex << std::setw(2) << std::setfill('0') << crc_to_authorize<< std::endl; | 
