]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_apple_csp/lib/RSA_DSA_utils.cpp
Security-57337.60.2.tar.gz
[apple/security.git] / OSX / libsecurity_apple_csp / lib / RSA_DSA_utils.cpp
index 8ae93c2e218321fceaa9ae30639226a6c113b283..6f15d7a52713d6b27f3250654ac5ccc3bf35577e 100644 (file)
@@ -100,12 +100,18 @@ RSAKeySizes::RSAKeySizes()
        maxPubExponentSize = RSA_MAX_PUB_EXPONENT_SIZE;
        
        /* now see if there are prefs set for either of these */
        maxPubExponentSize = RSA_MAX_PUB_EXPONENT_SIZE;
        
        /* now see if there are prefs set for either of these */
-       Dictionary* d = Dictionary::CreateDictionary(kRSAKeySizePrefsDomain, Dictionary::US_System, true);
+    Dictionary* d = NULL;
+    try {
+        d = Dictionary::CreateDictionary(kRSAKeySizePrefsDomain, Dictionary::US_System, true);
+    } catch(...) {
+        return;
+    }
+
        if (!d)
        {
                return;
        }
        if (!d)
        {
                return;
        }
-       
+
        if (d->dict())
        {
                auto_ptr<Dictionary>apd(d);
        if (d->dict())
        {
                auto_ptr<Dictionary>apd(d);