Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #12 from Echelon9/fix-issue-11
Browse files Browse the repository at this point in the history
Fix Issue #11 - Incomplete SSL error reporting in TCPInterface.cpp
  • Loading branch information
alliekins committed Jul 21, 2014
2 parents dfe2d4e + 3ebad5a commit b7f6ab9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Source/TCPInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1366,8 +1366,10 @@ bool RemoteClient::InitSSL(SSL_CTX* ctx, SSL_METHOD *meth)
// http://www.openssl.org/docs/ssl/SSL_get_error.html
char buff[1024];
unsigned long ege = ERR_get_error();
if (ege==0)
printf("SSL_ERROR_SYSCALL SSL_get_error ret=\n", res);
if (ege==0 && res==0)
printf("SSL_ERROR_SYSCALL EOF in violation of the protocol\n");
else if (ege==0 && res==-1)
printf("SSL_ERROR_SYSCALL %s\n", strerror(errno));
else
printf("SSL_ERROR_SYSCALL %s\n", ERR_error_string(ege, buff));
}
Expand Down

0 comments on commit b7f6ab9

Please sign in to comment.