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
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15
defineTypedEnumType(AccessRight, uint, WRITE_DG17=37, WRITE_DG18=36, WRITE_DG19=35, WRITE_DG20=34, WRITE_DG21=33, RFU_32=32, RFU_31=31, RFU_30=30, RFU_29=29, READ_DG21=28, READ_DG20=27, READ_DG19=26, READ_DG18=25, READ_DG17=24, READ_DG16=23, READ_DG15=22, READ_DG14=21, READ_DG13=20, READ_DG12=19, READ_DG11=18, READ_DG10=17, READ_DG09=16, READ_DG08=15, READ_DG07=14, READ_DG06=13, READ_DG05=12, READ_DG04=11, READ_DG03=10, READ_DG02=9, READ_DG01=8, INSTALL_QUAL_CERT=7, INSTALL_CERT=6, PIN_MANAGEMENT=5, CAN_ALLOWED=4, PRIVILEGED_TERMINAL=3, RESTRICTED_IDENTIFICATION=2, COMMUNITY_ID_VERIFICATION=1, AGE_VERIFICATION=0) defineTypedEnumType(AccessRightNames