From 77884a83b4ba677d07bbd4f2874d2d3b4e2bbead Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Mon, 8 Sep 2025 00:21:52 -0700 Subject: [PATCH] Cleanup --- .../SecretAgentKit/SigningRequestTracer.swift | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Sources/Packages/Sources/SecretAgentKit/SigningRequestTracer.swift b/Sources/Packages/Sources/SecretAgentKit/SigningRequestTracer.swift index 96ced63..db850af 100644 --- a/Sources/Packages/Sources/SecretAgentKit/SigningRequestTracer.swift +++ b/Sources/Packages/Sources/SecretAgentKit/SigningRequestTracer.swift @@ -2,15 +2,6 @@ import Foundation import AppKit import Security import SecretKit -//import SecretAgentKitHeaders - -// from libproc.h -@_silgen_name("proc_pidpath") -@discardableResult func proc_pidpath(_ pid: Int32, _ buffer: UnsafeMutableRawPointer!, _ buffersize: UInt32) -> Int32 - -//// from SecTask.h -@_silgen_name("SecCodeCreateWithPID") -@discardableResult func SecCodeCreateWithPID(_: Int32, _: SecCSFlags, _: UnsafeMutablePointer?>!) -> OSStatus /// An object responsible for generating ``SecretKit.SigningRequestProvenance`` objects. struct SigningRequestTracer { @@ -88,3 +79,11 @@ extension SigningRequestTracer { } } + +// from libproc.h +@_silgen_name("proc_pidpath") +@discardableResult func proc_pidpath(_ pid: Int32, _ buffer: UnsafeMutableRawPointer!, _ buffersize: UInt32) -> Int32 + +//// from SecTask.h +@_silgen_name("SecCodeCreateWithPID") +@discardableResult func SecCodeCreateWithPID(_: Int32, _: SecCSFlags, _: UnsafeMutablePointer?>!) -> OSStatus