@@ -29,7 +29,7 @@ static const std::unordered_map< SUBSET, std::string > CHARACTER_MAP = {
29
29
void _add_arguments ( argparse::ArgumentParser & );
30
30
31
31
// get values required to generate salt
32
- std::unordered_map<std::string, std::string> create_salt_profile ( argparse::ArgumentParser );
32
+ std::unordered_map<std::string, std::string> create_salt_profile ( argparse::ArgumentParser & );
33
33
34
34
// get salt value from site, login and counter hex value
35
35
std::string _get_some_salt ( std::unordered_map<std::string, std::string> );
@@ -38,7 +38,7 @@ std::string _get_some_salt( std::unordered_map<std::string, std::string> );
38
38
BigInt calculate_entropy ( std::string, std::string );
39
39
40
40
// get rules like uppercase? lowercase? ...
41
- std::vector< SUBSET > _get_rules ( argparse::ArgumentParser );
41
+ std::vector< SUBSET > _get_rules ( argparse::ArgumentParser & );
42
42
43
43
// get characters based on the rules
44
44
std::string _get_set_of_characters ( std::vector< SUBSET > );
@@ -155,7 +155,7 @@ std::string _get_some_salt( std::unordered_map<std::string, std::string> profile
155
155
return (profile[ " site" ] + profile[ " login" ] + util::int_to_hexstr ( profile[ " counter" ] ));
156
156
}
157
157
158
- std::unordered_map<std::string, std::string> create_salt_profile ( argparse::ArgumentParser args )
158
+ std::unordered_map<std::string, std::string> create_salt_profile ( argparse::ArgumentParser & args )
159
159
{
160
160
std::unordered_map<std::string, std::string> profile;
161
161
profile.insert ( { " site" , args.get <std::string>( " --site" ) });
@@ -164,7 +164,7 @@ std::unordered_map<std::string, std::string> create_salt_profile( argparse::Argu
164
164
profile.insert ( { " pass" , args.get <std::string>( " --pass" ) });
165
165
return profile;
166
166
}
167
- std::vector<SUBSET> _get_rules ( argparse::ArgumentParser args )
167
+ std::vector<SUBSET> _get_rules ( argparse::ArgumentParser & args )
168
168
{
169
169
std::vector< SUBSET > rules;
170
170
if ( args.get <bool >( " -l" ) ) { rules.push_back ( SUBSET::lowercase ); }
0 commit comments