]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_cdsa_utilities/lib/cssmcred.h
Security-59306.61.1.tar.gz
[apple/security.git] / OSX / libsecurity_cdsa_utilities / lib / cssmcred.h
index e0e8aae3cd87b30e71f94d4683bf51924a5dad6b..2a827f1873a924671518534ba0a6ee8efe60ce27 100644 (file)
@@ -97,13 +97,16 @@ public:
        // pass-throughs to our SampleGroup
        uint32 size() const { return samples().size(); }
        CssmSample &operator [] (uint32 ix) const { return samples()[ix]; }
        // pass-throughs to our SampleGroup
        uint32 size() const { return samples().size(); }
        CssmSample &operator [] (uint32 ix) const { return samples()[ix]; }
-    
+
+    // Do these access credentials allow you to pop ui?
+    bool authorizesUI() const;
+
 public:
 public:
-    static const AccessCredentials &null;      // all null credential
+    static const AccessCredentials& null_credential();
        
        // turn NULL into a null credential if needed
        static const AccessCredentials *needed(const CSSM_ACCESS_CREDENTIALS *cred)
        
        // turn NULL into a null credential if needed
        static const AccessCredentials *needed(const CSSM_ACCESS_CREDENTIALS *cred)
-       { return cred ? overlay(cred) : &null; }
+       { return cred ? overlay(cred) : &null_credential(); }
 };
 
 
 };