Subversion Repositories DevTools

Rev

Rev 2222 | Rev 2230 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2222 Rev 2228
Line 28... Line 28...
28
#pragma warn -com
28
#pragma warn -com
29
#include <LoggingMacros.h>
29
#include <LoggingMacros.h>
30
#pragma warn +com
30
#pragma warn +com
31
//## end module%41F607FA0261.includes
31
//## end module%41F607FA0261.includes
32
 
32
 
-
 
33
// IXmlSchemaWrapperSchema
-
 
34
#include "IXmlSchemaWrapperSchema.h"
-
 
35
// IXmlSchemaWrapperString
-
 
36
#include "IXmlSchemaWrapperString.h"
33
// Iteration
37
// Iteration
34
#include "Iteration.h"
38
#include "Iteration.h"
35
// TestScenario
39
// TestScenario
36
#include "TestScenario.h"
40
#include "TestScenario.h"
37
// TimeEstimate
41
// TimeEstimate
38
#include "TimeEstimate.h"
42
#include "TimeEstimate.h"
39
// ProgressBar
43
// ProgressBar
40
#include "ProgressBar.h"
44
#include "ProgressBar.h"
41
// IXmlSchemaWrapperSchema
-
 
42
#include "IXmlSchemaWrapperSchema.h"
-
 
43
// IXmlSchemaWrapperString
-
 
44
#include "IXmlSchemaWrapperString.h"
-
 
45
// IXmlSchemaWrapperByteArray
45
// IXmlSchemaWrapperByteArray
46
#include "IXmlSchemaWrapperByteArray.h"
46
#include "IXmlSchemaWrapperByteArray.h"
47
// IXmlSchemaWrapperElement
47
// IXmlSchemaWrapperElement
48
#include "IXmlSchemaWrapperElement.h"
48
#include "IXmlSchemaWrapperElement.h"
49
// IXmlSchemaWrapperFactory
49
// IXmlSchemaWrapperFactory
50
#include "IXmlSchemaWrapperFactory.h"
50
#include "IXmlSchemaWrapperFactory.h"
51
// IXmlSchemaWrapperStream
51
// IXmlSchemaWrapperStream
52
#include "IXmlSchemaWrapperStream.h"
52
#include "IXmlSchemaWrapperStream.h"
-
 
53
// TransactionSpecificationValue
-
 
54
#include "TransactionSpecificationValue.h"
-
 
55
// TransactionSpecification
-
 
56
#include "TransactionSpecification.h"
53
// MacQualification
57
// MacQualification
54
#include "MacQualification.h"
58
#include "MacQualification.h"
55
// EvaluationCallback
59
// EvaluationCallback
56
#include "EvaluationCallback.h"
60
#include "EvaluationCallback.h"
57
// EvaluationContext
61
// EvaluationContext
58
#include "EvaluationContext.h"
62
#include "EvaluationContext.h"
59
// TransactionStream
63
// TransactionStream
60
#include "TransactionStream.h"
64
#include "TransactionStream.h"
61
// TransactionStructure
65
// TransactionStructure
62
#include "TransactionStructure.h"
66
#include "TransactionStructure.h"
63
// TransactionSpecificationValue
-
 
64
#include "TransactionSpecificationValue.h"
-
 
65
// TransactionSpecification
67
// IHash
66
#include "TransactionSpecification.h"
68
#include "IHash.h"
67
// IMessageDigest
69
// IMessageDigest
68
#include "IMessageDigest.h"
70
#include "IMessageDigest.h"
69
//## begin module%41F607FA0261.additionalDeclarations preserve=yes
71
//## begin module%41F607FA0261.additionalDeclarations preserve=yes
70
#include <sstream>
72
#include <sstream>
71
#include "Utilities.h"
73
#include "Utilities.h"
72
 
74
 
73
#define COMPENSATE_FOR_PARSER_BUG 1
75
#define COMPENSATE_FOR_PARSER_BUG 0
74
#if COMPENSATE_FOR_PARSER_BUG
76
#if COMPENSATE_FOR_PARSER_BUG
75
static void rotateBuffer( unsigned char * buffer, const unsigned int & length )
77
static void rotateBuffer( unsigned char * buffer, const unsigned int & length )
76
{
78
{
77
	unsigned char b;
79
	unsigned char b;
78
 
80
 
Line 86... Line 88...
86
#endif
88
#endif
87
 
89
 
88
//## end module%41F607FA0261.additionalDeclarations
90
//## end module%41F607FA0261.additionalDeclarations
89
 
91
 
90
 
92
 
91
// Class TransactionSpecification
93
// Class TransactionSpecification 
92
 
94
 
93
//## begin TransactionSpecification::headerStructureName%4206D764033E.attr preserve=no  private: static char {RAC} "SysHdr_t"
95
//## begin TransactionSpecification::headerStructureName%4206D764033E.attr preserve=no  private: static char {RAC} "SysHdr_t"
94
const char *TransactionSpecification::g_headerStructureName = "SysHdr_t";
96
const char *TransactionSpecification::g_headerStructureName = "SysHdr_t";
95
//## end TransactionSpecification::headerStructureName%4206D764033E.attr
97
//## end TransactionSpecification::headerStructureName%4206D764033E.attr
96
 
98
 
97
//## Operation: TransactionSpecification%41F7060D0204
99
//## Operation: TransactionSpecification%41F7060D0204
98
TransactionSpecification::TransactionSpecification (const int &transactionSpecificationNumber)
100
TransactionSpecification::TransactionSpecification (const int &transactionSpecificationNumber)
99
  //## begin TransactionSpecification::TransactionSpecification%41F7060D0204.hasinit preserve=no
101
  //## begin TransactionSpecification::TransactionSpecification%41F7060D0204.hasinit preserve=no
100
	  : m_structureIndex(0),
102
      : m_structureIndex(0),
101
		m_transactionSpecificationNumber(0),
103
        m_transactionSpecificationNumber(0),
102
		m_udSubtype(0),
104
        m_udSubtype(0),
103
		m_udType(0),
105
        m_udType(0),
104
		m_formatVersion(0),
106
        m_formatVersion(0),
105
		m_scenario(0),
107
        m_scenario(0),
106
        m_string(0),
108
        m_string(0),
107
        m_structure(0),
109
        m_structure(0),
108
        m_macFields(0)
110
        m_macFields(0)
109
  //## end TransactionSpecification::TransactionSpecification%41F7060D0204.hasinit
111
  //## end TransactionSpecification::TransactionSpecification%41F7060D0204.hasinit
110
  //## begin TransactionSpecification::TransactionSpecification%41F7060D0204.initialization preserve=yes
112
  //## begin TransactionSpecification::TransactionSpecification%41F7060D0204.initialization preserve=yes
Line 394... Line 396...
394
						unsigned int	length = 0;
396
						unsigned int	length = 0;
395
 
397
 
396
						// When we get a zero-length MAC, we don't assign it.
398
						// When we get a zero-length MAC, we don't assign it.
397
						if ( stream->getData( buffer, length ) )
399
						if ( stream->getData( buffer, length ) )
398
						{
400
						{
-
 
401
							evaluationContext.getMessageDigest().reset();
-
 
402
 
-
 
403
							if ( evaluationContext.haveHash() )
-
 
404
							{
-
 
405
								IHash & hash = evaluationContext.getHash();
-
 
406
								generated = hash.updateByteArray(
-
 
407
									buffer,
-
 
408
									length );
-
 
409
								if ( generated )
-
 
410
								{
-
 
411
									generated = evaluationContext.
-
 
412
										getMessageDigest().updateByteArray(
-
 
413
											hash.getValue(),
-
 
414
											hash.getLength() );
-
 
415
								}
-
 
416
							}
-
 
417
							else
-
 
418
							{
399
							generated = evaluationContext.getMessageDigest().
419
								generated = evaluationContext.getMessageDigest().
400
								updateByteArray( buffer, length );
420
									updateByteArray( buffer, length );
-
 
421
							}
401
							if ( generated )
422
							if ( generated )
402
							{
423
							{
403
								if ( evaluationContext.getMessageDigest().digest() )
424
								if ( evaluationContext.getMessageDigest().digest() )
404
								{
425
								{
405
									if ( evaluationContext.getMessageDigest().getLength() )
426
									if ( evaluationContext.getMessageDigest().getLength() )