mirror of
https://github.com/maxgoedjen/secretive.git
synced 2026-05-07 16:08:58 +02:00
* Sketching out. * WIP * WIP * Dump * Apply stash * Merge + WIP * UI * More WIP * Agent config * UI cleanup * Restore dirty files * XPC * Edit/delete * UI fixes * Cleanup * Change id for OpenSSHCertificate to hex of md5 * Fix runtime warning for confirmation dialog * Mark strings as reviewed * Cleanup * Fix agent tests
18 lines
549 B
Swift
18 lines
549 B
Swift
import Foundation
|
|
import OSLog
|
|
import XPCWrappers
|
|
import SSHProtocolKit
|
|
|
|
final class SecretiveCertificateParser: NSObject, XPCProtocol {
|
|
|
|
private let logger = Logger(subsystem: "com.maxgoedjen.secretive.SecretiveCertificateParser", category: "SecretiveCertificateParser")
|
|
|
|
func process(_ data: Data) async throws -> OpenSSHCertificate {
|
|
let parser = OpenSSHCertificateParser()
|
|
let result = try parser.parse(data: data)
|
|
logger.log("Parser parsed certificate \(result.debugDescription)")
|
|
return result
|
|
}
|
|
|
|
}
|