]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_keychain/lib/KeyItem.h
Security-59306.61.1.tar.gz
[apple/security.git] / OSX / libsecurity_keychain / lib / KeyItem.h
index 54691919b73ac4381d78132d90c2379aca0e2010..8f048f5cee755fa5245ef45beb3c19752438ad89 100644 (file)
@@ -164,12 +164,14 @@ private:
 
 } // end namespace Security
 
 
 } // end namespace Security
 
-struct OpaqueSecKeyRef {
-    CFRuntimeBase _base;
-    const SecKeyDescriptor *key_class;
-    SecKeyRef cdsaKey;
-    Security::KeychainCore::KeyItem *key;
+class CDSASecKey : public __SecKey {
+public:
+    static Security::KeychainCore::KeyItem *keyItem(SecKeyRef key) {
+        CDSASecKey *cdsaKey = static_cast<CDSASecKey *>(key);
+        return static_cast<Security::KeychainCore::KeyItem *>(cdsaKey->key);
+    }
     SecCredentialType credentialType;
     SecCredentialType credentialType;
+    Mutex *cdsaKeyMutex;
 };
 
 #endif // !_SECURITY_KEYITEM_H_
 };
 
 #endif // !_SECURITY_KEYITEM_H_