Added some travis ci target + corrected some warnings

This commit is contained in:
emeric
2020-10-31 22:33:01 +01:00
parent 45b6f67896
commit 8520ca5c0f
17 changed files with 108 additions and 51 deletions
+4 -4
View File
@@ -10,7 +10,7 @@ target_include_directories(lmsauth INTERFACE
)
target_include_directories(lmsauth PRIVATE
include/
include
)
target_link_libraries(lmsauth PRIVATE
@@ -21,15 +21,15 @@ target_link_libraries(lmsauth PRIVATE
target_link_libraries(lmsauth PUBLIC
pthread
Boost::system
wt
Wt::Wt
)
if (PAM_FOUND)
if (USE_PAM)
target_compile_options(lmsauth PRIVATE "-DLMS_SUPPORT_PAM")
target_sources(lmsauth PRIVATE impl/pam/PAM.cpp)
target_include_directories(lmsauth PRIVATE ${PAM_INCLUDE_DIR})
target_link_libraries(lmsauth PRIVATE ${PAM_LIBRARIES})
endif (PAM_FOUND)
endif (USE_PAM)
install(TARGETS lmsauth DESTINATION lib)
-3
View File
@@ -37,9 +37,6 @@ namespace Auth {
AuthTokenService(std::size_t maxThrottlerEntries);
AuthTokenService() = default;
~AuthTokenService() = default;
AuthTokenService(const AuthTokenService&) = delete;
AuthTokenService& operator=(const AuthTokenService&) = delete;
AuthTokenService(AuthTokenService&&) = delete;
+1 -4
View File
@@ -38,9 +38,6 @@ namespace Auth {
PasswordService(std::size_t maxThrottlerEntries);
PasswordService() = default;
~PasswordService() = default;
PasswordService(const PasswordService&) = delete;
PasswordService& operator=(const PasswordService&) = delete;
PasswordService(PasswordService&&) = delete;
@@ -48,7 +45,7 @@ namespace Auth {
private:
bool isAuthModeSupported(Database::User::AuthMode authMode) const;
bool isAuthModeSupported(Database::User::AuthMode authMode) const override;
PasswordCheckResult checkUserPassword(Database::Session& session, const boost::asio::ip::address& clientAddress, const std::string& loginName, const std::string& password) override;
Database::User::PasswordHash hashPassword(const std::string& password) const override;
bool evaluatePasswordStrength(const std::string& loginName, const std::string& password) const override;