Overview
Comment: | Adjust to ObjFW changes |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
958a05efc9cde2d5ef930f88ac7d1b58 |
User & Date: | js on 2019-06-16 15:51:40 |
Other Links: | manifest | tags |
Context
2019-06-16
| ||
17:26 | Rename project to CryptoPassphrase check-in: eb35826d25 user: js tags: trunk | |
15:51 | Adjust to ObjFW changes check-in: 958a05efc9 user: js tags: trunk | |
05:25 | iOS: Migrate to Swift check-in: 2c5f88ebb0 user: js tags: trunk | |
Changes
Modified iOS/SiteStorage.swift from [c4660e76b1] to [6bede05795].
︙ | ︙ | |||
75 76 77 78 79 80 81 | func hasSite(_ name: OFString) -> Bool { return (storage[name] != nil) } func length(forSite name: OFString) -> size_t { guard let site = storage[name] else { OFInvalidArgumentException().throw() | < < < | 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | func hasSite(_ name: OFString) -> Bool { return (storage[name] != nil) } func length(forSite name: OFString) -> size_t { guard let site = storage[name] else { OFInvalidArgumentException().throw() } return (site[SiteStorage.lengthField] as! OFNumber).sizeValue } func isLegacy(site name: OFString) -> Bool { guard let site = storage[name] else { OFInvalidArgumentException().throw() } return (site[SiteStorage.legacyField] as! OFNumber).boolValue } func keyFile(forSite name: OFString) -> OFString? { guard let site = storage[name] else { OFInvalidArgumentException().throw() } let keyFile = site[SiteStorage.keyFileField] if keyFile is OFNull { return nil } |
︙ | ︙ |