#include <security_utilities/debugging.h>
#include <typeinfo>
#include <stdio.h>
-
+#include <Security/SecBase.h>
//@@@
// From cssmapple.h - layering break
const char *CFError::what() const throw ()
{ return "CoreFoundation error"; }
-// can't get this from CarbonCore/MacErrors, but it's too good to pass up
-enum {
- coreFoundationUnknownErr = -4960
-};
-
OSStatus CFError::osStatus() const
-{ return coreFoundationUnknownErr; }
+{ return errSecCoreFoundationUnknown; }
int CFError::unixError() const
{
void CFError::throwMe()
{ throw CFError(); }
+
+
+
+
+void ModuleNexusError::throwMe()
+{
+ throw ModuleNexusError();
+}
+
+
+
+OSStatus ModuleNexusError::osStatus() const
+{
+ return errSecParam;
+}
+
+
+
+int ModuleNexusError::unixError() const
+{
+ return EINVAL;
+}
+