Indentation fixes in client-dtls-resume

pull/55/head
abrahamsonn 2017-06-02 09:45:59 -06:00 committed by GitHub
parent 84fb19c09a
commit 327db27306
1 changed files with 6 additions and 6 deletions

View File

@ -47,18 +47,18 @@ void DatagramClient (WOLFSSL* ssl)
while (fgets(sendLine, MAXLINE, stdin) != NULL) {
if ( ( wolfSSL_write(ssl, sendLine, strlen(sendLine))) !=
strlen(sendLine)) {
if ( (wolfSSL_write(ssl, sendLine, strlen(sendLine))) !=
strlen(sendLine)) {
printf("SSL_write failed");
}
n = wolfSSL_read(ssl, recvLine, sizeof(recvLine)-1);
n = wolfSSL_read(ssl, recvLine, sizeof(recvLine)-1);
if (n < 0) {
if (n < 0) {
int readErr = wolfSSL_get_error(ssl, 0);
if(readErr != SSL_ERROR_WANT_READ)
printf("wolfSSL_read failed");
}
printf("wolfSSL_read failed");
}
recvLine[n] = '\0';
fputs(recvLine, stdout);