8 lines
298 B
C
8 lines
298 B
C
#include <stdio.h>
|
|
#include <netinet/in.h>
|
|
#include <openssl/ssl.h>
|
|
|
|
int createSocket(int port, int *server_fd, struct sockaddr_in *address, int *addrlen);
|
|
int createSecureSocket(int port, int *server_fd, struct sockaddr_in *address, int *addrlen, SSL_CTX **ctx, char certFile[], char keyFile[]);
|
|
|