AusweisApp
Lade ...
Suche ...
Keine Treffer
MobileEIDTypeInfo.h
gehe zur Dokumentation dieser Datei
1
9#pragma once
10
11
12#include "SecurityInfo.h"
13
14
15namespace governikus
16{
17
36
37
38/*
39 * Wrapper for structure mobileeidtypeinfo_st.
40 */
43{
45
46 private:
48
50 [[nodiscard]] ASN1_OBJECT* getProtocolObjectIdentifier() const override;
51 static bool acceptsProtocol(const ASN1_OBJECT* pObjectIdentifier);
52
53 public:
54 static QSharedPointer<const MobileEIDTypeInfo> decode(const QByteArray& pBytes);
55 [[nodiscard]] QByteArray encode() const;
56};
57
58
59inline QDebug operator<<(QDebug pDbg, const QSharedPointer<const MobileEIDTypeInfo>& pMobileEIDTypeInfo)
60{
62 pDbg.nospace().noquote() << pMobileEIDTypeInfo->getOid();
63 return pDbg;
64}
65
66
67} // namespace governikus
#define DECLARE_ASN1_OBJECT(name)
Definition ASN1TemplateUtil.h:177
Definition MobileEIDTypeInfo.h:43
Definition SecurityInfo.h:46
Implementation of GeneralAuthenticate response APDUs.
Definition CommandApdu.h:17
QSharedPointer< T > decodeObject(const QByteArray &pData, bool pLogging=true)
Template function for decoding an OpenSSL type from DER encoded QByteArray.
Definition ASN1TemplateUtil.h:114
QDebug operator<<(QDebug pDbg, const CommandApdu &pCommandApdu)
Definition CommandApdu.h:96
Definition MobileEIDTypeInfo.h:30
ASN1_TYPE * mRequiredData
Definition MobileEIDTypeInfo.h:32
ASN1_OBJECT * mProtocol
Definition MobileEIDTypeInfo.h:31