0001    // OpenSSL.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 System
0026    import COpenSSL
0027    
0028    public let DEFAULT_BUFFER_SIZE
IO.swift:89
        var data = Data.bufferWithSize(DEFAULT_BUFFER_SIZE)
Session.swift:126
		var data = Data.bufferWithSize(DEFAULT_BUFFER_SIZE)
= 4096 0029 0030 public struct OpenSSL
Certificate.swift:68
        OpenSSL.initialize()
Certificate.swift:73
        OpenSSL.initialize()
Context.swift:37
		OpenSSL.initialize()
Hash.swift:88
		OpenSSL.initialize()
Hash.swift:102
		OpenSSL.initialize()
Hash.swift:120
		OpenSSL.initialize()
IO.swift:56
		OpenSSL.initialize()
Key.swift:31
		OpenSSL.initialize()
Key.swift:41
		OpenSSL.initialize()
Session.swift:51
		OpenSSL.initialize()
{ 0031 private static var _initialize
OpenSSL.swift:39
	    _ = _initialize
: Void = { 0032 SSL_library_init() 0033 SSL_load_error_strings() 0034 ERR_load_crypto_strings() 0035 OPENSSL_config(nil) 0036 }() 0037 0038 public static func initialize
Certificate.swift:68
        OpenSSL.initialize()
Certificate.swift:73
        OpenSSL.initialize()
Context.swift:37
		OpenSSL.initialize()
Hash.swift:88
		OpenSSL.initialize()
Hash.swift:102
		OpenSSL.initialize()
Hash.swift:120
		OpenSSL.initialize()
IO.swift:56
		OpenSSL.initialize()
Key.swift:31
		OpenSSL.initialize()
Key.swift:41
		OpenSSL.initialize()
Session.swift:51
		OpenSSL.initialize()
() { 0039 _ = _initialize 0040 } 0041 } 0042 0043 let SSL_CTRL_SET_ECDH_AUTO
ServerContext.swift:32
        if SSL_CTX_ctrl(context, SSL_CTRL_SET_ECDH_AUTO, 1, nil) != 1 {
: Int32 = 94 0044