0001    // SSLError.swift
0002    //
0003    // The MIT License (MIT)
0004    //
0005    // Copyright (c) 2015 Zewo
0006    //
0007    // Permission is hereby granted, free of charge, to any person obtaining a copy
0008    // of this software and associated documentation files (the "Software"), to deal
0009    // in the Software without restriction, including without limitation the rights
0010    // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
0011    // copies of the Software, and to permit persons to whom the Software is
0012    // furnished to do so, subject to the following conditions:
0013    //
0014    // The above copyright notice and this permission notice shall be included in all
0015    // copies or substantial portions of the Software.
0016    //
0017    // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0018    // IMPLIED, INCLUDINbG BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0019    // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
0020    // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0021    // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
0022    // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
0023    // SOFTWARE.
0024    
0025    import COpenSSL
0026    
0027    var lastSSLErrorDescription
ClientContext.swift:34
            throw Context.Error.Certificate(description: lastSSLErrorDescription)
ClientContext.swift:39
                throw Context.Error.Certificate(description: lastSSLErrorDescription)
ClientContext.swift:45
				throw Context.Error.Certificate(description: lastSSLErrorDescription)
ClientContext.swift:51
				throw Context.Error.Certificate(description: lastSSLErrorDescription)
ClientContext.swift:57
				throw Context.Error.Certificate(description: lastSSLErrorDescription)
ClientContext.swift:61
				throw Context.Error.Certificate(description: lastSSLErrorDescription)
Context.swift:41
            throw Error.Context(description: lastSSLErrorDescription)
Context.swift:47
            throw Error.Context(description: lastSSLErrorDescription)
Context.swift:53
            throw Error.Context(description: lastSSLErrorDescription)
Context.swift:59
            throw Error.Context(description: lastSSLErrorDescription)
Context.swift:65
            throw Error.Context(description: lastSSLErrorDescription)
Hash.swift:124
			throw Error.Error(description: lastSSLErrorDescription)
IO.swift:60
            throw Error.BIO(description: lastSSLErrorDescription)
IO.swift:71
                throw Error.ShouldRetry(description: lastSSLErrorDescription)
IO.swift:73
                throw Error.BIO(description: lastSSLErrorDescription)
IO.swift:96
                throw Error.ShouldRetry(description: lastSSLErrorDescription)
IO.swift:98
                throw Error.BIO(description: lastSSLErrorDescription)
Random.swift:37
			throw Error.Error(description: lastSSLErrorDescription)
ServerContext.swift:33
            throw Context.Error.Certificate(description: lastSSLErrorDescription)
ServerContext.swift:38
                throw Context.Error.Certificate(description: lastSSLErrorDescription)
ServerContext.swift:43
            throw Context.Error.Certificate(description: lastSSLErrorDescription)
ServerContext.swift:47
            throw Context.Error.Certificate(description: lastSSLErrorDescription)
ServerContext.swift:51
            throw Context.Error.Certificate(description: lastSSLErrorDescription)
Session.swift:56
            throw Error.Session(description: lastSSLErrorDescription)
Session.swift:110
                throw Error.WantRead(description: lastSSLErrorDescription)
Session.swift:112
                throw Error.WantWrite(description: lastSSLErrorDescription)
Session.swift:114
                throw Error.Session(description: lastSSLErrorDescription)
Session.swift:136
                throw Error.WantRead(description: lastSSLErrorDescription)
Session.swift:138
                throw Error.WantWrite(description: lastSSLErrorDescription)
Session.swift:140
                throw Error.ZeroReturn(description: lastSSLErrorDescription)
Session.swift:142
                throw Error.Session(description: lastSSLErrorDescription)
: String { 0028 return String.fromCString(ERR_reason_error_string(ERR_get_error())) ?? "Unknown Error" 0029 } 0030