]> git.saurik.com Git - apple/securityd.git/blobdiff - src/AuthorizationEngine.cpp
securityd-27896.tar.gz
[apple/securityd.git] / src / AuthorizationEngine.cpp
index a2d0f6e70709ccbaaa2843361174428770764c9c..0a41fd1ddbfee0f7fb40456c61f54c57abb7d7c3 100644 (file)
@@ -3,8 +3,6 @@
  * 
  * @APPLE_LICENSE_HEADER_START@
  * 
- * Copyright (c) 1999-2003 Apple Computer, Inc.  All Rights Reserved.
- * 
  * This file contains Original Code and/or Modifications of Original Code
  * as defined in and that are subject to the Apple Public Source License
  * Version 2.0 (the 'License'). You may not use this file except in
@@ -133,6 +131,8 @@ Engine::authorize(const AuthItemSet &inRights, const AuthItemSet &environment,
 
                if (username.length())
                {
+                       // Call to checkpw in DS
+                       Server::active().longTermActivity();
                        // Let's create a credential from the passed in username and password.
                        Credential newCredential(username, password, shared);
                        // If it's valid insert it into the credentials list.  Normally this is
@@ -155,9 +155,9 @@ Engine::authorize(const AuthItemSet &inRights, const AuthItemSet &environment,
                secdebug("autheval", "evaluate rule %s for right %s returned %ld.", toplevelRule->name().c_str(), (*it)->name(), result);
 
                {
-                       CodeSigning::OSXCode *processCode = Server::process().clientCode();
+                       RefPointer<OSXCode> processCode = Server::process().clientCode();
                        string processName = processCode ? processCode->canonicalPath() : "unknown";
-                       CodeSigning::OSXCode *authCreatorCode = auth.creatorCode();
+                       RefPointer<OSXCode> authCreatorCode = auth.creatorCode();
                        string authCreatorName = authCreatorCode ? authCreatorCode->canonicalPath() : "unknown";
                        
                        if (result == errAuthorizationSuccess)