]> git.saurik.com Git - apple/security.git/blobdiff - libsecurity_manifest/lib/SecureDownload.cpp
Security-55471.14.8.tar.gz
[apple/security.git] / libsecurity_manifest / lib / SecureDownload.cpp
index dd531c1e6404dc696e894715c78e557a30e45a9c..4d031f18d08d2e4fcdd409cc1fbed1c68312185e 100644 (file)
@@ -23,9 +23,8 @@
 
 #include <Security/Security.h>
 #include <security_utilities/security_utilities.h>
-#include <CoreServices/../Frameworks/CarbonCore.framework/Headers/MacErrors.h>
 #include <security_cdsa_utilities/cssmbridge.h>
-
+#include <../sec/Security/SecBase.h>
 #include "Download.h"
 #include "SecureDownload.h"
 
@@ -36,9 +35,9 @@
 #define API_END \
        } \
        catch (const MacOSError &err) { return err.osStatus(); } \
-       catch (const std::bad_alloc &) { return memFullErr; } \
-       catch (...) { return internalComponentErr; } \
-    return noErr;
+       catch (const std::bad_alloc &) { return errSecAllocate; } \
+       catch (...) { return errSecInternalComponent; } \
+    return errSecSuccess;
 
 #define API_END_GENERIC_CATCH          } catch (...) { return; }