1 /*
2  *
3  *  Copyright (C) 1998-2020, OFFIS e.V.
4  *  All rights reserved.  See COPYRIGHT file for details.
5  *
6  *  This software and supporting documentation were developed by
7  *
8  *    OFFIS e.V.
9  *    R&D Division Health
10  *    Escherweg 2
11  *    D-26121 Oldenburg, Germany
12  *
13  *
14  *  Module: dcmsign
15  *
16  *  Author: Marco Eichelberg
17  *
18  *  Purpose: exit codes for dcmsign
19  *
20  */
21 
22 #ifndef SIEXIT_H
23 #define SIEXIT_H
24 
25 #include "dcmtk/config/osconfig.h"    /* make sure OS specific configuration is included first */
26 
27 #ifdef WITH_OPENSSL
28 
29 // exit code constants in addition to those defined in "dcmtk/ofstd/ofexit.h"
30 
31 // input file errors (20-39)
32 #define EXITCODE_CANNOT_READ_TAG_FILE            30
33 #define EXITCODE_CANNOT_READ_TSQ_FILE            31
34 #define EXITCODE_CANNOT_READ_TSR_FILE            32
35 #define EXITCODE_CANNOT_READ_UID_FILE            33
36 
37 // output file errors (40-59)
38 #define EXITCODE_CANNOT_WRITE_SUPPORT_FILE       46
39 
40 // processing errors (80-99)
41 #define EXITCODE_CANNOT_ACCESS_SIGNATURE         80
42 #define EXITCODE_CANNOT_ACCESS_TS                81
43 #define EXITCODE_CANNOT_INSERT_TS                82
44 #define EXITCODE_SIGNATURE_REMOVAL_FAILED        83
45 #define EXITCODE_SIGNATURE_UID_NOT_FOUND         84
46 #define EXITCODE_SIGNATURE_CREATION_FAILED       85
47 #define EXITCODE_SYNTAX_ERROR_IN_TAG_FILE        86
48 #define EXITCODE_TS_CONSISTENCY_CHECK_FAILED     87
49 
50 // application specific errors (100-119)
51 #define EXITCODE_NO_SIGNATURES_PRESENT           100
52 #define EXITCODE_SIGNATURE_VERIFICATION_FAILED   101
53 #define EXITCODE_SIGNATURE_VERIFICATION_POLICY   102
54 
55 #endif
56 #endif
57