Skip to content

Commit f47af01

Browse files
committed
Fixing SHA1 printing
1 parent c886284 commit f47af01

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/breakid-main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,12 @@ int main(int argc, char *argv[])
168168
std::cerr << program;
169169
exit(-1);
170170
}
171-
BID::BreakID breakid;
172171
if (program["version"] == true) {
173-
cout << "c BreakID version " << breakid.get_sha1_version() << endl;
172+
cout << "c BreakID SHA1: " << BID::BreakID::get_sha1_version() << endl;
174173
std::exit(0);
175174
}
176175

176+
BID::BreakID breakid;
177177
breakid.set_useMatrixDetection(conf.useMatrixDetection);
178178
breakid.set_useBinaryClauses(conf.useBinaryClauses);
179179
breakid.set_useShatterTranslation(conf.useShatterTranslation);

src/breakid.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ void BreakID::get_perms(vector<std::unordered_map<BLit, BLit> >* out)
236236
}
237237
}
238238

239-
std::string BreakID::get_sha1_version() const
239+
std::string BreakID::get_sha1_version()
240240
{
241241
return BID::get_version_sha1();
242242
}

src/breakid.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ struct BreakID {
8484
DLL_PUBLIC BreakID();
8585
DLL_PUBLIC ~BreakID();
8686

87-
DLL_PUBLIC std::string get_sha1_version() const;
87+
DLL_PUBLIC static std::string get_sha1_version();
8888

8989
//configuration functions
9090
DLL_PUBLIC void set_useMatrixDetection(bool val);

0 commit comments

Comments
 (0)