]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_keychain/lib/Identity.h
Security-58286.51.6.tar.gz
[apple/security.git] / OSX / libsecurity_keychain / lib / Identity.h
index 9a1d68c733b0d5688a4f41d0d85dad20314e8ca1..29170a27fb6af24b4288fc30a962948caed52c84 100644 (file)
@@ -43,12 +43,15 @@ public:
        SECCFFUNCTIONS(Identity, SecIdentityRef, errSecInvalidItemRef, gTypes().Identity)
 
     Identity(const SecPointer<KeyItem> &privateKey,
-               const SecPointer<Certificate> &certificate);
+             const SecPointer<Certificate> &certificate);
+    Identity(const SecKeyRef privateKey,
+             const SecPointer<Certificate> &certificate);
     Identity(const StorageManager::KeychainList &keychains, const SecPointer<Certificate> &certificate);
     virtual ~Identity() throw();
 
        SecPointer<KeyItem> privateKey() const;
        SecPointer<Certificate> certificate() const;
+    SecKeyRef privateKeyRef() const;
 
        bool operator < (const Identity &other) const;
        bool operator == (const Identity &other) const;
@@ -57,7 +60,7 @@ public:
     CFHashCode hash();
 
 private:
-       SecPointer<KeyItem> mPrivateKey;
+    SecKeyRef mPrivateKey;
        SecPointer<Certificate> mCertificate;
 };