From ed0062b3af50bd2cbb19e931d2469f582dd20f5b Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Tue, 1 Jul 2014 15:13:23 -0600 Subject: [PATCH 1/3] Update server-psk-threaded.c --- psk/server-psk-threaded.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/psk/server-psk-threaded.c b/psk/server-psk-threaded.c index 09238ee9..22925431 100644 --- a/psk/server-psk-threaded.c +++ b/psk/server-psk-threaded.c @@ -64,7 +64,7 @@ static inline unsigned int my_psk_server_cb(CYASSL* ssl, const char* identity, void* cyassl_thread(void* fd) { CYASSL* ssl; - int connfd = (int)fd; + int connfd = *((int*)fd); int n; char buf[MAXLINE]; char response[] = "I hear ya for shizzle"; @@ -169,7 +169,7 @@ int main() inet_ntop(AF_INET, &cliAddr.sin_addr, buff, sizeof(buff)), ntohs(cliAddr.sin_port)); - if (pthread_create(&thread, NULL, &cyassl_thread, (void*) connfd) + if (pthread_create(&thread, NULL, &cyassl_thread, (void*) &connfd) != 0) { return 1; } From ea84c3766d22af47c37d8ec18bf2a460a6f377fc Mon Sep 17 00:00:00 2001 From: Shane Israel Date: Tue, 1 Jul 2014 15:46:54 -0600 Subject: [PATCH 2/3] Update --- tls/tutorial-tcp-tls.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tls/tutorial-tcp-tls.md b/tls/tutorial-tcp-tls.md index c33894e5..cb755666 100644 --- a/tls/tutorial-tcp-tls.md +++ b/tls/tutorial-tcp-tls.md @@ -9,7 +9,7 @@ First you will need `gcc` and `make` installed on your terminal. You can do this sudo apt-get install gcc make ## Index -1. [Incorporating CyaSSL TLS](https://github.com/wolfSSL/wolfssl-examples/blob/master/tls/tutorial-tcp-tls.md#incorporating-cyassl-tls) +1. [Incorporating CyaSSL TLS](../blob/master/tls/tutorial-tcp-tls.md#incorporating-cyassl-tls) * [Installing CyaSSL](https://github.com/wolfSSL/wolfssl-examples/blob/master/tls/tutorial-tcp-tls.md#installing-cyassl) 2. [Server TLS Tutorial](https://github.com/wolfSSL/wolfssl-examples/blob/master/tls/tutorial-tcp-tls.md#server-tls-tutorial) * [Basic TLS Server](https://github.com/wolfSSL/wolfssl-examples/blob/master/tls/tutorial-tcp-tls.md#basic-tls-server) From 0e3afaa6db91e0a0c4284370667aed98f794a7bd Mon Sep 17 00:00:00 2001 From: Shane Israel Date: Tue, 1 Jul 2014 15:48:18 -0600 Subject: [PATCH 3/3] Update tutorial-tcp-tls.md --- tls/tutorial-tcp-tls.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tls/tutorial-tcp-tls.md b/tls/tutorial-tcp-tls.md index cb755666..c33894e5 100644 --- a/tls/tutorial-tcp-tls.md +++ b/tls/tutorial-tcp-tls.md @@ -9,7 +9,7 @@ First you will need `gcc` and `make` installed on your terminal. You can do this sudo apt-get install gcc make ## Index -1. [Incorporating CyaSSL TLS](../blob/master/tls/tutorial-tcp-tls.md#incorporating-cyassl-tls) +1. [Incorporating CyaSSL TLS](https://github.com/wolfSSL/wolfssl-examples/blob/master/tls/tutorial-tcp-tls.md#incorporating-cyassl-tls) * [Installing CyaSSL](https://github.com/wolfSSL/wolfssl-examples/blob/master/tls/tutorial-tcp-tls.md#installing-cyassl) 2. [Server TLS Tutorial](https://github.com/wolfSSL/wolfssl-examples/blob/master/tls/tutorial-tcp-tls.md#server-tls-tutorial) * [Basic TLS Server](https://github.com/wolfSSL/wolfssl-examples/blob/master/tls/tutorial-tcp-tls.md#basic-tls-server)