generating ECC keys on server startup
This commit is contained in:
parent
481bce366c
commit
8a7c389a74
@ -26,6 +26,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
#include <why2/chat/config.h>
|
#include <why2/chat/config.h>
|
||||||
|
#include <why2/chat/crypto.h>
|
||||||
#include <why2/chat/flags.h>
|
#include <why2/chat/flags.h>
|
||||||
#include <why2/chat/misc.h>
|
#include <why2/chat/misc.h>
|
||||||
|
|
||||||
@ -36,6 +37,7 @@ int main(void)
|
|||||||
{
|
{
|
||||||
why2_check_version(); //CHECK FOR UPDATES
|
why2_check_version(); //CHECK FOR UPDATES
|
||||||
why2_chat_init_server_config(); //CREATE server.toml CONFIGURATION
|
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
|
int listen_socket = socket(AF_INET, SOCK_STREAM, 0); //CREATE SERVER SOCKET
|
||||||
pthread_t thread;
|
pthread_t thread;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user