]> git.saurik.com Git - apple/security.git/blobdiff - securityd/src/transition.cpp
Security-57336.1.9.tar.gz
[apple/security.git] / securityd / src / transition.cpp
index bc3fb611f45263d770fdb594dfc2cfb924acf365..1512fd96f4e9539ba2ec5fc75fa908713458521a 100644 (file)
@@ -45,6 +45,7 @@
 #include <securityd_client/xdr_auth.h>
 #include <securityd_client/xdr_dldb.h>
 #include <security_utilities/logging.h>
+#include <Security/AuthorizationTagsPriv.h>
 #include <AssertMacros.h>
 
 #include <CoreFoundation/CFNumber.h>
@@ -1490,37 +1491,6 @@ kern_return_t ucsp_server_authorizationdbRemove(UCSP_ARGS, AuthorizationBlob aut
 }
 
 
-//
-// Miscellaneous administrative functions
-//
-kern_return_t ucsp_server_addCodeEquivalence(UCSP_ARGS, DATA_IN(oldHash), DATA_IN(newHash),
-       const char *name, boolean_t forSystem)
-{
-       BEGIN_IPC(addCodeEquivalence)
-       Server::codeSignatures().addLink(DATA(oldHash), DATA(newHash), name, forSystem);
-       END_IPC(CSSM)
-}
-
-kern_return_t ucsp_server_removeCodeEquivalence(UCSP_ARGS, DATA_IN(hash),
-       const char *name, boolean_t forSystem)
-{
-       BEGIN_IPC(removeCodeEquivalence)
-       Server::codeSignatures().removeLink(DATA(hash), name, forSystem);
-       END_IPC(CSSM)
-}
-
-kern_return_t ucsp_server_setAlternateSystemRoot(UCSP_ARGS, const char *root)
-{
-       BEGIN_IPC(setAlternateSystemRoot)
-#if defined(NDEBUG)
-       if (connection.process().uid() != 0)
-               CssmError::throwMe(CSSM_ERRCODE_OS_ACCESS_DENIED);
-#endif //NDEBUG
-       Server::codeSignatures().open((string(root) + EQUIVALENCEDBPATH).c_str());
-       END_IPC(CSSM)
-}
-
-
 //
 // Child check-in service.
 // Note that this isn't using the standard argument pattern.