generated from bitwarden/template
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PM-13902] Update Bitwarden SDK for new SSH Key type (#1090)
- Loading branch information
Showing
20 changed files
with
403 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
BitwardenShared/Core/Vault/Models/API/CipherSSHKeyModel.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/// API model for an SSH key. | ||
/// | ||
struct CipherSSHKeyModel: Codable, Equatable { | ||
// MARK: Properties | ||
|
||
/// The key fingerprint of the SSH key. | ||
let keyFingerprint: String? | ||
|
||
/// The private key of the SSH key. | ||
let privateKey: String? | ||
|
||
/// The public key of the SSH key. | ||
let publicKey: String? | ||
} |
17 changes: 17 additions & 0 deletions
17
BitwardenShared/Core/Vault/Models/API/Fixtures/CipherSSHKeyModel+Fixtures.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import Foundation | ||
|
||
@testable import BitwardenShared | ||
|
||
extension CipherSSHKeyModel { | ||
static func fixture( | ||
keyFingerprint: String? = "keyFingerprint", | ||
privateKey: String? = "privateKey", | ||
publicKey: String? = "publicKey" | ||
) -> CipherSSHKeyModel { | ||
self.init( | ||
keyFingerprint: keyFingerprint, | ||
privateKey: privateKey, | ||
publicKey: publicKey | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.