]>
git.saurik.com Git - apple/security.git/blob - OSX/libsecurity_cryptkit/lib/platform.c
1 /* Copyright (c) 1998,2011,2014 Apple Inc. All Rights Reserved.
3 * NOTICE: USE OF THE MATERIALS ACCOMPANYING THIS NOTICE IS SUBJECT
4 * TO THE TERMS OF THE SIGNED "FAST ELLIPTIC ENCRYPTION (FEE) REFERENCE
5 * SOURCE CODE EVALUATION AGREEMENT" BETWEEN APPLE, INC. AND THE
6 * ORIGINAL LICENSEE THAT OBTAINED THESE MATERIALS FROM APPLE,
7 * INC. ANY USE OF THESE MATERIALS NOT PERMITTED BY SUCH AGREEMENT WILL
8 * EXPOSE YOU TO LIABILITY.
9 ***************************************************************************
11 * platform.c - platform-dependent C functions
27 * Macintosh, all flavors.
30 #include <CrashReporterClient.h>
32 void CKRaise(const char *reason
) {
34 printf("CryptKit fatal error: %s\n", reason
);
37 if(asprintf(&msg
, "CryptKit fatal error: %s", reason
)) {
38 CRSetCrashLogMessage(msg
);
40 CRSetCrashLogMessage("CryptKit fatal error");
47 #error platform-specific work needed in security_cryptkit/platform.c