Skip to content
Browse files

provide default constructors for async batons

  • Loading branch information...
1 parent b9ef82b commit aa998a7171b8122bc4ddd439eb5fd334aea3f373 @defunctzombie defunctzombie committed Sep 5, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/bcrypt_node.cc
View
4 src/bcrypt_node.cc
@@ -123,6 +123,8 @@ struct salt_baton : baton_base {
std::string salt;
int rand_len;
ssize_t rounds;
+
+ salt_baton() : salt(), rand_len(0), rounds(0) {}
};
struct encrypt_baton : baton_base {
@@ -135,6 +137,8 @@ struct compare_baton : baton_base {
std::string input;
std::string encrypted;
bool result;
+
+ compare_baton(): input(), encrypted(), result(false) {}
};
int GetSeed(uint8_t* seed, int size) {

0 comments on commit aa998a7

Please sign in to comment.
Something went wrong with that request. Please try again.