edited CyaSSL_ERR_reason_error_string function

pull/1/head
lchristina26 2014-06-30 10:47:27 -06:00
parent a802be2faf
commit 2896d24a64
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ int main (int argc, char** argv)
CyaSSL_set_fd(ssl, sockfd); CyaSSL_set_fd(ssl, sockfd);
if (CyaSSL_connect(ssl) != SSL_SUCCESS) { if (CyaSSL_connect(ssl) != SSL_SUCCESS) {
int err1 = CyaSSL_get_error(ssl, 0); int err1 = CyaSSL_get_error(ssl, 0);
printf("err = %d, %d\n", err1, CyaSSL_ERR_reason_error_string(err1)); printf("err = %d, %s\n", err1, CyaSSL_ERR_reason_error_string(err1));
printf("SSL_connect failed"); printf("SSL_connect failed");
return 1; return 1;
} }