insert socket close header
parent
fdc8619097
commit
a802be2faf
|
@ -1,3 +1,4 @@
|
||||||
|
#include <unistd.h>
|
||||||
#include <cyassl/ssl.h>
|
#include <cyassl/ssl.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
@ -122,7 +123,6 @@ int main (int argc, char** argv)
|
||||||
CYASSL_CTX* ctx = 0;
|
CYASSL_CTX* ctx = 0;
|
||||||
CYASSL* sslResume = 0;
|
CYASSL* sslResume = 0;
|
||||||
CYASSL_SESSION* session = 0;
|
CYASSL_SESSION* session = 0;
|
||||||
int resumeSession = 0;
|
|
||||||
char cert_array[] = "../cyassl/certs/ca-cert.pem";
|
char cert_array[] = "../cyassl/certs/ca-cert.pem";
|
||||||
char* certs = cert_array;
|
char* certs = cert_array;
|
||||||
char* srTest = "testing session resume";
|
char* srTest = "testing session resume";
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#include <unistd.h>
|
||||||
#include <cyassl/ssl.h>
|
#include <cyassl/ssl.h>
|
||||||
#include <cyassl/options.h>
|
#include <cyassl/options.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#include <unistd.h>
|
||||||
#include <cyassl/ssl.h>
|
#include <cyassl/ssl.h>
|
||||||
#include <cyassl/options.h>
|
#include <cyassl/options.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
|
@ -16,7 +17,7 @@
|
||||||
void DatagramClient (CYASSL* ssl)
|
void DatagramClient (CYASSL* ssl)
|
||||||
{
|
{
|
||||||
int n = 0;
|
int n = 0;
|
||||||
char m, sendLine[MAXLINE], recvLine[MAXLINE - 1];
|
char sendLine[MAXLINE], recvLine[MAXLINE - 1];
|
||||||
|
|
||||||
while (fgets(sendLine, MAXLINE, stdin) != NULL) {
|
while (fgets(sendLine, MAXLINE, stdin) != NULL) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue