AusweisApp
 
Lade ...
Suche ...
Keine Treffer
ApplicationTemplate.h
gehe zur Dokumentation dieser Datei
1
4
8
9#pragma once
10
11#include "ASN1TemplateUtil.h"
12#include "FileRef.h"
13
14#include <QDebug>
15#include <QSharedPointer>
16#include <openssl/asn1t.h>
17
18
19namespace governikus
20{
21
36
37using ApplicationTemplate = struct application_template_st
38{
39 ASN1_OCTET_STRING* mApplicationIdentifier;
40 ASN1_PRINTABLESTRING* mApplicationLabel;
41 ASN1_OCTET_STRING* mFileReference;
42 ASN1_OCTET_STRING* mCommandApdu;
43 ASN1_OCTET_STRING* mDiscretionaryData;
44 ASN1_OCTET_STRING* mUniformResourceLocator;
45
46 static QSharedPointer<application_template_st> decode(const QByteArray& pBytes);
47
48 Q_DISABLE_COPY(application_template_st)
49 ~application_template_st();
50
54 [[nodiscard]] QByteArray getAid() const;
55};
56
57
58inline QDebug operator<<(QDebug pDbg, const QSharedPointer<ApplicationTemplate>& pApplicationTemplate)
59{
60 QDebugStateSaver saver(pDbg);
61 pDbg << FileRef(FileRef::TYPE::APPLICATION, pApplicationTemplate->getAid());
62 return pDbg;
63}
64
65
66DEFINE_STACK_OF(ApplicationTemplate)
67DECLARE_ASN1_FUNCTIONS(ApplicationTemplate)
69
70
71} // namespace governikus
#define DECLARE_ASN1_OBJECT(name)
Definition ASN1TemplateUtil.h:177
Definition FileRef.h:19
@ APPLICATION
Definition FileRef.h:25
Implementation of GeneralAuthenticate response APDUs.
Definition CommandApdu.h:17
struct application_template_st { ASN1_OCTET_STRING *mApplicationIdentifier; ASN1_PRINTABLESTRING *mApplicationLabel; ASN1_OCTET_STRING *mFileReference; ASN1_OCTET_STRING *mCommandApdu; ASN1_OCTET_STRING *mDiscretionaryData; ASN1_OCTET_STRING *mUniformResourceLocator; static QSharedPointer< application_template_st > decode(const QByteArray &pBytes); ~application_template_st();[[nodiscard]] QByteArray getAid() const ;} ApplicationTemplate
Definition ApplicationTemplate.h:37
QDebug operator<<(QDebug pDbg, const CommandApdu &pCommandApdu)
Definition CommandApdu.h:96