AusweisApp2
EstablishPaceChannelCode.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
9 #include "EnumHelper.h"
10 
11 namespace governikus
12 {
13 
14 //
15 // EstablishPaceChannel error codes according to TR-03119, D.1.2
16 //
17 defineTypedEnumType(EstablishPaceChannelErrorCode, quint32,
18  NoError
19  = 0x00000000,
20 
21  // Error in input data
22  InconsistentLengthsInInput
23  = 0xD0000001,
24  UnexpectedDataInInput
25  = 0xD0000002,
26  UnexpectedCombinationOfDataInInput
27  = 0xD0000003,
28 
29  // Errors during protocol execution
30  SyntaxErrorInTLVResponse
31  = 0xE0000001,
32  UnexpectedOrMissingObjectInTLVResponse
33  = 0xE0000002,
34  UnknownPasswordID
35  = 0xE0000003,
36  WrongAuthenticationToken
37  = 0xE0000006,
38  CertificateChainForTerminalAuthenticationCannotBeBuilt
39  = 0xE0000007,
40  UnexpectedDataStructureInResponseToChipAuthentication
41  = 0xE0000008,
42  PassiveAuthenticationFailed
43  = 0xE0000009,
44  IncorrectTokenForChipAuthentication
45  = 0xE000000A,
46 
47  // Response APDU of the card reports error (status code SW1SW2)
48  // Select EF.CardAccess
49  // 0xF000SW1SW2
50  // Read Binary EF.CardAccess
51  // 0xF001SW1SW2
52  // MSE: Set AT for PACE
53  // 0xF002SW1SW2
54  // General Authenticate Step 1 - 4
55  // 0xF003SW1SW2 - 0xF006SW1SW2
56 
57  // A specific case with "SW1 == 0x63 == warning" and a "dummy SW2".
58  GeneralAuthenticateStep1_4_Warning
59  = 0xF0066300,
60 
61  // APDU created by PCD for terminal/chip authentication reports error (status code SW1SW2)
62  // MSE: Set DST (first certificate)
63  // 0xF800SW1SW2
64  // PSO: Verify Certificate (first certificate)
65  // 0xF801SW1SW2
66  // MSE: Set DST (second certificate)
67  // 0xF802SW1SW2
68  // PSO: Verify Certificate (second certificate)
69  // 0xF803SW1SW2
70  // MSE: Set DST (third certificate)
71  // 0xF804SW1SW2
72  // PSO: Verify Certificate (third certificate)
73  // 0xF805SW1SW2
74  // MSE: Set AT for terminal authentication
75  // 0xF806SW1SW2
76  // Get Challenge
77  // 0xF807SW1SW2
78  // External Authenticate
79  // 0xF808SW1SW2
80  // Select EF.CardSecurity
81  // 0xF809SW1SW2
82  // Read Binary EF.CardSecurity
83  // 0xF80ASW1SW2
84  // MSE: Set AT for chip authentication
85  // 0xF80BSW1SW2
86  // General Authenticate
87  // 0xF80CSW1SW2
88 
89  // Others
90  CommunicationAbort
91  = 0xF0100001,
92  NoCard
93  = 0xF0100002,
94  Abort
95  = 0xF0200001,
96  Timeout
97  = 0xF0200002,
98  NoActivePinSet
99  = 0xF0200003
100  )
101 
102 
103 } // namespace governikus
A simple template renderer.
Definition: ActivationContext.h:15
defineTypedEnumType(Ins, uchar, UNKNOWN=0x00, MSE_SET=0x22, EXTERNAL_AUTHENTICATE=0x82, GET_CHALLENGE=0x84, GENERAL_AUTHENTICATE=0x86, PSO_VERIFY=0x2A, PSO_COMPUTE=0x2B, RESET_RETRY_COUNTER=0x2C, SELECT=0xA4, READ_BINARY=0xB0, GET_RESPONSE=0xC0, UPDATE_BINARY=0xD6) class CommandApdu
Definition: CommandApdu.h:17