Skip to content

Commit

Permalink
[3.3.5] Core/Authserver: TOTP rewrite: (PR #23633)
Browse files Browse the repository at this point in the history
- Proper management commands (.account 2fa)
- Secrets can now be encrypted (set TOTPTokenSecret in .conf)
- Secret now stored in binary
- Argon2 and AES primitives
- Base32/64 support
  • Loading branch information
Treeston authored Aug 10, 2019
1 parent 3d356b9 commit 4211645
Show file tree
Hide file tree
Showing 50 changed files with 5,880 additions and 174 deletions.
1 change: 1 addition & 0 deletions dep/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ if (SERVERS)
add_subdirectory(readline)
add_subdirectory(gsoap)
add_subdirectory(efsw)
add_subdirectory(argon2)
endif()

if (TOOLS)
Expand Down
4 changes: 4 additions & 0 deletions dep/PackageList.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,7 @@ recastnavigation (Recast is state of the art navigation mesh construction toolse
https://github.com/recastnavigation/recastnavigation
Version: 54bb0943e5174a71eeeca11919920f685760a4f0
Custom changes: https://github.com/TrinityCore/recastnavigation/tree/3.3.5

argon2
https://github.com/P-H-C/phc-winner-argon2
Version: 62358ba
26 changes: 26 additions & 0 deletions dep/argon2/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright (C) 2008-2019 TrinityCore <https://www.trinitycore.org/>
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

file(GLOB_RECURSE sources *.c)
add_library(argon2 STATIC
${sources})

target_include_directories(argon2
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR})

target_link_libraries(argon2
PRIVATE
trinity-dependency-interface)

set_target_properties(argon2
PROPERTIES
FOLDER
"dep")
314 changes: 314 additions & 0 deletions dep/argon2/LICENSE

Large diffs are not rendered by default.

Loading

0 comments on commit 4211645

Please sign in to comment.