]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_apple_csp/lib/RSA_DSA_utils.cpp
Security-57740.20.22.tar.gz
[apple/security.git] / OSX / libsecurity_apple_csp / lib / RSA_DSA_utils.cpp
index 8ae93c2e218321fceaa9ae30639226a6c113b283..8b88333a0d8044b1f6afc1b4e649b828877c4e44 100644 (file)
@@ -35,7 +35,7 @@
 #include <security_utilities/globalizer.h>
 #include <CoreFoundation/CFNumber.h>
 
-#define rsaMiscDebug(args...)  secdebug("rsaMisc", ## args)
+#define rsaMiscDebug(args...)  secinfo("rsaMisc", ## args)
 
 /*
  * Obtain and cache max key sizes. System preferences only consulted 
@@ -100,12 +100,18 @@ RSAKeySizes::RSAKeySizes()
        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->dict())
        {
                auto_ptr<Dictionary>apd(d);