1.1 KiB
1.1 KiB
TCP/TLS Tutorial
<<<<<<< HEAD
Client TLS Tutorial
client-tls.c
Again, we will need to import the security library. Just like in the server, add an '#include' statement in your client program. Next we will need to add a global 'cert' variable: '''c const char* cert = "./certs/ca-cert.pem"; ''' Now comes changing the 'ClientGreet()' function so its arguments and functions incorporate the security library. '''c void ClientGreet(int sock, CYASSL* ssl)
if (CyaSSL_write(ssl, send, strlen(send)) != strlen(send)) {