generating ECC keys on server startup

This commit is contained in:
Václav Šmejkal 2025-02-01 21:59:09 +01:00
parent 481bce366c
commit 8a7c389a74
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -26,6 +26,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
#include <pthread.h>
#include <why2/chat/config.h>
#include <why2/chat/crypto.h>
#include <why2/chat/flags.h>
#include <why2/chat/misc.h>
@ -36,6 +37,7 @@ int main(void)
{
why2_check_version(); //CHECK FOR UPDATES
why2_chat_init_server_config(); //CREATE server.toml CONFIGURATION
why2_chat_init_keys(); //CREATE ECC KEY
int listen_socket = socket(AF_INET, SOCK_STREAM, 0); //CREATE SERVER SOCKET
pthread_t thread;