mirror of
https://github.com/maxgoedjen/secretive.git
synced 2026-11-10 03:35:59 +01:00
Allow limited key validity window for authenticated keys (#252)
This commit is contained in:
1 parent
faed5514e2
commit
7d9fee0546
12 files changed
+205
-26
No files matched your search
@@ -35,8 +35,11 @@ extension Preview {
|
||||
self.secrets.append(contentsOf: new)
|
||||
}
|
||||
|
||||
func sign(data: Data, with secret: Preview.Secret, for provenance: SigningRequestProvenance) throws -> Data {
|
||||
return data
|
||||
func sign(data: Data, with secret: Preview.Secret, for provenance: SigningRequestProvenance) throws -> SignedData {
|
||||
return SignedData(data: data, requiredAuthentication: false)
|
||||
}
|
||||
|
||||
func persistAuthentication(secret: Preview.Secret, forDuration duration: TimeInterval) throws {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user