Network Extension vs SecCodeCheckValidityWithErrors ?

When calling SecCodeCheckValidityWithErrors from a Network Extension, this function returns with OSStatus -67061.

"-67061" is not documented in SecBase.h (unless I'm mistaken). The CFErrorCopyDescription output for this error says something like "The operation can not be performed".

Question:

Can SecCodeCheckValidityWithErrors be called from a Network Extension?

If it can not be called, would there be, somewhere, a list of framework, functions that are not network-extension-safe?


Answered by DTS Engineer in 638799022

Can SecCodeCheckValidityWithErrors be called from a Network
Extension?

See this post.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Accepted Answer

Can SecCodeCheckValidityWithErrors be called from a Network
Extension?

See this post.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Thanks. This looks to fix the issue.

Found out that -67061 is defined in CSCommon.h.
Network Extension vs SecCodeCheckValidityWithErrors ?
 
 
Q