tunnelkit/TunnelKit/Sources/Core/CoreConfiguration.swift

53 lines
1000 B
Swift

//
// CoreConfiguration.swift
// TunnelKit
//
// Created by Davide De Rosa on 9/1/17.
// Copyright © 2018 London Trust Media. All rights reserved.
//
import Foundation
struct CoreConfiguration {
// MARK: Session
static let logsSensitiveData = false
static let usesReplayProtection = true
static let tickInterval = 0.2
static let pingInterval = 10.0
static let pingTimeout = 120.0
static let retransmissionLimit = 0.1
static let softResetDelay = 5.0
static let softNegotiationTimeout = 120.0
// MARK: Authentication
static let peerInfo = [
"IV_VER=2.3.99",
"IV_PROTO=2",
""
].joined(separator: "\n")
static let randomLength = 32
// MARK: Keys
static let label1 = "OpenVPN master secret"
static let label2 = "OpenVPN key expansion"
static let preMasterLength = 48
static let keyLength = 64
static let keysCount = 4
}