21 lines
534 B
Swift
21 lines
534 B
Swift
//
|
|
// Copyright 2023 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
//
|
|
|
|
import Foundation
|
|
|
|
// Transparent wrapper that exists purely to make it clear to readers
|
|
// that the credential must be for SVR2, not an arbitrary RemoteAttestation.Auth.
|
|
public struct SVR2AuthCredential: Equatable, Codable {
|
|
public let credential: RemoteAttestationAuth
|
|
|
|
public init(credential: RemoteAttestationAuth) {
|
|
self.credential = credential
|
|
}
|
|
}
|
|
|
|
public enum SVR2 {
|
|
public typealias AuthMethod = SVR.AuthMethod
|
|
}
|