aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/Shared/Model/TunnelConfiguration+WgQuickConfig.swift (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move all source files to `Sources/` and rename WireGuardKit targetsAndrej Mihajlov2020-12-031-248/+0
| | | | Signed-off-by: Andrej Mihajlov <and@mullvad.net>
* WireGuardKit: Add wrappers for PrivateKey, PublicKey, PreSharedKeyAndrej Mihajlov2020-12-021-11/+7
| | | | Signed-off-by: Andrej Mihajlov <and@mullvad.net>
* iOS/macOS: Integrate WireGuardKitAndrej Mihajlov2020-12-021-0/+1
| | | | Signed-off-by: Andrej Mihajlov <and@mullvad.net>
* WgQuickConfig: Swift treats \r\n as a single characterJason A. Donenfeld2019-06-281-1/+1
| | | | | | | | | | | | | | | | let blah = "hello\nworld\ndoes\nthis\nwork" print(blah.split(separator: "\n")) //output: ["hello", "world", "does", "this", "work"] let blah2 = "hello\r\nworld\r\ndoes\r\nthis\r\nwork" print(blah2.split(separator: "\n")) //output: ["hello\r\nworld\r\ndoes\r\nthis\r\nwork"] //expected: ["hello\r", "world\r", "does\r", "this\r", "work\r"] In blah2, the string splitting fails because swift considers \r\n to be its own character. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* wg-quick parser: trim \r as wellJason A. Donenfeld2019-03-111-5/+5
| | | | | | | | The influx of Windows users has already begun to infect our nice project. Reported-by: Cosku Bas <cosku.bas@gmail.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Fix writing of preshared key to config formatRoopesh Chander2019-02-091-1/+1
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Global: fix swiftlint issuesJason A. Donenfeld2019-02-081-3/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Key: Constant time encodingJason A. Donenfeld2019-02-081-7/+11
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* wg-quick conf parser: Handle inline comments correctlyRoopesh Chander2019-02-051-3/+3
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Config file parsing: Fix bug when there are comments at the endRoopesh Chander2019-01-241-28/+28
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel: support getting runtime configurationJason A. Donenfeld2019-01-241-0/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Parsing: Always error on unrecognized keysRoopesh Chander2019-01-141-12/+10
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Parsing: Error on duplicate entriesRoopesh Chander2019-01-141-2/+7
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* macOS: Refactor config file parsingRoopesh Chander2019-01-141-26/+71
| | | | | | | - To report more fine grained errors - To make the parse errors conform to WireGuardAppError Signed-off-by: Roopesh Chander <roop@roopc.net>
* Update copyrightJason A. Donenfeld2019-01-071-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Move model helpers to model directoryJason A. Donenfeld2018-12-221-0/+200
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>