]> 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 a1a6716ce58b6686c9f2f7a80d76a6fb8b7f5a95..8f048f5cee755fa5245ef45beb3c19752438ad89 100644 (file)
@@ -164,11 +164,12 @@ 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;
     Mutex *cdsaKeyMutex;
 };
     SecCredentialType credentialType;
     Mutex *cdsaKeyMutex;
 };