summaryrefslogtreecommitdiff
path: root/src/cracklib.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cracklib.hpp')
-rw-r--r--src/cracklib.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/cracklib.hpp b/src/cracklib.hpp
new file mode 100644
index 0000000..0a7f400
--- /dev/null
+++ b/src/cracklib.hpp
@@ -0,0 +1,13 @@
+#ifndef CRACKLIB_HPP
+#define CRACKLIB_HPP
+
+#include <string>
+
+typedef struct PasswordCheck {
+ bool ok;
+ std::string msg;
+} PasswordCheck;
+
+PasswordCheck checkPassword( const std::string login, const std::string name, const std::string password );
+
+#endif