X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/5c19dc3ae3bd8e40a9c028b0deddd50ff337692c..07691282a056c4efea71e1e505527601e8cc166b:/OSX/libsecurity_apple_csp/lib/RSA_DSA_utils.cpp diff --git a/OSX/libsecurity_apple_csp/lib/RSA_DSA_utils.cpp b/OSX/libsecurity_apple_csp/lib/RSA_DSA_utils.cpp index 8ae93c2e..8fb48fd1 100644 --- a/OSX/libsecurity_apple_csp/lib/RSA_DSA_utils.cpp +++ b/OSX/libsecurity_apple_csp/lib/RSA_DSA_utils.cpp @@ -26,16 +26,16 @@ #include #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include #include #include -#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_ptrapd(d);