From 9a19a43e8a601237ab5c4ddb7603bb8bd62a95fc Mon Sep 17 00:00:00 2001 From: Kaleb Himes Date: Thu, 5 Jun 2014 15:45:11 -0600 Subject: [PATCH] ready for publishing --- .../dtls_secured_multithreaded/server-dtls-threaded.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/project1/dtls_secured_multithreaded/server-dtls-threaded.c b/project1/dtls_secured_multithreaded/server-dtls-threaded.c index 50067c0d..71ffef0e 100644 --- a/project1/dtls_secured_multithreaded/server-dtls-threaded.c +++ b/project1/dtls_secured_multithreaded/server-dtls-threaded.c @@ -62,8 +62,8 @@ void AwaitDGram() int on = 1; int res = 1; int connfd = 0; - int listenfd = 0; /* Initialize our socket */ - socklen_t clilen; /* length of address' */ + int listenfd = 0; /* Initialize our socket */ + socklen_t clilen; /* length of address' */ socklen_t len = sizeof(on); unsigned char b[1500]; @@ -259,7 +259,9 @@ int main(int argc, char** argv) sigaction(SIGINT, &act, &oact); /* CyaSSL_Debugging_ON(); */ - CyaSSL_Init(); /* Initialize CyaSSL */ + + /* Initialize CyaSSL */ + CyaSSL_Init(); if ((ctx = CyaSSL_CTX_new(CyaDTLSv1_2_server_method())) == NULL){ fprintf(stderr, "CyaSSL_CTX_new error.\n");