X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/80e2389990082500d76eb566d4946be3e786c3ef..d8f41ccd20de16f8ebe2ccc84d47bf1cb2b26bbb:/libsecurity_keychain/libDER/libDERUtils/libDERUtils.c diff --git a/libsecurity_keychain/libDER/libDERUtils/libDERUtils.c b/libsecurity_keychain/libDER/libDERUtils/libDERUtils.c deleted file mode 100644 index 4846505f..00000000 --- a/libsecurity_keychain/libDER/libDERUtils/libDERUtils.c +++ /dev/null @@ -1,36 +0,0 @@ -/* Copyright (c) 2005-2007 Apple Inc. All Rights Reserved. */ - -/* - * libDERUtils.c - support routines for libDER tests & examples - * - * Created Nov. 7 2005 by dmitch - */ - -#include -#include - -const char *DERReturnString( - DERReturn drtn) -{ - static char unknown[128]; - - switch(drtn) { - case DR_Success: return "DR_Success"; - case DR_EndOfSequence: return "DR_EndOfSequence"; - case DR_UnexpectedTag: return "DR_UnexpectedTag"; - case DR_DecodeError: return "DR_DecodeError"; - case DR_Unimplemented: return "DR_Unimplemented"; - case DR_IncompleteSeq: return "DR_IncompleteSeq"; - default: - sprintf(unknown, "Unknown error (%d)", (int)drtn); - return unknown; - } -} - -void DERPerror( - const char *op, - DERReturn drtn) -{ - fprintf(stderr, "*** %s: %s\n", op, DERReturnString(drtn)); -} -