AusweisApp
Lade ...
Suche ...
Keine Treffer
CardReturnCode.h
gehe zur Dokumentation dieser Datei
1
9
#pragma once
10
11
#include "
EnumHelper.h
"
12
#include "
GlobalStatus.h
"
13
14
namespace
governikus
15
{
16
17
defineEnumType
(
CardReturnCode
,
18
UNDEFINED
,
19
OK
,
20
OK_PUK
,
21
RETRY_ALLOWED
,
22
CARD_NOT_FOUND
,
23
UNKNOWN
,
24
INPUT_TIME_OUT
,
25
INVALID_CAN
,
26
INVALID_PASSWORD
,
27
INVALID_PIN
,
28
INVALID_PIN_2
,
29
INVALID_PIN_3
,
30
INVALID_PUK
,
31
COMMAND_FAILED
,
32
CANCELLATION_BY_USER
,
33
NEW_PIN_MISMATCH
,
34
NEW_PIN_INVALID_LENGTH
,
35
PIN_BLOCKED,
36
PIN_NOT_BLOCKED
,
37
PUK_INOPERATIVE
,
38
PROTOCOL_ERROR
,
39
WRONG_LENGTH
,
40
UNEXPECTED_TRANSMIT_STATUS
)
41
42
43
class
CardReturnCodeUtil
44
{
45
private
:
46
CardReturnCodeUtil
() =
default
;
47
48
public
:
49
static
GlobalStatus
toGlobalStatus
(
CardReturnCode
pCode
);
50
static
bool
equalsWrongPacePassword
(
CardReturnCode
pCode
);
51
};
52
53
}
// namespace governikus
EnumHelper.h
defineEnumType
#define defineEnumType(enumName,...)
Definition
EnumHelper.h:90
GlobalStatus.h
governikus::GlobalStatus
Definition
GlobalStatus.h:22
governikus
Implementation of GeneralAuthenticate response APDUs.
Definition
CommandApdu.h:16
governikus::UNKNOWN
UNKNOWN
Definition
ResponseApdu.h:63
governikus::UNDEFINED
UNDEFINED
Definition
SecurityProtocol.h:22
governikus::WRONG_LENGTH
WRONG_LENGTH
Definition
ResponseApdu.h:70
governikus::KeyAgreementStatus::PROTOCOL_ERROR
@ PROTOCOL_ERROR
governikus::KeyAgreementStatus::RETRY_ALLOWED
@ RETRY_ALLOWED
governikus::decodeObject
QSharedPointer< T > decodeObject(const QByteArray &pData, bool pLogging=true)
Template function for decoding an OpenSSL type from DER encoded QByteArray.
Definition
ASN1TemplateUtil.h:114
src
global
CardReturnCode.h
Erzeugt von
1.10.0