mirror of
https://github.com/diamante0018/MW3ServerFreezer.git
synced 2025-04-20 03:55:43 +00:00
fix comp now?
This commit is contained in:
parent
2cea0ff173
commit
d2623030fe
@ -1,7 +1,6 @@
|
|||||||
#include <std_include.hpp>
|
#include <std_include.hpp>
|
||||||
|
|
||||||
#include "crypto_key.hpp"
|
#include "crypto_key.hpp"
|
||||||
#include "console.hpp"
|
|
||||||
|
|
||||||
#include <utils/io.hpp>
|
#include <utils/io.hpp>
|
||||||
|
|
||||||
@ -45,10 +44,7 @@ utils::cryptography::ecc::key load_or_generate_key() {
|
|||||||
|
|
||||||
utils::cryptography::ecc::key get_key_internal() {
|
utils::cryptography::ecc::key get_key_internal() {
|
||||||
auto key = load_or_generate_key();
|
auto key = load_or_generate_key();
|
||||||
if (!utils::io::write_file("./public.key", key.get_public_key())) {
|
utils::io::write_file("./public.key", key.get_public_key());
|
||||||
console::info("Failed to write public key!");
|
|
||||||
}
|
|
||||||
|
|
||||||
return key;
|
return key;
|
||||||
}
|
}
|
||||||
} // namespace
|
} // namespace
|
||||||
|
Loading…
x
Reference in New Issue
Block a user