From b292742011a9b1629e44c10f5992ab9e23a31b3a Mon Sep 17 00:00:00 2001 From: Kevin Wooten Date: Wed, 9 Sep 2020 10:17:27 -0700 Subject: [PATCH] Switch struct `let`s to `var`s --- Sources/ShieldSecurity/SecKeyPair.swift | 10 +++++----- Sources/ShieldX509/ExtensionExtKeyUsage.swift | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Sources/ShieldSecurity/SecKeyPair.swift b/Sources/ShieldSecurity/SecKeyPair.swift index b8abfaff3..9540c92a7 100644 --- a/Sources/ShieldSecurity/SecKeyPair.swift +++ b/Sources/ShieldSecurity/SecKeyPair.swift @@ -153,11 +153,11 @@ public struct SecKeyPair { "keyMaterial": .octetString(), ]) - let keyType: SecKeyType - let exportKeyLength: UInt64 - let exportKeyRounds: UInt64 - let exportKeySalt: Data - let keyMaterial: Data + public var keyType: SecKeyType + public var exportKeyLength: UInt64 + public var exportKeyRounds: UInt64 + public var exportKeySalt: Data + public var keyMaterial: Data } public func export(password: String, diff --git a/Sources/ShieldX509/ExtensionExtKeyUsage.swift b/Sources/ShieldX509/ExtensionExtKeyUsage.swift index 869c48688..8ee6dba3e 100644 --- a/Sources/ShieldX509/ExtensionExtKeyUsage.swift +++ b/Sources/ShieldX509/ExtensionExtKeyUsage.swift @@ -18,7 +18,7 @@ public struct ExtKeyUsage: Equatable, Hashable, Codable, ExtensionValue { public static var extensionID = iso_itu.ds.certificateExtension.extKeyUsage.oid public static var asn1Schema = Schemas.extKeyUsageExtension - public let keyPurposes: Set + public var keyPurposes: Set public init(keyPurposes: Set) { self.keyPurposes = keyPurposes