summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Costen <tim.costen@isode.com>2019-11-13 12:52:44 (GMT)
committerTim Costen <timcosten64@gmail.com>2019-11-13 15:28:52 (GMT)
commit7d79cd827fb17db7b03858b06f03c514d25cdfea (patch)
tree3b048eaae411f9196253302acefe0e8368503131 /Swift/Controllers/XMPPURIController.h
parentd640ec248ca8bf86a03007a0f8df352df696cf92 (diff)
downloadswift-7d79cd827fb17db7b03858b06f03c514d25cdfea.zip
swift-7d79cd827fb17db7b03858b06f03c514d25cdfea.tar.bz2
Clear internal error state after cert chain parse
When parsing a PEM string containing a chain of certificates, createCertificateChain calls PEM_read_bio_X509 until it returns NULL (end of chain). But this will have set OpenSSL's internal error chain. Creating a new OpenSSL context has the side effect of clearing this chain, but if you are using a context which has already been created, the context sees that the error chain is set and fails. All that is needed is for createCertificateChain to clear the OpenSSL error chain before returning. JIRA: LINK-1868 Change-Id: Ife2a3dabfeecff9e430648d63e4b4ba001e80a00
Diffstat (limited to 'Swift/Controllers/XMPPURIController.h')
0 files changed, 0 insertions, 0 deletions