]>
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
28 void CKRaise(const char *reason
) {
30 printf("CryptKit fatal error: %s\n", reason
);
38 * OpenStep on Windows.
41 void CKRaise(const char *reason
) {
43 printf("CryptKit fatal error: %s\n", reason
);
51 * Macintosh, all flavors.
54 #include <CrashReporterClient.h>
56 void CKRaise(const char *reason
) {
58 printf("CryptKit fatal error: %s\n", reason
);
61 if(asprintf(&msg
, "CryptKit fatal error: %s", reason
)) {
62 CRSetCrashLogMessage(msg
);
64 CRSetCrashLogMessage("CryptKit fatal error");
71 /* try for generic UNIX */
73 void CKRaise(const char *reason
) {
75 printf("CryptKit fatal error: %s\n", reason
);
82 #error platform-specific work needed in security_cryptkit/platform.c