forked from wolfSSL/wolfssl
Merge pull request #379 from JacobBarthelmeh/PSK
fix c89 build on windows
This commit is contained in:
@ -34,7 +34,6 @@
|
|||||||
#define CYASSL_MAX_16BIT WOLFSSL_MAX_16BIT
|
#define CYASSL_MAX_16BIT WOLFSSL_MAX_16BIT
|
||||||
#define CYASSL_MAX_ERROR_SZ WOLFSSL_MAX_ERROR_SZ
|
#define CYASSL_MAX_ERROR_SZ WOLFSSL_MAX_ERROR_SZ
|
||||||
#define cyassl_word wolfssl_word
|
#define cyassl_word wolfssl_word
|
||||||
#define CYASSL_MAX_ERROR_SZ WOLFSSL_MAX_ERROR_SZ
|
|
||||||
|
|
||||||
#endif /* CTAO_CRYPT_TYPES_H */
|
#endif /* CTAO_CRYPT_TYPES_H */
|
||||||
|
|
||||||
|
@ -279,8 +279,8 @@ THREAD_RETURN CYASSL_THREAD echoserver_test(void* args)
|
|||||||
} while (ret != SSL_SUCCESS && err == WC_PENDING_E);
|
} while (ret != SSL_SUCCESS && err == WC_PENDING_E);
|
||||||
|
|
||||||
if (ret != SSL_SUCCESS) {
|
if (ret != SSL_SUCCESS) {
|
||||||
err = CyaSSL_get_error(ssl, 0);
|
|
||||||
char buffer[CYASSL_MAX_ERROR_SZ];
|
char buffer[CYASSL_MAX_ERROR_SZ];
|
||||||
|
err = CyaSSL_get_error(ssl, 0);
|
||||||
printf("error = %d, %s\n", err, CyaSSL_ERR_error_string(err, buffer));
|
printf("error = %d, %s\n", err, CyaSSL_ERR_error_string(err, buffer));
|
||||||
printf("SSL_accept failed\n");
|
printf("SSL_accept failed\n");
|
||||||
CyaSSL_free(ssl);
|
CyaSSL_free(ssl);
|
||||||
|
@ -868,8 +868,8 @@ THREAD_RETURN CYASSL_THREAD server_test(void* args)
|
|||||||
} while (ret != SSL_SUCCESS && err == WC_PENDING_E);
|
} while (ret != SSL_SUCCESS && err == WC_PENDING_E);
|
||||||
|
|
||||||
if (ret != SSL_SUCCESS) {
|
if (ret != SSL_SUCCESS) {
|
||||||
err = SSL_get_error(ssl, 0);
|
|
||||||
char buffer[CYASSL_MAX_ERROR_SZ];
|
char buffer[CYASSL_MAX_ERROR_SZ];
|
||||||
|
err = SSL_get_error(ssl, 0);
|
||||||
printf("error = %d, %s\n", err, ERR_error_string(err, buffer));
|
printf("error = %d, %s\n", err, ERR_error_string(err, buffer));
|
||||||
err_sys("SSL_accept failed");
|
err_sys("SSL_accept failed");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user