From 814b8e48fbb1cf5bddc2eee23893f34b81ce4017 Mon Sep 17 00:00:00 2001 From: Andrew Date: Thu, 1 Jun 2023 18:56:26 +0300 Subject: [PATCH] Update CMakeLists.txt (Refactor) --- CMakeLists.txt | 4 ++-- server.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7797025..526a9f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,12 +20,12 @@ add_custom_command( set(BUILD_SHARED_LIBS OFF) set(CMAKE_EXE_LINKER_FLAGS "-static") -ADD_EXECUTABLE(xpkey xp_algorithm.cpp shared.cpp bink.h) +ADD_EXECUTABLE(xpkey main.cpp xp.cpp key.cpp util.cpp cli.cpp bink.h) TARGET_INCLUDE_DIRECTORIES(xpkey PUBLIC crypto) TARGET_LINK_LIBRARIES(xpkey PUBLIC crypto) add_dependencies(xpkey bink.h) -ADD_EXECUTABLE(srv2003key server_algorithm.cpp shared.cpp bink.h) +ADD_EXECUTABLE(srv2003key server.cpp key.cpp util.cpp cli.cpp bink.h) TARGET_INCLUDE_DIRECTORIES(srv2003key PUBLIC crypto) TARGET_LINK_LIBRARIES(srv2003key PUBLIC crypto) add_dependencies(srv2003key bink.h) \ No newline at end of file diff --git a/server.cpp b/server.cpp index 02ca751..bf763e9 100644 --- a/server.cpp +++ b/server.cpp @@ -222,7 +222,7 @@ void generate2003(char *pkey, EC_GROUP *ec, EC_POINT *generator, BIGNUM *order, } -int gen2003() +int main() { BIGNUM *a, *b, *p, *gx, *gy, *pubx, *puby, *n, *priv; BN_CTX *ctx = BN_CTX_new();