AusweisApp2
 Alle Klassen Namensbereiche Dateien Funktionen Variablen Typdefinitionen Aufzählungen Aufzählungswerte Propertys Freundbeziehungen Makrodefinitionen
EstablishPACEChannelCode.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
9 #include "EnumHelper.h"
10 
11 namespace governikus
12 {
13 
14 
15 //
16 // EstablishPACEChannel error codes according to TR-03119, D.1.2
17 //
18 defineTypedEnumType(EstablishPACEChannelErrorCode, quint32,
19  NoError
20  = 0x00000000,
21 
22  // Error in input data
23  InconsistentLengthsInInput
24  = 0xD0000001,
25  UnexpectedDataInInput
26  = 0xD0000002,
27  UnexpectedCombinationOfDataInInput
28  = 0xD0000003,
29 
30  // Errors during protocol execution
31  SyntaxErrorInTLVResponse
32  = 0xE0000001,
33  UnexpectedOrMissingObjectInTLVResponse
34  = 0xE0000002,
35  UnknownPasswordID
36  = 0xE0000003,
37  WrongAuthenticationToken
38  = 0xE0000006,
39  CertificateChainForTerminalAuthenticationCannotBeBuilt
40  = 0xE0000007,
41  UnexpectedDataStructureInResponseToChipAuthentication
42  = 0xE0000008,
43  PassiveAuthenticationFailed
44  = 0xE0000009,
45  IncorrectTokenForChipAuthentication
46  = 0xE000000A,
47 
48  // Response APDU of the card reports error (status code SW1SW2)
49  // Select EF.CardAccess
50  // 0xF000SW1SW2
51  // Read Binary EF.CardAccess
52  // 0xF001SW1SW2
53  // MSE: Set AT for PACE
54  // 0xF002SW1SW2
55  // General Authenticate Step 1 - 4
56  // 0xF003SW1SW2 - 0xF006SW1SW2
57 
58  // A specific case with "SW1 == 0x63 == warning" and a "dummy SW2".
59  GeneralAuthenticateStep1_4_Warning
60  = 0xf0066300,
61 
62  // APDU created by PCD for terminal/chip authentication reports error (status code SW1SW2)
63  // MSE: Set DST (first certificate)
64  // 0xF800SW1SW2
65  // PSO: Verify Certificate (first certificate)
66  // 0xF801SW1SW2
67  // MSE: Set DST (second certificate)
68  // 0xF802SW1SW2
69  // PSO: Verify Certificate (second certificate)
70  // 0xF803SW1SW2
71  // MSE: Set DST (third certificate)
72  // 0xF804SW1SW2
73  // PSO: Verify Certificate (third certificate)
74  // 0xF805SW1SW2
75  // MSE: Set AT for terminal authentication
76  // 0xF806SW1SW2
77  // Get Challenge
78  // 0xF807SW1SW2
79  // External Authenticate
80  // 0xF808SW1SW2
81  // Select EF.CardSecurity
82  // 0xF809SW1SW2
83  // Read Binary EF.CardSecurity
84  // 0xF80ASW1SW2
85  // MSE: Set AT for chip authentication
86  // 0xF80BSW1SW2
87  // General Authenticate
88  // 0xF80CSW1SW2
89 
90  // Others
91  CommunicationAbort
92  = 0xF0100001,
93  NoCard
94  = 0xF0100002,
95  Abort
96  = 0xF0200001,
97  Timeout
98  = 0xF0200002
99  )
100 
101 
102 }
defineTypedEnumType(StatusCode, quint16, EMPTY=0x0000, INVALID=0x0001, SUCCESS=0x9000, NO_PKCS15_APP=0x6200, END_OF_FILE=0x6282, PIN_DEACTIVATED=0x6283, FCI_NO_ISO7816_4=0x6284, VERIFICATION_FAILED=0x6300, INPUT_TIMEOUT=0x6400, INPUT_CANCELLED=0x6401, PASSWORDS_DIFFER=0x6402, PASSWORD_OUTOF_RANGE=0x6403, CARD_EJECTED_AND_REINSERTED=0x64a2, EEPROM_CELL_DEFECT=0x6581, SECURITY_ENVIRONMENT=0x6600, WRONG_LENGTH=0x6700, NO_BINARY_FILE=0x6981, ACCESS_DENIED=0x6982, PASSWORD_COUNTER_EXPIRED=0x6983, DIRECTORY_OR_PASSWORD_LOCKED_OR_NOT_ALLOWED=0x6984, NO_PARENT_FILE=0x6985, NOT_YET_INITIALIZED=0x6985, NO_CURRENT_DIRECTORY_SELECTED=0x6986, DATAFIELD_EXPECTED=0x6987, INVALID_SM_OBJECTS=0x6988, COMMAND_NOT_ALLOWED=0x69f0, INVALID_DATAFIELD=0x6a80, ALGORITHM_ID=0x6a81, FILE_NOT_FOUND=0x6a82, RECORD_NOT_FOUND=0x6a83, INVALID_PARAMETER=0x6a86, LC_INCONSISTANT=0x6a87, PASSWORD_NOT_FOUND=0x6a88, ILLEGAL_OFFSET=0x6b00, UNSUPPORTED_CLA=0x6e00, CANT_DISPLAY=0x6410, INVALID_P1P2=0x6a00, UNSUPPORTED_INS=0x6d00, PIN_BLOCKED=0x63c0, PIN_SUSPENDED=0x63c1, PIN_RETRY_COUNT_2=0x63c2,) defineEnumType(SW1