AusweisApp
 
Lade ...
Suche ...
Keine Treffer
ApplicationTemplate.h
gehe zur Dokumentation dieser Datei
1
4
5#pragma once
6
7#include "ASN1TemplateUtil.h"
8#include "FileRef.h"
9
10#include <QDebug>
11#include <QSharedPointer>
12#include <openssl/asn1t.h>
13
14
15namespace governikus
16{
17
32
33using ApplicationTemplate = struct application_template_st
34{
35 ASN1_OCTET_STRING* mApplicationIdentifier;
36 ASN1_PRINTABLESTRING* mApplicationLabel;
37 ASN1_OCTET_STRING* mFileReference;
38 ASN1_OCTET_STRING* mCommandApdu;
39 ASN1_OCTET_STRING* mDiscretionaryData;
40 ASN1_OCTET_STRING* mUniformResourceLocator;
41
42 static QSharedPointer<application_template_st> decode(const QByteArray& pBytes);
43
44 Q_DISABLE_COPY(application_template_st)
45 ~application_template_st();
46
50 [[nodiscard]] QByteArray getAid() const;
51};
52
53
54inline QDebug operator<<(QDebug pDbg, const QSharedPointer<ApplicationTemplate>& pApplicationTemplate)
55{
56 QDebugStateSaver saver(pDbg);
57 pDbg << FileRef(FileRef::TYPE::APPLICATION, pApplicationTemplate->getAid());
58 return pDbg;
59}
60
61
62DEFINE_STACK_OF(ApplicationTemplate)
63DECLARE_ASN1_FUNCTIONS(ApplicationTemplate)
65
66
67} // namespace governikus
#define DECLARE_ASN1_OBJECT(name)
Definition ASN1TemplateUtil.h:175
Definition FileRef.h:15
@ APPLICATION
Definition FileRef.h:21
Defines the AccessRight and AccessRole enum.
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:33
QDebug operator<<(QDebug pDbg, const CommandApdu &pCommandApdu)
Definition CommandApdu.h:96