bundled_pjproject: Improve SSL/TLS error handling
authorGeorge Joseph <gjoseph@digium.com>
Thu, 27 Jul 2017 11:35:51 +0000 (05:35 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Tue, 1 Aug 2017 21:41:53 +0000 (15:41 -0600)
commitac6d98b28d2fd8022b11839f2c4febfdc7431d78
tree6a5c41815045324daabd32431245ae9e2937862a
parent65c560894d0d53167af9c6013c7f93703ebb6722
bundled_pjproject:  Improve SSL/TLS error handling

OpenSSL has 2 levels or error processing.  It's possible for the
top layer to return SSL_ERROR_SYSCALL but the lower layer return
no error, in which case processing should continue.  Only the top
layer was being examined though so connections were being torn
down when they didn't need to be.  This patch adds the examination
of the lower level codes, and if they return no errors, allows
processing to continue.

ASTERISK-27001
Reported-by: Ian Gilmour
patches:
pjproject-2.6.patch submitted by Ian Gilmour (license 6889)

Updated-by: George Joseph and Sauw Ming (Teluu)

Merged to upstream pjproject on 7/27/2017 (commit 5631)

Change-Id: I23844ca0c68ef1ee550f14d46f6dae57d33b7bd2
third-party/pjproject/patches/0075-Fixed-2030-Improve-error-handling-in-OpenSSL-socket.patch [new file with mode: 0644]