mirror of
https://github.com/Martin-P/OpenV2G.git
synced 2024-11-08 12:45:42 +00:00
git-svn-id: https://svn.code.sf.net/p/openv2g/code/trunk@101 d9f2db14-54d0-4bde-b00c-16405c910529
This commit is contained in:
parent
6432bf8fe8
commit
e152daafc9
6 changed files with 5132 additions and 4723 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2007-2015 Siemens AG
|
||||
* Copyright (C) 2007-2017 Siemens AG
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published
|
||||
|
@ -18,8 +18,8 @@
|
|||
/*******************************************************************
|
||||
*
|
||||
* @author Daniel.Peintner.EXT@siemens.com
|
||||
* @version 0.9.3
|
||||
* @contact Joerg.Heuer@siemens.com
|
||||
* @version 2017-09-04
|
||||
* @contact Richard.Kuntschke@siemens.com
|
||||
*
|
||||
* <p>Code generated by EXIdizer</p>
|
||||
* <p>Schema: xmldsig-core-schema.xsd</p>
|
||||
|
@ -68,60 +68,150 @@ void init_xmldsigEXIDocument(struct xmldsigEXIDocument* exiDoc) {
|
|||
exiDoc->Object_isUsed = 0u;
|
||||
}
|
||||
|
||||
|
||||
#if DEPLOY_XMLDSIG_CODEC_FRAGMENT == SUPPORT_YES
|
||||
void init_xmldsigEXIFragment(struct xmldsigEXIFragment* exiFrag) {
|
||||
exiFrag->RSAKeyValue_isUsed = 0u;
|
||||
exiFrag->PGPKeyPacket_isUsed = 0u;
|
||||
exiFrag->PGPKeyPacket_isUsed = 0u;
|
||||
exiFrag->X509Data_isUsed = 0u;
|
||||
exiFrag->PgenCounter_isUsed = 0u;
|
||||
exiFrag->X509Certificate_isUsed = 0u;
|
||||
exiFrag->Seed_isUsed = 0u;
|
||||
exiFrag->Modulus_isUsed = 0u;
|
||||
exiFrag->X509SKI_isUsed = 0u;
|
||||
exiFrag->SPKISexp_isUsed = 0u;
|
||||
exiFrag->CanonicalizationMethod_isUsed = 0u;
|
||||
exiFrag->X509SerialNumber_isUsed = 0u;
|
||||
exiFrag->SignatureProperties_isUsed = 0u;
|
||||
exiFrag->Reference_isUsed = 0u;
|
||||
exiFrag->KeyName_isUsed = 0u;
|
||||
exiFrag->P_isUsed = 0u;
|
||||
exiFrag->SignatureValue_isUsed = 0u;
|
||||
exiFrag->SignedInfo_isUsed = 0u;
|
||||
exiFrag->KeyInfo_isUsed = 0u;
|
||||
exiFrag->DigestMethod_isUsed = 0u;
|
||||
exiFrag->SPKIData_isUsed = 0u;
|
||||
exiFrag->Object_isUsed = 0u;
|
||||
exiFrag->Exponent_isUsed = 0u;
|
||||
exiFrag->X509IssuerName_isUsed = 0u;
|
||||
exiFrag->X509SubjectName_isUsed = 0u;
|
||||
exiFrag->PGPData_isUsed = 0u;
|
||||
exiFrag->HMACOutputLength_isUsed = 0u;
|
||||
exiFrag->DigestValue_isUsed = 0u;
|
||||
exiFrag->MgmtData_isUsed = 0u;
|
||||
exiFrag->X509Data_isUsed = 0u;
|
||||
exiFrag->KeyValue_isUsed = 0u;
|
||||
exiFrag->SignatureProperty_isUsed = 0u;
|
||||
exiFrag->DSAKeyValue_isUsed = 0u;
|
||||
exiFrag->X509IssuerSerial_isUsed = 0u;
|
||||
exiFrag->Y_isUsed = 0u;
|
||||
exiFrag->J_isUsed = 0u;
|
||||
exiFrag->Signature_isUsed = 0u;
|
||||
exiFrag->Transform_isUsed = 0u;
|
||||
exiFrag->PGPKeyID_isUsed = 0u;
|
||||
exiFrag->DigestMethod_isUsed = 0u;
|
||||
exiFrag->SPKISexp_isUsed = 0u;
|
||||
exiFrag->Transforms_isUsed = 0u;
|
||||
exiFrag->G_isUsed = 0u;
|
||||
exiFrag->X509CRL_isUsed = 0u;
|
||||
exiFrag->Q_isUsed = 0u;
|
||||
exiFrag->XPath_isUsed = 0u;
|
||||
exiFrag->SignatureMethod_isUsed = 0u;
|
||||
exiFrag->RetrievalMethod_isUsed = 0u;
|
||||
exiFrag->KeyName_isUsed = 0u;
|
||||
exiFrag->X509IssuerName_isUsed = 0u;
|
||||
exiFrag->MgmtData_isUsed = 0u;
|
||||
exiFrag->Reference_isUsed = 0u;
|
||||
exiFrag->SignatureProperties_isUsed = 0u;
|
||||
exiFrag->PGPKeyID_isUsed = 0u;
|
||||
exiFrag->PGPData_isUsed = 0u;
|
||||
exiFrag->DSAKeyValue_isUsed = 0u;
|
||||
exiFrag->SignatureValue_isUsed = 0u;
|
||||
exiFrag->KeyInfo_isUsed = 0u;
|
||||
exiFrag->SignatureProperty_isUsed = 0u;
|
||||
exiFrag->PGPKeyPacket_isUsed = 0u;
|
||||
exiFrag->PGPKeyPacket_isUsed = 0u;
|
||||
exiFrag->HMACOutputLength_isUsed = 0u;
|
||||
exiFrag->Exponent_isUsed = 0u;
|
||||
exiFrag->Manifest_isUsed = 0u;
|
||||
exiFrag->P_isUsed = 0u;
|
||||
exiFrag->CanonicalizationMethod_isUsed = 0u;
|
||||
exiFrag->Q_isUsed = 0u;
|
||||
exiFrag->Seed_isUsed = 0u;
|
||||
exiFrag->X509SubjectName_isUsed = 0u;
|
||||
exiFrag->X509Certificate_isUsed = 0u;
|
||||
exiFrag->RSAKeyValue_isUsed = 0u;
|
||||
exiFrag->X509IssuerSerial_isUsed = 0u;
|
||||
exiFrag->SPKIData_isUsed = 0u;
|
||||
exiFrag->G_isUsed = 0u;
|
||||
exiFrag->J_isUsed = 0u;
|
||||
exiFrag->SignedInfo_isUsed = 0u;
|
||||
exiFrag->X509SKI_isUsed = 0u;
|
||||
exiFrag->Transform_isUsed = 0u;
|
||||
exiFrag->XPath_isUsed = 0u;
|
||||
exiFrag->Object_isUsed = 0u;
|
||||
exiFrag->X509SerialNumber_isUsed = 0u;
|
||||
exiFrag->RetrievalMethod_isUsed = 0u;
|
||||
exiFrag->Modulus_isUsed = 0u;
|
||||
exiFrag->X509CRL_isUsed = 0u;
|
||||
exiFrag->Signature_isUsed = 0u;
|
||||
exiFrag->Y_isUsed = 0u;
|
||||
exiFrag->SignatureMethod_isUsed = 0u;
|
||||
exiFrag->PgenCounter_isUsed = 0u;
|
||||
}
|
||||
#endif /* DEPLOY_XMLDSIG_CODEC_FRAGMENT */
|
||||
|
||||
void init_xmldsigCanonicalizationMethodType(struct xmldsigCanonicalizationMethodType* xmldsigCanonicalizationMethodType) {
|
||||
xmldsigCanonicalizationMethodType->ANY_isUsed = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigManifestType(struct xmldsigManifestType* xmldsigManifestType) {
|
||||
xmldsigManifestType->Id_isUsed = 0u;
|
||||
xmldsigManifestType->Reference.arrayLen = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigObjectType(struct xmldsigObjectType* xmldsigObjectType) {
|
||||
xmldsigObjectType->Id_isUsed = 0u;
|
||||
xmldsigObjectType->MimeType_isUsed = 0u;
|
||||
xmldsigObjectType->Encoding_isUsed = 0u;
|
||||
xmldsigObjectType->ANY_isUsed = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigTransformType(struct xmldsigTransformType* xmldsigTransformType) {
|
||||
xmldsigTransformType->ANY_isUsed = 0u;
|
||||
xmldsigTransformType->XPath.arrayLen = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigSignatureMethodType(struct xmldsigSignatureMethodType* xmldsigSignatureMethodType) {
|
||||
xmldsigSignatureMethodType->HMACOutputLength_isUsed = 0u;
|
||||
xmldsigSignatureMethodType->ANY_isUsed = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigDigestMethodType(struct xmldsigDigestMethodType* xmldsigDigestMethodType) {
|
||||
xmldsigDigestMethodType->ANY_isUsed = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigRetrievalMethodType(struct xmldsigRetrievalMethodType* xmldsigRetrievalMethodType) {
|
||||
xmldsigRetrievalMethodType->URI_isUsed = 0u;
|
||||
xmldsigRetrievalMethodType->Type_isUsed = 0u;
|
||||
xmldsigRetrievalMethodType->Transforms_isUsed = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigSignatureValueType(struct xmldsigSignatureValueType* xmldsigSignatureValueType) {
|
||||
xmldsigSignatureValueType->Id_isUsed = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigX509IssuerSerialType(struct xmldsigX509IssuerSerialType* xmldsigX509IssuerSerialType) {
|
||||
(void)xmldsigX509IssuerSerialType; /* avoid unused warning */
|
||||
}
|
||||
|
||||
void init_xmldsigSignedInfoType(struct xmldsigSignedInfoType* xmldsigSignedInfoType) {
|
||||
xmldsigSignedInfoType->Id_isUsed = 0u;
|
||||
xmldsigSignedInfoType->Reference.arrayLen = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigSignaturePropertiesType(struct xmldsigSignaturePropertiesType* xmldsigSignaturePropertiesType) {
|
||||
xmldsigSignaturePropertiesType->Id_isUsed = 0u;
|
||||
xmldsigSignaturePropertiesType->SignatureProperty.arrayLen = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigSignaturePropertyType(struct xmldsigSignaturePropertyType* xmldsigSignaturePropertyType) {
|
||||
xmldsigSignaturePropertyType->Id_isUsed = 0u;
|
||||
xmldsigSignaturePropertyType->ANY_isUsed = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigKeyValueType(struct xmldsigKeyValueType* xmldsigKeyValueType) {
|
||||
xmldsigKeyValueType->DSAKeyValue_isUsed = 0u;
|
||||
xmldsigKeyValueType->RSAKeyValue_isUsed = 0u;
|
||||
xmldsigKeyValueType->ANY_isUsed = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigRSAKeyValueType(struct xmldsigRSAKeyValueType* xmldsigRSAKeyValueType) {
|
||||
(void)xmldsigRSAKeyValueType; /* avoid unused warning */
|
||||
}
|
||||
|
||||
void init_xmldsigPGPDataType(struct xmldsigPGPDataType* xmldsigPGPDataType) {
|
||||
xmldsigPGPDataType->PGPKeyID_isUsed = 0u;
|
||||
xmldsigPGPDataType->PGPKeyPacket_isUsed = 0u;
|
||||
xmldsigPGPDataType->ANY_isUsed = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigTransformsType(struct xmldsigTransformsType* xmldsigTransformsType) {
|
||||
xmldsigTransformsType->Transform.arrayLen = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigX509DataType(struct xmldsigX509DataType* xmldsigX509DataType) {
|
||||
xmldsigX509DataType->X509IssuerSerial.arrayLen = 0u;
|
||||
xmldsigX509DataType->X509SKI.arrayLen = 0u;
|
||||
xmldsigX509DataType->X509SubjectName.arrayLen = 0u;
|
||||
xmldsigX509DataType->X509Certificate.arrayLen = 0u;
|
||||
xmldsigX509DataType->X509CRL.arrayLen = 0u;
|
||||
xmldsigX509DataType->ANY_isUsed = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigSignatureType(struct xmldsigSignatureType* xmldsigSignatureType) {
|
||||
xmldsigSignatureType->Id_isUsed = 0u;
|
||||
xmldsigSignatureType->KeyInfo_isUsed = 0u;
|
||||
xmldsigSignatureType->Object.arrayLen = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigDSAKeyValueType(struct xmldsigDSAKeyValueType* xmldsigDSAKeyValueType) {
|
||||
|
@ -133,40 +223,6 @@ void init_xmldsigDSAKeyValueType(struct xmldsigDSAKeyValueType* xmldsigDSAKeyVal
|
|||
xmldsigDSAKeyValueType->PgenCounter_isUsed = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigRSAKeyValueType(struct xmldsigRSAKeyValueType* xmldsigRSAKeyValueType) {
|
||||
}
|
||||
|
||||
void init_xmldsigSignaturePropertiesType(struct xmldsigSignaturePropertiesType* xmldsigSignaturePropertiesType) {
|
||||
xmldsigSignaturePropertiesType->Id_isUsed = 0u;
|
||||
xmldsigSignaturePropertiesType->SignatureProperty.arrayLen = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigCanonicalizationMethodType(struct xmldsigCanonicalizationMethodType* xmldsigCanonicalizationMethodType) {
|
||||
}
|
||||
|
||||
void init_xmldsigObjectType(struct xmldsigObjectType* xmldsigObjectType) {
|
||||
xmldsigObjectType->Id_isUsed = 0u;
|
||||
xmldsigObjectType->MimeType_isUsed = 0u;
|
||||
xmldsigObjectType->Encoding_isUsed = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigTransformsType(struct xmldsigTransformsType* xmldsigTransformsType) {
|
||||
xmldsigTransformsType->Transform.arrayLen = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigTransformType(struct xmldsigTransformType* xmldsigTransformType) {
|
||||
xmldsigTransformType->XPath.arrayLen = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigDigestMethodType(struct xmldsigDigestMethodType* xmldsigDigestMethodType) {
|
||||
}
|
||||
|
||||
void init_xmldsigSignatureType(struct xmldsigSignatureType* xmldsigSignatureType) {
|
||||
xmldsigSignatureType->Id_isUsed = 0u;
|
||||
xmldsigSignatureType->KeyInfo_isUsed = 0u;
|
||||
xmldsigSignatureType->Object.arrayLen = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigReferenceType(struct xmldsigReferenceType* xmldsigReferenceType) {
|
||||
xmldsigReferenceType->Id_isUsed = 0u;
|
||||
xmldsigReferenceType->URI_isUsed = 0u;
|
||||
|
@ -176,33 +232,7 @@ void init_xmldsigReferenceType(struct xmldsigReferenceType* xmldsigReferenceType
|
|||
|
||||
void init_xmldsigSPKIDataType(struct xmldsigSPKIDataType* xmldsigSPKIDataType) {
|
||||
xmldsigSPKIDataType->SPKISexp.arrayLen = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigPGPDataType(struct xmldsigPGPDataType* xmldsigPGPDataType) {
|
||||
xmldsigPGPDataType->PGPKeyID_isUsed = 0u;
|
||||
xmldsigPGPDataType->PGPKeyPacket_isUsed = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigX509IssuerSerialType(struct xmldsigX509IssuerSerialType* xmldsigX509IssuerSerialType) {
|
||||
}
|
||||
|
||||
void init_xmldsigSignatureMethodType(struct xmldsigSignatureMethodType* xmldsigSignatureMethodType) {
|
||||
xmldsigSignatureMethodType->HMACOutputLength_isUsed = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigRetrievalMethodType(struct xmldsigRetrievalMethodType* xmldsigRetrievalMethodType) {
|
||||
xmldsigRetrievalMethodType->URI_isUsed = 0u;
|
||||
xmldsigRetrievalMethodType->Type_isUsed = 0u;
|
||||
xmldsigRetrievalMethodType->Transforms_isUsed = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigSignaturePropertyType(struct xmldsigSignaturePropertyType* xmldsigSignaturePropertyType) {
|
||||
xmldsigSignaturePropertyType->Id_isUsed = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigSignedInfoType(struct xmldsigSignedInfoType* xmldsigSignedInfoType) {
|
||||
xmldsigSignedInfoType->Id_isUsed = 0u;
|
||||
xmldsigSignedInfoType->Reference.arrayLen = 0u;
|
||||
xmldsigSPKIDataType->ANY_isUsed = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigKeyInfoType(struct xmldsigKeyInfoType* xmldsigKeyInfoType) {
|
||||
|
@ -214,23 +244,7 @@ void init_xmldsigKeyInfoType(struct xmldsigKeyInfoType* xmldsigKeyInfoType) {
|
|||
xmldsigKeyInfoType->PGPData.arrayLen = 0u;
|
||||
xmldsigKeyInfoType->SPKIData.arrayLen = 0u;
|
||||
xmldsigKeyInfoType->MgmtData.arrayLen = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigManifestType(struct xmldsigManifestType* xmldsigManifestType) {
|
||||
xmldsigManifestType->Id_isUsed = 0u;
|
||||
xmldsigManifestType->Reference.arrayLen = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigSignatureValueType(struct xmldsigSignatureValueType* xmldsigSignatureValueType) {
|
||||
xmldsigSignatureValueType->Id_isUsed = 0u;
|
||||
}
|
||||
|
||||
void init_xmldsigX509DataType(struct xmldsigX509DataType* xmldsigX509DataType) {
|
||||
xmldsigX509DataType->X509IssuerSerial.arrayLen = 0u;
|
||||
xmldsigX509DataType->X509SKI.arrayLen = 0u;
|
||||
xmldsigX509DataType->X509SubjectName.arrayLen = 0u;
|
||||
xmldsigX509DataType->X509Certificate.arrayLen = 0u;
|
||||
xmldsigX509DataType->X509CRL.arrayLen = 0u;
|
||||
xmldsigKeyInfoType->ANY_isUsed = 0u;
|
||||
}
|
||||
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2007-2015 Siemens AG
|
||||
* Copyright (C) 2007-2017 Siemens AG
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published
|
||||
|
@ -18,8 +18,8 @@
|
|||
/*******************************************************************
|
||||
*
|
||||
* @author Daniel.Peintner.EXT@siemens.com
|
||||
* @version 0.9.3
|
||||
* @contact Joerg.Heuer@siemens.com
|
||||
* @version 2017-09-04
|
||||
* @contact Richard.Kuntschke@siemens.com
|
||||
*
|
||||
* <p>Code generated by EXIdizer</p>
|
||||
* <p>Schema: xmldsig-core-schema.xsd</p>
|
||||
|
@ -50,10 +50,10 @@ extern "C" {
|
|||
#include "xmldsigEXIDatatypes.h"
|
||||
|
||||
int decode_xmldsigExiDocument(bitstream_t* stream, struct xmldsigEXIDocument* exiDoc);
|
||||
|
||||
|
||||
#if DEPLOY_XMLDSIG_CODEC_FRAGMENT == SUPPORT_YES
|
||||
int decode_xmldsigExiFragment(bitstream_t* stream, struct xmldsigEXIFragment* exiFrag);
|
||||
#endif /* DEPLOY_XMLDSIG_CODEC_FRAGMENT */
|
||||
#endif /* DEPLOY_XMLDSIG_CODEC_FRAGMENT */
|
||||
|
||||
#endif /* DEPLOY_XMLDSIG_CODEC */
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2007-2015 Siemens AG
|
||||
* Copyright (C) 2007-2017 Siemens AG
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Lesser General Public License as published
|
||||
|
@ -18,8 +18,8 @@
|
|||
/*******************************************************************
|
||||
*
|
||||
* @author Daniel.Peintner.EXT@siemens.com
|
||||
* @version 0.9.3
|
||||
* @contact Joerg.Heuer@siemens.com
|
||||
* @version 2017-09-04
|
||||
* @contact Richard.Kuntschke@siemens.com
|
||||
*
|
||||
* <p>Code generated by EXIdizer</p>
|
||||
* <p>Schema: xmldsig-core-schema.xsd</p>
|
||||
|
@ -51,10 +51,11 @@ extern "C" {
|
|||
|
||||
|
||||
int encode_xmldsigExiDocument(bitstream_t* stream, struct xmldsigEXIDocument* exiDoc);
|
||||
|
||||
|
||||
#if DEPLOY_XMLDSIG_CODEC_FRAGMENT == SUPPORT_YES
|
||||
int encode_xmldsigExiFragment(bitstream_t* stream, struct xmldsigEXIFragment* exiFrag);
|
||||
#endif /* DEPLOY_XMLDSIG_CODEC_FRAGMENT */
|
||||
#endif /* DEPLOY_XMLDSIG_CODEC_FRAGMENT */
|
||||
|
||||
|
||||
#endif /* DEPLOY_XMLDSIG_CODEC */
|
||||
|
||||
|
|
Loading…
Reference in a new issue