SecCodeCopyPath(_:_:_:)
Retrieves the location on disk of signed code, given a code or static code object.
Declaration
func SecCodeCopyPath(_ staticCode: SecStaticCode, _ flags: SecCSFlags, _ path: UnsafeMutablePointer<CFURL?>) -> OSStatusParameters
- staticCode:
The code or static code object whose code you wish to locate. If you provide a code object, the function processes it in the same manner as the Seccodecopystaticcode(_:_:_:) function.
- flags:
Optional flags; see Seccsflags for possible values. Pass Kseccsdefaultflags for standard behavior.
- path:
On return, provides a URL identifying the location on disk of the code or static code object. For single files, the URL points to the file. For bundles, it points to the directory containing the entire bundle. In Objective-C, call the Cfrelease function to release this object when you are finished with it.
Return Value
A result code. See Code Signing Services Result Codes.