regenerated makefiles

This commit is contained in:
Lev Walkin 2017-09-26 22:55:22 -07:00
parent 8a85b36d93
commit ad775916a7
8 changed files with 287 additions and 8015 deletions

View File

@ -1,322 +1,30 @@
ASN_MODULE_SOURCES= \
Uint3.c \
Uint8.c \
Uint16.c \
Uint32.c \
Uint64.c \
SequenceOfUint8.c \
SequenceOfUint16.c \
Opaque.c \
HashedId32.c \
HashedId10.c \
HashedId8.c \
HashedId4.c \
HashedId3.c \
Time32.c \
Time64.c \
ValidityPeriod.c \
Duration.c \
GeographicRegion.c \
CircularRegion.c \
RectangularRegion.c \
SequenceOfRectangularRegion.c \
PolygonalRegion.c \
TwoDLocation.c \
IdentifiedRegion.c \
SequenceOfIdentifiedRegion.c \
CountryOnly.c \
CountryAndRegions.c \
CountryAndSubregions.c \
RegionAndSubregions.c \
SequenceOfRegionAndSubregions.c \
ThreeDLocation.c \
Latitude.c \
Longitude.c \
Elevation.c \
NinetyDegreeInt.c \
KnownLatitude.c \
UnknownLatitude.c \
OneEightyDegreeInt.c \
KnownLongitude.c \
UnknownLongitude.c \
ElevInt.c \
Signature.c \
EcdsaP256Signature.c \
EccP256CurvePoint.c \
SymmAlgorithm.c \
HashAlgorithm.c \
EciesP256EncryptedKey.c \
EncryptionKey.c \
PublicEncryptionKey.c \
BasePublicEncryptionKey.c \
PublicVerificationKey.c \
SymmetricEncryptionKey.c \
PsidSsp.c \
SequenceOfPsidSsp.c \
Psid.c \
SequenceOfPsid.c \
ServiceSpecificPermissions.c \
PsidSspRange.c \
SequenceOfPsidSspRange.c \
SspRange.c \
SequenceOfOctetString.c \
SubjectAssurance.c \
CrlSeries.c \
IValue.c \
Hostname.c \
LinkageValue.c \
GroupLinkageValue.c \
LaId.c \
LinkageSeed.c \
SignedDataPayload.c \
Ieee1609Dot2Data.c \
Ieee1609Dot2Content.c \
SignedData.c \
SignerIdentifier.c \
ToBeSignedData.c \
HashedData.c \
HeaderInfo.c \
MissingCrlIdentifier.c \
Countersignature.c \
EncryptedData.c \
RecipientInfo.c \
SequenceOfRecipientInfo.c \
PreSharedKeyRecipientInfo.c \
SymmRecipientInfo.c \
PKRecipientInfo.c \
EncryptedDataEncryptionKey.c \
SymmetricCiphertext.c \
AesCcmCiphertext.c \
Certificate.c \
SequenceOfCertificate.c \
CertificateBase.c \
CertificateType.c \
ImplicitCertificate.c \
ExplicitCertificate.c \
IssuerIdentifier.c \
ToBeSignedCertificate.c \
CertificateId.c \
LinkageData.c \
EndEntityType.c \
PsidGroupPermissions.c \
SequenceOfPsidGroupPermissions.c \
SubjectPermissions.c \
VerificationKeyIndicator.c
-include Makefile.am.libasncodec
ASN_MODULE_HEADERS= \
Uint3.h \
Uint8.h \
Uint16.h \
Uint32.h \
Uint64.h \
SequenceOfUint8.h \
SequenceOfUint16.h \
Opaque.h \
HashedId32.h \
HashedId10.h \
HashedId8.h \
HashedId4.h \
HashedId3.h \
Time32.h \
Time64.h \
ValidityPeriod.h \
Duration.h \
GeographicRegion.h \
CircularRegion.h \
RectangularRegion.h \
SequenceOfRectangularRegion.h \
PolygonalRegion.h \
TwoDLocation.h \
IdentifiedRegion.h \
SequenceOfIdentifiedRegion.h \
CountryOnly.h \
CountryAndRegions.h \
CountryAndSubregions.h \
RegionAndSubregions.h \
SequenceOfRegionAndSubregions.h \
ThreeDLocation.h \
Latitude.h \
Longitude.h \
Elevation.h \
NinetyDegreeInt.h \
KnownLatitude.h \
UnknownLatitude.h \
OneEightyDegreeInt.h \
KnownLongitude.h \
UnknownLongitude.h \
ElevInt.h \
Signature.h \
EcdsaP256Signature.h \
EccP256CurvePoint.h \
SymmAlgorithm.h \
HashAlgorithm.h \
EciesP256EncryptedKey.h \
EncryptionKey.h \
PublicEncryptionKey.h \
BasePublicEncryptionKey.h \
PublicVerificationKey.h \
SymmetricEncryptionKey.h \
PsidSsp.h \
SequenceOfPsidSsp.h \
Psid.h \
SequenceOfPsid.h \
ServiceSpecificPermissions.h \
PsidSspRange.h \
SequenceOfPsidSspRange.h \
SspRange.h \
SequenceOfOctetString.h \
SubjectAssurance.h \
CrlSeries.h \
IValue.h \
Hostname.h \
LinkageValue.h \
GroupLinkageValue.h \
LaId.h \
LinkageSeed.h \
SignedDataPayload.h \
Ieee1609Dot2Data.h \
Ieee1609Dot2Content.h \
SignedData.h \
SignerIdentifier.h \
ToBeSignedData.h \
HashedData.h \
HeaderInfo.h \
MissingCrlIdentifier.h \
Countersignature.h \
EncryptedData.h \
RecipientInfo.h \
SequenceOfRecipientInfo.h \
PreSharedKeyRecipientInfo.h \
SymmRecipientInfo.h \
PKRecipientInfo.h \
EncryptedDataEncryptionKey.h \
SymmetricCiphertext.h \
AesCcmCiphertext.h \
Certificate.h \
SequenceOfCertificate.h \
CertificateBase.h \
CertificateType.h \
ImplicitCertificate.h \
ExplicitCertificate.h \
IssuerIdentifier.h \
ToBeSignedCertificate.h \
CertificateId.h \
LinkageData.h \
EndEntityType.h \
PsidGroupPermissions.h \
SequenceOfPsidGroupPermissions.h \
SubjectPermissions.h \
VerificationKeyIndicator.h
ASN_MODULE_HEADERS+=OPEN_TYPE.h
ASN_MODULE_SOURCES+=OPEN_TYPE.c
ASN_MODULE_HEADERS+=constr_CHOICE.h
ASN_MODULE_HEADERS+=UTF8String.h
ASN_MODULE_HEADERS+=BOOLEAN.h
ASN_MODULE_SOURCES+=BOOLEAN.c
ASN_MODULE_HEADERS+=INTEGER.h
ASN_MODULE_HEADERS+=NativeEnumerated.h
ASN_MODULE_SOURCES+=INTEGER.c
ASN_MODULE_HEADERS+=NULL.h
ASN_MODULE_SOURCES+=NULL.c
ASN_MODULE_SOURCES+=NativeEnumerated.c
ASN_MODULE_HEADERS+=NativeInteger.h
ASN_MODULE_SOURCES+=NativeInteger.c
ASN_MODULE_SOURCES+=UTF8String.c
ASN_MODULE_HEADERS+=asn_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=asn_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=asn_SET_OF.h
ASN_MODULE_SOURCES+=asn_SET_OF.c
ASN_MODULE_SOURCES+=constr_CHOICE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE.h
ASN_MODULE_SOURCES+=constr_SEQUENCE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=constr_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=constr_SET_OF.h
ASN_MODULE_SOURCES+=constr_SET_OF.c
ASN_MODULE_HEADERS+=asn_application.h
ASN_MODULE_SOURCES+=asn_application.c
ASN_MODULE_HEADERS+=asn_ioc.h
ASN_MODULE_HEADERS+=asn_system.h
ASN_MODULE_HEADERS+=asn_codecs.h
ASN_MODULE_HEADERS+=asn_internal.h
ASN_MODULE_HEADERS+=asn_bit_data.h
ASN_MODULE_SOURCES+=asn_bit_data.c
ASN_MODULE_HEADERS+=OCTET_STRING.h
ASN_MODULE_SOURCES+=OCTET_STRING.c
ASN_MODULE_HEADERS+=BIT_STRING.h
ASN_MODULE_SOURCES+=BIT_STRING.c
ASN_MODULE_SOURCES+=asn_codecs_prim.c
ASN_MODULE_HEADERS+=asn_codecs_prim.h
ASN_MODULE_HEADERS+=ber_tlv_length.h
ASN_MODULE_SOURCES+=ber_tlv_length.c
ASN_MODULE_HEADERS+=ber_tlv_tag.h
ASN_MODULE_SOURCES+=ber_tlv_tag.c
ASN_MODULE_HEADERS+=ber_decoder.h
ASN_MODULE_SOURCES+=ber_decoder.c
ASN_MODULE_HEADERS+=der_encoder.h
ASN_MODULE_SOURCES+=der_encoder.c
ASN_MODULE_HEADERS+=constr_TYPE.h
ASN_MODULE_SOURCES+=constr_TYPE.c
ASN_MODULE_HEADERS+=constraints.h
ASN_MODULE_SOURCES+=constraints.c
ASN_MODULE_HEADERS+=xer_support.h
ASN_MODULE_SOURCES+=xer_support.c
ASN_MODULE_HEADERS+=xer_decoder.h
ASN_MODULE_SOURCES+=xer_decoder.c
ASN_MODULE_HEADERS+=xer_encoder.h
ASN_MODULE_SOURCES+=xer_encoder.c
ASN_MODULE_HEADERS+=per_support.h
ASN_MODULE_SOURCES+=per_support.c
ASN_MODULE_HEADERS+=per_decoder.h
ASN_MODULE_SOURCES+=per_decoder.c
ASN_MODULE_HEADERS+=per_encoder.h
ASN_MODULE_SOURCES+=per_encoder.c
ASN_MODULE_HEADERS+=per_opentype.h
ASN_MODULE_SOURCES+=per_opentype.c
ASN_CONVERTER_SOURCES+=converter-sample.c
ASN_MODULE_HEADERS+=oer_decoder.h
ASN_MODULE_SOURCES+=oer_decoder.c
ASN_MODULE_HEADERS+=oer_encoder.h
ASN_MODULE_SOURCES+=oer_encoder.c
ASN_MODULE_HEADERS+=oer_support.h
ASN_MODULE_SOURCES+=oer_support.c
ASN_MODULE_SOURCES+=OPEN_TYPE_oer.c
ASN_MODULE_SOURCES+=INTEGER_oer.c
ASN_MODULE_SOURCES+=OCTET_STRING_oer.c
ASN_MODULE_SOURCES+=NativeInteger_oer.c
ASN_MODULE_SOURCES+=NativeEnumerated_oer.c
ASN_MODULE_SOURCES+=constr_SEQUENCE_oer.c
ASN_MODULE_SOURCES+=constr_CHOICE_oer.c
ASN_MODULE_SOURCES+=constr_SET_OF_oer.c
ASN_MODULE_SOURCES+=BIT_STRING_oer.c
ASN_CONVERTER_SOURCES+=pdu_collection.c
lib_LTLIBRARIES=libsomething.la
libsomething_la_SOURCES=$(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
# This file may be used as an input for make(3)
# Remove the lines below to convert it into a pure .am file
TARGET = 1609-2-dump
ASN_LIBRARY=libasncodec.a
LIBS += -lm
CPPFLAGS += -DASN_CONVERTER_TITLE="IEEE 1609.2-2016 decoder" -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE -DASN_DISABLE_PER_SUPPORT -DPDU=Certificate -DASN_PDU_COLLECTION -I.
OBJS=${ASN_MODULE_SOURCES:.c=.o} ${ASN_CONVERTER_SOURCES:.c=.o}
CFLAGS += -DASN_CONVERTER_TITLE="IEEE 1609.2-2016 decoder" -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE $(ASN_MODULE_CFLAGS) -DPDU=Certificate -DASN_PDU_COLLECTION -I.
ASN_CONVERTER_SOURCES := \
converter-example.c\
pdu_collection.c
all: maybe-wip-pause Certificate.c $(TARGET)
$(TARGET): ${OBJS}
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) ${OBJS} $(LDFLAGS) $(LIBS)
$(TARGET): $(ASN_LIBRARY) $(ASN_CONVERTER_SOURCES:.c=.o)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) $(ASN_CONVERTER_SOURCES:.c=.o) $(LDFLAGS) $(ASN_LIBRARY) $(LIBS)
$(ASN_LIBRARY): $(ASN_MODULE_SOURCES:.c=.o)
$(AR) rcs $@ $^
.SUFFIXES:
.SUFFIXES: .c .o
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
$(CC) $(CFLAGS) -o $@ -c $<
clean:
rm -f $(TARGET)
rm -f $(OBJS)
rm -f $(TARGET) $(ASN_LIBRARY)
rm -f $(ASN_MODULE_SOURCES:.c=.o) $(ASN_CONVERTER_SOURCES:.c=.o)
regen: regenerate-from-asn1-source
@ -335,7 +43,6 @@ regen-makefile:
ASN1MODULES="../IEEE-1609.2-2016.asn1" \
ASN1PDU=Certificate \
PROGNAME=1609-2-dump \
CPPFLAGS="" \
../sample.makefile.regen
check: ${TARGET} check-ber check-xer check-oer check-per
@ -425,4 +132,4 @@ distclean: clean
rm -f $(ASN_MODULE_SOURCES)
rm -f $(ASN_MODULE_HEADERS)
rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS)
rm -f Makefile.am.sample
rm -f Makefile.am.example

File diff suppressed because it is too large Load Diff

View File

@ -1,192 +1,29 @@
ASN_MODULE_SOURCES= \
LDAPMessage.c \
MessageID.c \
LDAPString.c \
LDAPOID.c \
LDAPDN.c \
RelativeLDAPDN.c \
AttributeDescription.c \
AttributeValue.c \
AttributeValueAssertion.c \
AssertionValue.c \
PartialAttribute.c \
Attribute.c \
MatchingRuleId.c \
LDAPResult.c \
Referral.c \
URI.c \
Controls.c \
Control.c \
BindRequest.c \
AuthenticationChoice.c \
SaslCredentials.c \
BindResponse.c \
UnbindRequest.c \
SearchRequest.c \
AttributeSelection.c \
Filter.c \
SubstringFilter.c \
MatchingRuleAssertion.c \
SearchResultEntry.c \
PartialAttributeList.c \
SearchResultReference.c \
SearchResultDone.c \
ModifyRequest.c \
ModifyResponse.c \
AddRequest.c \
AttributeList.c \
AddResponse.c \
DelRequest.c \
DelResponse.c \
ModifyDNRequest.c \
ModifyDNResponse.c \
CompareRequest.c \
CompareResponse.c \
AbandonRequest.c \
ExtendedRequest.c \
ExtendedResponse.c \
IntermediateResponse.c
-include Makefile.am.libasncodec
ASN_MODULE_HEADERS= \
LDAPMessage.h \
MessageID.h \
LDAPString.h \
LDAPOID.h \
LDAPDN.h \
RelativeLDAPDN.h \
AttributeDescription.h \
AttributeValue.h \
AttributeValueAssertion.h \
AssertionValue.h \
PartialAttribute.h \
Attribute.h \
MatchingRuleId.h \
LDAPResult.h \
Referral.h \
URI.h \
Controls.h \
Control.h \
BindRequest.h \
AuthenticationChoice.h \
SaslCredentials.h \
BindResponse.h \
UnbindRequest.h \
SearchRequest.h \
AttributeSelection.h \
Filter.h \
SubstringFilter.h \
MatchingRuleAssertion.h \
SearchResultEntry.h \
PartialAttributeList.h \
SearchResultReference.h \
SearchResultDone.h \
ModifyRequest.h \
ModifyResponse.h \
AddRequest.h \
AttributeList.h \
AddResponse.h \
DelRequest.h \
DelResponse.h \
ModifyDNRequest.h \
ModifyDNResponse.h \
CompareRequest.h \
CompareResponse.h \
AbandonRequest.h \
ExtendedRequest.h \
ExtendedResponse.h \
IntermediateResponse.h
ASN_MODULE_HEADERS+=OPEN_TYPE.h
ASN_MODULE_SOURCES+=OPEN_TYPE.c
ASN_MODULE_HEADERS+=constr_CHOICE.h
ASN_MODULE_HEADERS+=BOOLEAN.h
ASN_MODULE_SOURCES+=BOOLEAN.c
ASN_MODULE_HEADERS+=INTEGER.h
ASN_MODULE_HEADERS+=NativeEnumerated.h
ASN_MODULE_SOURCES+=INTEGER.c
ASN_MODULE_HEADERS+=NULL.h
ASN_MODULE_SOURCES+=NULL.c
ASN_MODULE_SOURCES+=NativeEnumerated.c
ASN_MODULE_HEADERS+=NativeInteger.h
ASN_MODULE_SOURCES+=NativeInteger.c
ASN_MODULE_HEADERS+=asn_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=asn_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=asn_SET_OF.h
ASN_MODULE_SOURCES+=asn_SET_OF.c
ASN_MODULE_SOURCES+=constr_CHOICE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE.h
ASN_MODULE_SOURCES+=constr_SEQUENCE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=constr_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=constr_SET_OF.h
ASN_MODULE_SOURCES+=constr_SET_OF.c
ASN_MODULE_HEADERS+=asn_application.h
ASN_MODULE_SOURCES+=asn_application.c
ASN_MODULE_HEADERS+=asn_ioc.h
ASN_MODULE_HEADERS+=asn_system.h
ASN_MODULE_HEADERS+=asn_codecs.h
ASN_MODULE_HEADERS+=asn_internal.h
ASN_MODULE_HEADERS+=asn_bit_data.h
ASN_MODULE_SOURCES+=asn_bit_data.c
ASN_MODULE_HEADERS+=OCTET_STRING.h
ASN_MODULE_SOURCES+=OCTET_STRING.c
ASN_MODULE_HEADERS+=BIT_STRING.h
ASN_MODULE_SOURCES+=BIT_STRING.c
ASN_MODULE_SOURCES+=asn_codecs_prim.c
ASN_MODULE_HEADERS+=asn_codecs_prim.h
ASN_MODULE_HEADERS+=ber_tlv_length.h
ASN_MODULE_SOURCES+=ber_tlv_length.c
ASN_MODULE_HEADERS+=ber_tlv_tag.h
ASN_MODULE_SOURCES+=ber_tlv_tag.c
ASN_MODULE_HEADERS+=ber_decoder.h
ASN_MODULE_SOURCES+=ber_decoder.c
ASN_MODULE_HEADERS+=der_encoder.h
ASN_MODULE_SOURCES+=der_encoder.c
ASN_MODULE_HEADERS+=constr_TYPE.h
ASN_MODULE_SOURCES+=constr_TYPE.c
ASN_MODULE_HEADERS+=constraints.h
ASN_MODULE_SOURCES+=constraints.c
ASN_MODULE_HEADERS+=xer_support.h
ASN_MODULE_SOURCES+=xer_support.c
ASN_MODULE_HEADERS+=xer_decoder.h
ASN_MODULE_SOURCES+=xer_decoder.c
ASN_MODULE_HEADERS+=xer_encoder.h
ASN_MODULE_SOURCES+=xer_encoder.c
ASN_MODULE_HEADERS+=per_support.h
ASN_MODULE_SOURCES+=per_support.c
ASN_MODULE_HEADERS+=per_decoder.h
ASN_MODULE_SOURCES+=per_decoder.c
ASN_MODULE_HEADERS+=per_encoder.h
ASN_MODULE_SOURCES+=per_encoder.c
ASN_MODULE_HEADERS+=per_opentype.h
ASN_MODULE_SOURCES+=per_opentype.c
ASN_CONVERTER_SOURCES+=converter-sample.c
lib_LTLIBRARIES=libsomething.la
libsomething_la_SOURCES=$(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
# This file may be used as an input for make(3)
# Remove the lines below to convert it into a pure .am file
TARGET = ldap3dump
ASN_LIBRARY=libasncodec.a
LIBS += -lm
CPPFLAGS += -DASN_CONVERTER_TITLE="Lightweight Directory Access Protocol V3 decoder" -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE -DASN_DISABLE_OER_SUPPORT -DASN_DISABLE_PER_SUPPORT -DPDU=LDAPMessage -I.
OBJS=${ASN_MODULE_SOURCES:.c=.o} ${ASN_CONVERTER_SOURCES:.c=.o}
CFLAGS += -DASN_CONVERTER_TITLE="Lightweight Directory Access Protocol V3 decoder" -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE $(ASN_MODULE_CFLAGS) -DPDU=LDAPMessage -I.
ASN_CONVERTER_SOURCES := \
converter-example.c
all: maybe-wip-pause LDAPMessage.c $(TARGET)
$(TARGET): ${OBJS}
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) ${OBJS} $(LDFLAGS) $(LIBS)
$(TARGET): $(ASN_LIBRARY) $(ASN_CONVERTER_SOURCES:.c=.o)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) $(ASN_CONVERTER_SOURCES:.c=.o) $(LDFLAGS) $(ASN_LIBRARY) $(LIBS)
$(ASN_LIBRARY): $(ASN_MODULE_SOURCES:.c=.o)
$(AR) rcs $@ $^
.SUFFIXES:
.SUFFIXES: .c .o
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
$(CC) $(CFLAGS) -o $@ -c $<
clean:
rm -f $(TARGET)
rm -f $(OBJS)
rm -f $(TARGET) $(ASN_LIBRARY)
rm -f $(ASN_MODULE_SOURCES:.c=.o) $(ASN_CONVERTER_SOURCES:.c=.o)
regen: regenerate-from-asn1-source
@ -205,7 +42,6 @@ regen-makefile:
ASN1MODULES="../rfc4511-Lightweight-Directory-Access-Protocol-V3.asn1" \
ASN1PDU=LDAPMessage \
PROGNAME=ldap3dump \
CPPFLAGS="" \
../sample.makefile.regen
check: ${TARGET} check-ber check-xer check-oer check-per
@ -295,4 +131,4 @@ distclean: clean
rm -f $(ASN_MODULE_SOURCES)
rm -f $(ASN_MODULE_HEADERS)
rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS)
rm -f Makefile.am.sample
rm -f Makefile.am.example

View File

@ -1,313 +1,29 @@
ASN_MODULE_SOURCES= \
MegacoMessage.c \
AuthenticationHeader.c \
SecurityParmIndex.c \
SequenceNum.c \
AuthData.c \
Message.c \
MId.c \
DomainName.c \
IP4Address.c \
IP6Address.c \
PathName.c \
Transaction.c \
TransactionId.c \
TransactionRequest.c \
TransactionPending.c \
TransactionReply.c \
TransactionResponseAck.c \
TransactionAck.c \
ErrorDescriptor.c \
ErrorCode.c \
ErrorText.c \
ContextID.c \
ActionRequest.c \
ActionReply.c \
ContextRequest.c \
ContextAttrAuditRequest.c \
CommandRequest.c \
Command.c \
CommandReply.c \
TopologyRequest.c \
AmmRequest.c \
AmmDescriptor.c \
AmmsReply.c \
SubtractRequest.c \
AuditRequest.c \
AuditReply.c \
AuditResult.c \
TerminationAudit.c \
AuditReturnParameter.c \
AuditDescriptor.c \
NotifyRequest.c \
NotifyReply.c \
ObservedEventsDescriptor.c \
ObservedEvent.c \
EventName.c \
EventParameter.c \
ServiceChangeRequest.c \
ServiceChangeReply.c \
ServiceChangeResult.c \
WildcardField.c \
TerminationID.c \
TerminationIDList.c \
MediaDescriptor.c \
StreamDescriptor.c \
StreamParms.c \
LocalControlDescriptor.c \
StreamMode.c \
PropertyParm.c \
Name.c \
PkgdName.c \
Relation.c \
LocalRemoteDescriptor.c \
PropertyGroup.c \
TerminationStateDescriptor.c \
EventBufferControl.c \
ServiceState.c \
MuxDescriptor.c \
MuxType.c \
StreamID.c \
EventsDescriptor.c \
RequestedEvent.c \
RequestedActions.c \
EventDM.c \
SecondEventsDescriptor.c \
SecondRequestedEvent.c \
SecondRequestedActions.c \
EventBufferDescriptor.c \
EventSpec.c \
SignalsDescriptor.c \
SignalRequest.c \
SeqSigList.c \
Signal.c \
SignalType.c \
SignalName.c \
NotifyCompletion.c \
SigParameter.c \
RequestID.c \
ModemDescriptor.c \
ModemType.c \
DigitMapDescriptor.c \
DigitMapName.c \
DigitMapValue.c \
ServiceChangeParm.c \
ServiceChangeAddress.c \
ServiceChangeResParm.c \
ServiceChangeMethod.c \
ServiceChangeProfile.c \
PackagesDescriptor.c \
PackagesItem.c \
StatisticsDescriptor.c \
StatisticsParameter.c \
NonStandardData.c \
NonStandardIdentifier.c \
H221NonStandard.c \
TimeNotation.c \
Value.c
-include Makefile.am.libasncodec
ASN_MODULE_HEADERS= \
MegacoMessage.h \
AuthenticationHeader.h \
SecurityParmIndex.h \
SequenceNum.h \
AuthData.h \
Message.h \
MId.h \
DomainName.h \
IP4Address.h \
IP6Address.h \
PathName.h \
Transaction.h \
TransactionId.h \
TransactionRequest.h \
TransactionPending.h \
TransactionReply.h \
TransactionResponseAck.h \
TransactionAck.h \
ErrorDescriptor.h \
ErrorCode.h \
ErrorText.h \
ContextID.h \
ActionRequest.h \
ActionReply.h \
ContextRequest.h \
ContextAttrAuditRequest.h \
CommandRequest.h \
Command.h \
CommandReply.h \
TopologyRequest.h \
AmmRequest.h \
AmmDescriptor.h \
AmmsReply.h \
SubtractRequest.h \
AuditRequest.h \
AuditReply.h \
AuditResult.h \
TerminationAudit.h \
AuditReturnParameter.h \
AuditDescriptor.h \
NotifyRequest.h \
NotifyReply.h \
ObservedEventsDescriptor.h \
ObservedEvent.h \
EventName.h \
EventParameter.h \
ServiceChangeRequest.h \
ServiceChangeReply.h \
ServiceChangeResult.h \
WildcardField.h \
TerminationID.h \
TerminationIDList.h \
MediaDescriptor.h \
StreamDescriptor.h \
StreamParms.h \
LocalControlDescriptor.h \
StreamMode.h \
PropertyParm.h \
Name.h \
PkgdName.h \
Relation.h \
LocalRemoteDescriptor.h \
PropertyGroup.h \
TerminationStateDescriptor.h \
EventBufferControl.h \
ServiceState.h \
MuxDescriptor.h \
MuxType.h \
StreamID.h \
EventsDescriptor.h \
RequestedEvent.h \
RequestedActions.h \
EventDM.h \
SecondEventsDescriptor.h \
SecondRequestedEvent.h \
SecondRequestedActions.h \
EventBufferDescriptor.h \
EventSpec.h \
SignalsDescriptor.h \
SignalRequest.h \
SeqSigList.h \
Signal.h \
SignalType.h \
SignalName.h \
NotifyCompletion.h \
SigParameter.h \
RequestID.h \
ModemDescriptor.h \
ModemType.h \
DigitMapDescriptor.h \
DigitMapName.h \
DigitMapValue.h \
ServiceChangeParm.h \
ServiceChangeAddress.h \
ServiceChangeResParm.h \
ServiceChangeMethod.h \
ServiceChangeProfile.h \
PackagesDescriptor.h \
PackagesItem.h \
StatisticsDescriptor.h \
StatisticsParameter.h \
NonStandardData.h \
NonStandardIdentifier.h \
H221NonStandard.h \
TimeNotation.h \
Value.h
ASN_MODULE_HEADERS+=BOOLEAN.h
ASN_MODULE_SOURCES+=BOOLEAN.c
ASN_MODULE_HEADERS+=INTEGER.h
ASN_MODULE_HEADERS+=NativeEnumerated.h
ASN_MODULE_HEADERS+=IA5String.h
ASN_MODULE_SOURCES+=IA5String.c
ASN_MODULE_SOURCES+=INTEGER.c
ASN_MODULE_HEADERS+=NULL.h
ASN_MODULE_SOURCES+=NULL.c
ASN_MODULE_SOURCES+=NativeEnumerated.c
ASN_MODULE_HEADERS+=NativeInteger.h
ASN_MODULE_SOURCES+=NativeInteger.c
ASN_MODULE_HEADERS+=OBJECT_IDENTIFIER.h
ASN_MODULE_SOURCES+=OBJECT_IDENTIFIER.c
ASN_MODULE_HEADERS+=asn_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=asn_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=asn_SET_OF.h
ASN_MODULE_SOURCES+=asn_SET_OF.c
ASN_MODULE_HEADERS+=constr_CHOICE.h
ASN_MODULE_SOURCES+=constr_CHOICE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE.h
ASN_MODULE_SOURCES+=constr_SEQUENCE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=constr_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=constr_SET_OF.h
ASN_MODULE_SOURCES+=constr_SET_OF.c
ASN_MODULE_HEADERS+=asn_application.h
ASN_MODULE_HEADERS+=asn_system.h
ASN_MODULE_HEADERS+=asn_codecs.h
ASN_MODULE_HEADERS+=asn_internal.h
ASN_MODULE_HEADERS+=OCTET_STRING.h
ASN_MODULE_SOURCES+=OCTET_STRING.c
ASN_MODULE_HEADERS+=BIT_STRING.h
ASN_MODULE_SOURCES+=BIT_STRING.c
ASN_MODULE_SOURCES+=asn_codecs_prim.c
ASN_MODULE_HEADERS+=asn_codecs_prim.h
ASN_MODULE_HEADERS+=ber_tlv_length.h
ASN_MODULE_SOURCES+=ber_tlv_length.c
ASN_MODULE_HEADERS+=ber_tlv_tag.h
ASN_MODULE_SOURCES+=ber_tlv_tag.c
ASN_MODULE_HEADERS+=ber_decoder.h
ASN_MODULE_SOURCES+=ber_decoder.c
ASN_MODULE_HEADERS+=der_encoder.h
ASN_MODULE_SOURCES+=der_encoder.c
ASN_MODULE_HEADERS+=constr_TYPE.h
ASN_MODULE_SOURCES+=constr_TYPE.c
ASN_MODULE_HEADERS+=constraints.h
ASN_MODULE_SOURCES+=constraints.c
ASN_MODULE_HEADERS+=xer_support.h
ASN_MODULE_SOURCES+=xer_support.c
ASN_MODULE_HEADERS+=xer_decoder.h
ASN_MODULE_SOURCES+=xer_decoder.c
ASN_MODULE_HEADERS+=xer_encoder.h
ASN_MODULE_SOURCES+=xer_encoder.c
ASN_MODULE_HEADERS+=oer_decoder.h
ASN_MODULE_SOURCES+=oer_decoder.c
ASN_MODULE_HEADERS+=oer_encoder.h
ASN_MODULE_SOURCES+=oer_encoder.c
ASN_MODULE_HEADERS+=oer_support.h
ASN_MODULE_SOURCES+=oer_support.c
ASN_MODULE_HEADERS+=per_support.h
ASN_MODULE_SOURCES+=per_support.c
ASN_MODULE_HEADERS+=per_decoder.h
ASN_MODULE_SOURCES+=per_decoder.c
ASN_MODULE_HEADERS+=per_encoder.h
ASN_MODULE_SOURCES+=per_encoder.c
ASN_MODULE_HEADERS+=per_opentype.h
ASN_MODULE_SOURCES+=per_opentype.c
ASN_CONVERTER_SOURCES+=converter-sample.c
lib_LTLIBRARIES=libsomething.la
libsomething_la_SOURCES=$(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
# This file may be used as an input for make(3)
# Remove the lines below to convert it into a pure .am file
TARGET = megaco-dump
CPPFLAGS += -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE -DASN_DISABLE_OER_SUPPORT -DASN_DISABLE_PER_SUPPORT -DPDU=MegacoMessage -I.
OBJS=${ASN_MODULE_SOURCES:.c=.o} ${ASN_CONVERTER_SOURCES:.c=.o}
ASN_LIBRARY=libasncodec.a
LIBS += -lm
CFLAGS += -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE $(ASN_MODULE_CFLAGS) -DPDU=MegacoMessage -I.
ASN_CONVERTER_SOURCES := \
converter-example.c
all: MegacoMessage.c $(TARGET)
all: maybe-wip-pause MegacoMessage.c $(TARGET)
$(TARGET): ${OBJS}
$(CC) $(CPPFLAGS) -o $(TARGET) ${OBJS} $(LDFLAGS) $(LIBS)
$(TARGET): $(ASN_LIBRARY) $(ASN_CONVERTER_SOURCES:.c=.o)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) $(ASN_CONVERTER_SOURCES:.c=.o) $(LDFLAGS) $(ASN_LIBRARY) $(LIBS)
$(ASN_LIBRARY): $(ASN_MODULE_SOURCES:.c=.o)
$(AR) rcs $@ $^
.SUFFIXES:
.SUFFIXES: .c .o
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
$(CC) $(CFLAGS) -o $@ -c $<
clean:
rm -f $(TARGET)
rm -f $(OBJS)
rm -f $(TARGET) $(ASN_LIBRARY)
rm -f $(ASN_MODULE_SOURCES:.c=.o) $(ASN_CONVERTER_SOURCES:.c=.o)
regen: regenerate-from-asn1-source
@ -325,73 +41,93 @@ regen-makefile:
ASN1MODULES="../rfc3525-MEDIA-GATEWAY-CONTROL.asn1" \
ASN1PDU=MegacoMessage \
PROGNAME=megaco-dump \
CPPFLAGS="" \
../sample.makefile.regen
check: ${TARGET} check-ber check-xer check-per
check: ${TARGET} check-ber check-xer check-oer check-per
@echo ================
@echo All tests passed
@echo ================
check-ber:
@if test -f sample-MegacoMessage-1.[db]er ; then \
for f in sample-MegacoMessage-*.[db]er; do \
for f in sample-*-*.[db]er; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding $$f into XER and back ($$b)..."; \
./${TARGET} -b $$b -iber -oxer $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -b $$b -ixer -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
echo "Recoding $$f ($$pdu) into XER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -iber -oxer $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -p $$pdu -b $$b -ixer -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
diff ./.tmp.1.$$$$ ./.tmp.2.$$$$ || exit 4; \
rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -iber -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -b $$b -iber -onull $$f || exit 6; \
./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -iber -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -iber -onull $$f || exit 6; \
done; done; fi
check-xer:
@if test -f sample-MegacoMessage-1.xer ; then \
for f in sample-MegacoMessage-*.xer; do \
for f in sample-*-*.xer; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding $$f into DER and back ($$b)..."; \
./${TARGET} -b $$b -ixer -oder $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
echo "Recoding $$f ($$pdu) into DER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -ixer -oder $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -p $$pdu -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
diff $$f ./.tmp.2.$$$$ || exit 4; \
rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -ixer -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -b $$b -ixer -onull $$f || exit 6; \
./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -ixer -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -ixer -onull $$f || exit 6; \
done; done; fi
check-oer:
@if test -f sample-MegacoMessage-1.*oer ; then \
for f in sample-*-*.*oer; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding $$f ($$pdu) into XER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -ioer -oxer $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -p $$pdu -b $$b -ixer -ooer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
diff $$f ./.tmp.2.$$$$ || exit 4; \
rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait) ($$b) ..."; \
./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -ioer -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -ioer -onull $$f || exit 6; \
done; done; fi
check-per:
@if test -f sample-MegacoMessage-1-nopad.per ; then \
for f in sample-MegacoMessage-[1-9]-nopad.per; do \
for f in sample-*-[1-9]-nopad.per; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding non-padded $$f into DER into XER and back ($$b)..."; \
./${TARGET} -b $$b -per-nopad -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
./${TARGET} -b $$b -ixer -oder ./.tmp.2.$$$$ > ./.tmp.3.$$$$ || exit 4; \
echo "Recoding non-padded $$f ($$pdu) into DER into XER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -per-nopad -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -p $$pdu -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
./${TARGET} -p $$pdu -b $$b -ixer -oder ./.tmp.2.$$$$ > ./.tmp.3.$$$$ || exit 4; \
diff ./.tmp.1.$$$$ ./.tmp.3.$$$$ || exit 5; \
rm -f ./.tmp.[123].$$$$; \
echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -per-nopad -iper -onull $$f || exit 6; \
./${TARGET} -J0.001 -n 1000 -b $$b -per-nopad -iper -onull $$f || exit 7; \
./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -per-nopad -iper -onull $$f || exit 6; \
./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -per-nopad -iper -onull $$f || exit 7; \
done; done; fi
@if test -f sample-MegacoMessage-1.per ; then \
for f in sample-*-[1-9].per; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\1/"`; \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding $$f into DER into XER and back ($$b)..."; \
./${TARGET} -b $$b -p $$pdu -iper -oder $$f > ./.tmp.1.$$$$ || exit 3; \
./${TARGET} -b $$b -p $$pdu -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 4; \
./${TARGET} -b $$b -p $$pdu -ixer -oper ./.tmp.2.$$$$ > ./.tmp.1.$$$$ || exit 5; \
echo "Recoding $$f ($$pdu) into DER into XER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -iper -oder $$f > ./.tmp.1.$$$$ || exit 3; \
./${TARGET} -p $$pdu -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 4; \
./${TARGET} -p $$pdu -b $$b -ixer -oper ./.tmp.2.$$$$ > ./.tmp.1.$$$$ || exit 5; \
diff $$f ./.tmp.1.$$$$ || exit 6; \
rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -iper -onull $$f || exit 7; \
./${TARGET} -J0.001 -n 1000 -b $$b -iper -onull $$f || exit 8; \
./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -iper -onull $$f || exit 7; \
./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -iper -onull $$f || exit 8; \
done; done; fi
maybe-wip-pause:
@if [ -f WIP ]; then cat WIP; sleep 2; fi
distclean: clean
rm -f $(ASN_MODULE_SOURCES)
rm -f $(ASN_MODULE_HEADERS)
rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS)
rm -f Makefile.am.sample
rm -f Makefile.am.example

View File

@ -1,379 +1,34 @@
ASN_MODULE_SOURCES= \
Attribute.c \
AttributeType.c \
AttributeValue.c \
AttributeTypeAndValue.c \
X520name.c \
X520CommonName.c \
X520LocalityName.c \
X520StateOrProvinceName.c \
X520OrganizationName.c \
X520OrganizationalUnitName.c \
X520Title.c \
X520dnQualifier.c \
X520countryName.c \
X520SerialNumber.c \
X520Pseudonym.c \
DomainComponent.c \
EmailAddress.c \
Name.c \
RDNSequence.c \
DistinguishedName.c \
RelativeDistinguishedName.c \
DirectoryString.c \
Certificate.c \
TBSCertificate.c \
Version.c \
CertificateSerialNumber.c \
Validity.c \
Time.c \
UniqueIdentifier.c \
SubjectPublicKeyInfo.c \
Extensions.c \
Extension.c \
CertificateList.c \
TBSCertList.c \
AlgorithmIdentifier.c \
ORAddress.c \
BuiltInStandardAttributes.c \
CountryName.c \
AdministrationDomainName.c \
NetworkAddress.c \
X121Address.c \
TerminalIdentifier.c \
PrivateDomainName.c \
OrganizationName.c \
NumericUserIdentifier.c \
PersonalName.c \
OrganizationalUnitNames.c \
OrganizationalUnitName.c \
BuiltInDomainDefinedAttributes.c \
BuiltInDomainDefinedAttribute.c \
ExtensionAttributes.c \
ExtensionAttribute.c \
CommonName.c \
TeletexCommonName.c \
TeletexOrganizationName.c \
TeletexPersonalName.c \
TeletexOrganizationalUnitNames.c \
TeletexOrganizationalUnitName.c \
PDSName.c \
PhysicalDeliveryCountryName.c \
PostalCode.c \
PhysicalDeliveryOfficeName.c \
PhysicalDeliveryOfficeNumber.c \
ExtensionORAddressComponents.c \
PhysicalDeliveryPersonalName.c \
PhysicalDeliveryOrganizationName.c \
ExtensionPhysicalDeliveryAddressComponents.c \
UnformattedPostalAddress.c \
StreetAddress.c \
PostOfficeBoxAddress.c \
PosteRestanteAddress.c \
UniquePostalName.c \
LocalPostalAttributes.c \
PDSParameter.c \
ExtendedNetworkAddress.c \
PresentationAddress.c \
TerminalType.c \
TeletexDomainDefinedAttributes.c \
TeletexDomainDefinedAttribute.c \
AuthorityKeyIdentifier.c \
KeyIdentifier.c \
SubjectKeyIdentifier.c \
KeyUsage.c \
PrivateKeyUsagePeriod.c \
CertificatePolicies.c \
PolicyInformation.c \
CertPolicyId.c \
PolicyQualifierInfo.c \
PolicyQualifierId.c \
CPSuri.c \
UserNotice.c \
NoticeReference.c \
DisplayText.c \
PolicyMappings.c \
SubjectAltName.c \
GeneralNames.c \
GeneralName.c \
AnotherName.c \
EDIPartyName.c \
IssuerAltName.c \
SubjectDirectoryAttributes.c \
BasicConstraints.c \
NameConstraints.c \
GeneralSubtrees.c \
GeneralSubtree.c \
BaseDistance.c \
PolicyConstraints.c \
SkipCerts.c \
CRLDistributionPoints.c \
DistributionPoint.c \
DistributionPointName.c \
ReasonFlags.c \
ExtKeyUsageSyntax.c \
KeyPurposeId.c \
InhibitAnyPolicy.c \
FreshestCRL.c \
AuthorityInfoAccessSyntax.c \
AccessDescription.c \
SubjectInfoAccessSyntax.c \
CRLNumber.c \
IssuingDistributionPoint.c \
BaseCRLNumber.c \
CRLReason.c \
CertificateIssuer.c \
HoldInstructionCode.c \
InvalidityDate.c
-include Makefile.am.libasncodec
ASN_MODULE_HEADERS= \
Attribute.h \
AttributeType.h \
AttributeValue.h \
AttributeTypeAndValue.h \
X520name.h \
X520CommonName.h \
X520LocalityName.h \
X520StateOrProvinceName.h \
X520OrganizationName.h \
X520OrganizationalUnitName.h \
X520Title.h \
X520dnQualifier.h \
X520countryName.h \
X520SerialNumber.h \
X520Pseudonym.h \
DomainComponent.h \
EmailAddress.h \
Name.h \
RDNSequence.h \
DistinguishedName.h \
RelativeDistinguishedName.h \
DirectoryString.h \
Certificate.h \
TBSCertificate.h \
Version.h \
CertificateSerialNumber.h \
Validity.h \
Time.h \
UniqueIdentifier.h \
SubjectPublicKeyInfo.h \
Extensions.h \
Extension.h \
CertificateList.h \
TBSCertList.h \
AlgorithmIdentifier.h \
ORAddress.h \
BuiltInStandardAttributes.h \
CountryName.h \
AdministrationDomainName.h \
NetworkAddress.h \
X121Address.h \
TerminalIdentifier.h \
PrivateDomainName.h \
OrganizationName.h \
NumericUserIdentifier.h \
PersonalName.h \
OrganizationalUnitNames.h \
OrganizationalUnitName.h \
BuiltInDomainDefinedAttributes.h \
BuiltInDomainDefinedAttribute.h \
ExtensionAttributes.h \
ExtensionAttribute.h \
CommonName.h \
TeletexCommonName.h \
TeletexOrganizationName.h \
TeletexPersonalName.h \
TeletexOrganizationalUnitNames.h \
TeletexOrganizationalUnitName.h \
PDSName.h \
PhysicalDeliveryCountryName.h \
PostalCode.h \
PhysicalDeliveryOfficeName.h \
PhysicalDeliveryOfficeNumber.h \
ExtensionORAddressComponents.h \
PhysicalDeliveryPersonalName.h \
PhysicalDeliveryOrganizationName.h \
ExtensionPhysicalDeliveryAddressComponents.h \
UnformattedPostalAddress.h \
StreetAddress.h \
PostOfficeBoxAddress.h \
PosteRestanteAddress.h \
UniquePostalName.h \
LocalPostalAttributes.h \
PDSParameter.h \
ExtendedNetworkAddress.h \
PresentationAddress.h \
TerminalType.h \
TeletexDomainDefinedAttributes.h \
TeletexDomainDefinedAttribute.h \
AuthorityKeyIdentifier.h \
KeyIdentifier.h \
SubjectKeyIdentifier.h \
KeyUsage.h \
PrivateKeyUsagePeriod.h \
CertificatePolicies.h \
PolicyInformation.h \
CertPolicyId.h \
PolicyQualifierInfo.h \
PolicyQualifierId.h \
CPSuri.h \
UserNotice.h \
NoticeReference.h \
DisplayText.h \
PolicyMappings.h \
SubjectAltName.h \
GeneralNames.h \
GeneralName.h \
AnotherName.h \
EDIPartyName.h \
IssuerAltName.h \
SubjectDirectoryAttributes.h \
BasicConstraints.h \
NameConstraints.h \
GeneralSubtrees.h \
GeneralSubtree.h \
BaseDistance.h \
PolicyConstraints.h \
SkipCerts.h \
CRLDistributionPoints.h \
DistributionPoint.h \
DistributionPointName.h \
ReasonFlags.h \
ExtKeyUsageSyntax.h \
KeyPurposeId.h \
InhibitAnyPolicy.h \
FreshestCRL.h \
AuthorityInfoAccessSyntax.h \
AccessDescription.h \
SubjectInfoAccessSyntax.h \
CRLNumber.h \
IssuingDistributionPoint.h \
BaseCRLNumber.h \
CRLReason.h \
CertificateIssuer.h \
HoldInstructionCode.h \
InvalidityDate.h
ASN_MODULE_HEADERS+=ANY.h
ASN_MODULE_SOURCES+=ANY.c
ASN_MODULE_HEADERS+=OPEN_TYPE.h
ASN_MODULE_SOURCES+=OPEN_TYPE.c
ASN_MODULE_HEADERS+=constr_CHOICE.h
ASN_MODULE_HEADERS+=BMPString.h
ASN_MODULE_SOURCES+=BMPString.c
ASN_MODULE_HEADERS+=UTF8String.h
ASN_MODULE_HEADERS+=BOOLEAN.h
ASN_MODULE_SOURCES+=BOOLEAN.c
ASN_MODULE_HEADERS+=ENUMERATED.h
ASN_MODULE_SOURCES+=ENUMERATED.c
ASN_MODULE_HEADERS+=INTEGER.h
ASN_MODULE_HEADERS+=NativeEnumerated.h
ASN_MODULE_HEADERS+=GeneralizedTime.h
ASN_MODULE_SOURCES+=GeneralizedTime.c
ASN_MODULE_HEADERS+=IA5String.h
ASN_MODULE_SOURCES+=IA5String.c
ASN_MODULE_SOURCES+=INTEGER.c
ASN_MODULE_SOURCES+=NativeEnumerated.c
ASN_MODULE_HEADERS+=NativeInteger.h
ASN_MODULE_SOURCES+=NativeInteger.c
ASN_MODULE_HEADERS+=NumericString.h
ASN_MODULE_SOURCES+=NumericString.c
ASN_MODULE_HEADERS+=OBJECT_IDENTIFIER.h
ASN_MODULE_SOURCES+=OBJECT_IDENTIFIER.c
ASN_MODULE_HEADERS+=PrintableString.h
ASN_MODULE_SOURCES+=PrintableString.c
ASN_MODULE_HEADERS+=TeletexString.h
ASN_MODULE_SOURCES+=TeletexString.c
ASN_MODULE_HEADERS+=UTCTime.h
ASN_MODULE_SOURCES+=UTCTime.c
ASN_MODULE_SOURCES+=UTF8String.c
ASN_MODULE_HEADERS+=UniversalString.h
ASN_MODULE_SOURCES+=UniversalString.c
ASN_MODULE_HEADERS+=VisibleString.h
ASN_MODULE_SOURCES+=VisibleString.c
ASN_MODULE_HEADERS+=asn_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=asn_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=asn_SET_OF.h
ASN_MODULE_SOURCES+=asn_SET_OF.c
ASN_MODULE_SOURCES+=constr_CHOICE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE.h
ASN_MODULE_SOURCES+=constr_SEQUENCE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=constr_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=constr_SET_OF.h
ASN_MODULE_HEADERS+=constr_SET.h
ASN_MODULE_SOURCES+=constr_SET.c
ASN_MODULE_SOURCES+=constr_SET_OF.c
ASN_MODULE_HEADERS+=asn_application.h
ASN_MODULE_HEADERS+=asn_ioc.h
ASN_MODULE_HEADERS+=asn_system.h
ASN_MODULE_HEADERS+=asn_codecs.h
ASN_MODULE_HEADERS+=asn_internal.h
ASN_MODULE_HEADERS+=asn_bit_data.h
ASN_MODULE_SOURCES+=asn_bit_data.c
ASN_MODULE_HEADERS+=OCTET_STRING.h
ASN_MODULE_SOURCES+=OCTET_STRING.c
ASN_MODULE_HEADERS+=BIT_STRING.h
ASN_MODULE_SOURCES+=BIT_STRING.c
ASN_MODULE_SOURCES+=asn_codecs_prim.c
ASN_MODULE_HEADERS+=asn_codecs_prim.h
ASN_MODULE_HEADERS+=ber_tlv_length.h
ASN_MODULE_SOURCES+=ber_tlv_length.c
ASN_MODULE_HEADERS+=ber_tlv_tag.h
ASN_MODULE_SOURCES+=ber_tlv_tag.c
ASN_MODULE_HEADERS+=ber_decoder.h
ASN_MODULE_SOURCES+=ber_decoder.c
ASN_MODULE_HEADERS+=der_encoder.h
ASN_MODULE_SOURCES+=der_encoder.c
ASN_MODULE_HEADERS+=constr_TYPE.h
ASN_MODULE_SOURCES+=constr_TYPE.c
ASN_MODULE_HEADERS+=constraints.h
ASN_MODULE_SOURCES+=constraints.c
ASN_MODULE_HEADERS+=xer_support.h
ASN_MODULE_SOURCES+=xer_support.c
ASN_MODULE_HEADERS+=xer_decoder.h
ASN_MODULE_SOURCES+=xer_decoder.c
ASN_MODULE_HEADERS+=xer_encoder.h
ASN_MODULE_SOURCES+=xer_encoder.c
ASN_MODULE_HEADERS+=per_support.h
ASN_MODULE_SOURCES+=per_support.c
ASN_MODULE_HEADERS+=per_decoder.h
ASN_MODULE_SOURCES+=per_decoder.c
ASN_MODULE_HEADERS+=per_encoder.h
ASN_MODULE_SOURCES+=per_encoder.c
ASN_MODULE_HEADERS+=per_opentype.h
ASN_MODULE_SOURCES+=per_opentype.c
ASN_CONVERTER_SOURCES+=converter-sample.c
lib_LTLIBRARIES=libsomething.la
libsomething_la_SOURCES=$(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
# This file may be used as an input for make(3)
# Remove the lines below to convert it into a pure .am file
TARGET = x509dump
CPPFLAGS += -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE -DASN_DISABLE_OER_SUPPORT -DASN_DISABLE_PER_SUPPORT -DPDU=Certificate -I.
OBJS=${ASN_MODULE_SOURCES:.c=.o} ${ASN_CONVERTER_SOURCES:.c=.o}
ASN_LIBRARY=libasncodec.a
LIBS += -lm
CFLAGS += -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE $(ASN_MODULE_CFLAGS) -DPDU=Certificate -I.
ASN_CONVERTER_SOURCES := \
converter-example.c
all: maybe-wip-pause Certificate.c $(TARGET)
$(TARGET): ${OBJS}
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) ${OBJS} $(LDFLAGS) $(LIBS)
$(TARGET): $(ASN_LIBRARY) $(ASN_CONVERTER_SOURCES:.c=.o)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) $(ASN_CONVERTER_SOURCES:.c=.o) $(LDFLAGS) $(ASN_LIBRARY) $(LIBS)
$(ASN_LIBRARY): $(ASN_MODULE_SOURCES:.c=.o)
$(AR) rcs $@ $^
.SUFFIXES:
.SUFFIXES: .c .o
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
$(CC) $(CFLAGS) -o $@ -c $<
clean:
rm -f $(TARGET)
rm -f $(OBJS)
rm -f $(TARGET) $(ASN_LIBRARY)
rm -f $(ASN_MODULE_SOURCES:.c=.o) $(ASN_CONVERTER_SOURCES:.c=.o)
regen: regenerate-from-asn1-source
regenerate-from-asn1-source:
../../asn1c/asn1c -S ../../skeletons -pdu=Certificate -fwide-types ../rfc3280-PKIX1Explicit88.asn1 ../rfc3280-PKIX1Implicit88.asn1
../../asn1c/asn1c -S ../../skeletons -pdu=Certificate -fcompound-names -fwide-types ../rfc3280-PKIX1Explicit88.asn1 ../rfc3280-PKIX1Implicit88.asn1
Certificate.c: ../sample.makefile.regen ../rfc3280-*.asn1
@ -382,14 +37,13 @@ Certificate.c: ../sample.makefile.regen ../rfc3280-*.asn1
make
regen-makefile:
ASN1CMDOPTS="-fwide-types" \
ASN1CMDOPTS="-fcompound-names -fwide-types" \
ASN1MODULES="../rfc3280-*.asn1" \
ASN1PDU=Certificate \
PROGNAME=x509dump \
CPPFLAGS="" \
../sample.makefile.regen
check: ${TARGET} check-ber check-xer check-per
check: ${TARGET} check-ber check-xer check-oer check-per
@echo ================
@echo All tests passed
@echo ================
@ -397,7 +51,7 @@ check: ${TARGET} check-ber check-xer check-per
check-ber:
@if test -f sample-Certificate-1.[db]er ; then \
for f in sample-*-*.[db]er; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\1/"`; \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding $$f ($$pdu) into XER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -iber -oxer $$f > ./.tmp.1.$$$$ || exit 2; \
@ -412,7 +66,7 @@ check-ber:
check-xer:
@if test -f sample-Certificate-1.xer ; then \
for f in sample-*-*.xer; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\1/"`; \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding $$f ($$pdu) into DER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -ixer -oder $$f > ./.tmp.1.$$$$ || exit 2; \
@ -424,10 +78,25 @@ check-xer:
./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -ixer -onull $$f || exit 6; \
done; done; fi
check-oer:
@if test -f sample-Certificate-1.*oer ; then \
for f in sample-*-*.*oer; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding $$f ($$pdu) into XER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -ioer -oxer $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -p $$pdu -b $$b -ixer -ooer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
diff $$f ./.tmp.2.$$$$ || exit 4; \
rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait) ($$b) ..."; \
./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -ioer -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -ioer -onull $$f || exit 6; \
done; done; fi
check-per:
@if test -f sample-Certificate-1-nopad.per ; then \
for f in sample-*-[1-9]-nopad.per; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\1/"`; \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding non-padded $$f ($$pdu) into DER into XER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -per-nopad -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \
@ -441,7 +110,7 @@ check-per:
done; done; fi
@if test -f sample-Certificate-1.per ; then \
for f in sample-*-[1-9].per; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\1/"`; \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding $$f ($$pdu) into DER into XER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -iper -oder $$f > ./.tmp.1.$$$$ || exit 3; \
@ -461,4 +130,4 @@ distclean: clean
rm -f $(ASN_MODULE_SOURCES)
rm -f $(ASN_MODULE_HEADERS)
rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS)
rm -f Makefile.am.sample
rm -f Makefile.am.example

File diff suppressed because it is too large Load Diff

View File

@ -1,727 +1,19 @@
ASN_MODULE_SOURCES= \
DataInterChange.c \
TransferBatch.c \
Notification.c \
CallEventDetailList.c \
CallEventDetail.c \
BatchControlInfo.c \
AccountingInfo.c \
NetworkInfo.c \
MessageDescriptionInfoList.c \
MobileOriginatedCall.c \
MobileTerminatedCall.c \
SupplServiceEvent.c \
ServiceCentreUsage.c \
GprsCall.c \
ContentTransaction.c \
LocationService.c \
MessagingEvent.c \
MobileSession.c \
AuditControlInfo.c \
AccessPointNameNI.c \
AccessPointNameOI.c \
ActualDeliveryTimeStamp.c \
AddressStringDigits.c \
AdvisedCharge.c \
AdvisedChargeCurrency.c \
AdvisedChargeInformation.c \
AgeOfLocation.c \
BasicService.c \
BasicServiceCode.c \
BasicServiceCodeList.c \
BasicServiceUsed.c \
BasicServiceUsedList.c \
BearerServiceCode.c \
CalledNumber.c \
CalledPlace.c \
CalledRegion.c \
CallEventDetailsCount.c \
CallEventStartTimeStamp.c \
CallingNumber.c \
CallOriginator.c \
CallReference.c \
CallTypeGroup.c \
CallTypeLevel1.c \
CallTypeLevel2.c \
CallTypeLevel3.c \
CamelDestinationNumber.c \
CamelInvocationFee.c \
CamelServiceKey.c \
CamelServiceLevel.c \
CamelServiceUsed.c \
CauseForTerm.c \
CellId.c \
Charge.c \
ChargeableSubscriber.c \
ChargeableUnits.c \
ChargeDetail.c \
ChargeDetailList.c \
ChargeDetailTimeStamp.c \
ChargedItem.c \
ChargedParty.c \
ChargedPartyEquipment.c \
ChargedPartyHomeIdentification.c \
ChargedPartyHomeIdList.c \
ChargedPartyIdentification.c \
ChargedPartyIdentifier.c \
ChargedPartyIdList.c \
ChargedPartyIdType.c \
ChargedPartyInformation.c \
ChargedPartyLocation.c \
ChargedPartyLocationList.c \
ChargedPartyStatus.c \
ChargedUnits.c \
ChargeInformation.c \
ChargeInformationList.c \
ChargeRefundIndicator.c \
ChargeType.c \
ChargingId.c \
ChargingPoint.c \
ChargingTimeStamp.c \
ClirIndicator.c \
Commission.c \
CompletionTimeStamp.c \
ContentChargingPoint.c \
ContentProvider.c \
ContentProviderIdentifier.c \
ContentProviderIdList.c \
ContentProviderIdType.c \
ContentProviderName.c \
ContentServiceUsed.c \
ContentServiceUsedList.c \
ContentTransactionBasicInfo.c \
ContentTransactionCode.c \
ContentTransactionType.c \
CseInformation.c \
CurrencyConversion.c \
CurrencyConversionList.c \
CustomerIdentifier.c \
CustomerIdType.c \
DataVolume.c \
DataVolumeIncoming.c \
DataVolumeOutgoing.c \
DateTime.c \
DateTimeLong.c \
DefaultCallHandlingIndicator.c \
DepositTimeStamp.c \
Destination.c \
DestinationNetwork.c \
DialledDigits.c \
Discount.c \
DiscountableAmount.c \
DiscountApplied.c \
DiscountCode.c \
DiscountInformation.c \
Discounting.c \
DiscountingList.c \
DiscountRate.c \
DiscountValue.c \
DistanceChargeBandCode.c \
EarliestCallTimeStamp.c \
ElementId.c \
ElementType.c \
EquipmentId.c \
EquipmentIdType.c \
Esn.c \
EventReference.c \
ExchangeRate.c \
ExchangeRateCode.c \
FileAvailableTimeStamp.c \
FileCreationTimeStamp.c \
FileSequenceNumber.c \
FileTypeIndicator.c \
FixedDiscountValue.c \
Fnur.c \
GeographicalLocation.c \
GprsBasicCallInformation.c \
GprsChargeableSubscriber.c \
GprsDestination.c \
GprsLocationInformation.c \
GprsNetworkLocation.c \
GprsServiceUsed.c \
GsmChargeableSubscriber.c \
GuaranteedBitRate.c \
HomeBid.c \
HomeIdentifier.c \
HomeIdType.c \
HomeLocationDescription.c \
HomeLocationInformation.c \
HorizontalAccuracyDelivered.c \
HorizontalAccuracyRequested.c \
HSCSDIndicator.c \
Imei.c \
ImeiOrEsn.c \
Imsi.c \
IMSSignallingContext.c \
InternetServiceProvider.c \
InternetServiceProviderIdList.c \
IspIdentifier.c \
IspIdType.c \
ISPList.c \
NetworkIdType.c \
NetworkIdentifier.c \
Network.c \
NetworkList.c \
LatestCallTimeStamp.c \
LCSQosDelivered.c \
LCSQosRequested.c \
LCSRequestTimestamp.c \
LCSSPIdentification.c \
LCSSPIdentificationList.c \
LCSSPInformation.c \
LCSTransactionStatus.c \
LocalCurrency.c \
LocalTimeStamp.c \
LocationArea.c \
LocationDescription.c \
LocationIdentifier.c \
LocationIdType.c \
LocationInformation.c \
LocationServiceUsage.c \
MaximumBitRate.c \
Mdn.c \
MessageDescription.c \
MessageDescriptionCode.c \
MessageDescriptionInformation.c \
MessageStatus.c \
MessageType.c \
MessagingEventService.c \
Min.c \
MinChargeableSubscriber.c \
MoBasicCallInformation.c \
MobileSessionService.c \
Msisdn.c \
MtBasicCallInformation.c \
NetworkAccessIdentifier.c \
NetworkElement.c \
NetworkElementList.c \
NetworkId.c \
NetworkInitPDPContext.c \
NetworkLocation.c \
NonChargedNumber.c \
NonChargedParty.c \
NonChargedPartyNumber.c \
NonChargedPublicUserId.c \
NumberOfDecimalPlaces.c \
ObjectType.c \
OperatorSpecInfoList.c \
OperatorSpecInformation.c \
OrderPlacedTimeStamp.c \
OriginatingNetwork.c \
PacketDataProtocolAddress.c \
PaidIndicator.c \
PartialTypeIndicator.c \
PaymentMethod.c \
PdpAddress.c \
PDPContextStartTimestamp.c \
PlmnId.c \
PositioningMethod.c \
PriorityCode.c \
PublicUserId.c \
RapFileSequenceNumber.c \
RecEntityCode.c \
RecEntityCodeList.c \
RecEntityId.c \
RecEntityInfoList.c \
RecEntityInformation.c \
RecEntityType.c \
Recipient.c \
ReleaseVersionNumber.c \
RequestedDeliveryTimeStamp.c \
ResponseTime.c \
ResponseTimeCategory.c \
ScuBasicInformation.c \
ScuChargeType.c \
ScuTimeStamps.c \
ScuChargeableSubscriber.c \
Sender.c \
ServiceStartTimestamp.c \
ServingBid.c \
ServingLocationDescription.c \
ServingNetwork.c \
ServingPartiesInformation.c \
SessionChargeInfoList.c \
SessionChargeInformation.c \
SimChargeableSubscriber.c \
SimToolkitIndicator.c \
SMSDestinationNumber.c \
SMSOriginator.c \
SpecificationVersionNumber.c \
SsParameters.c \
SupplServiceActionCode.c \
SupplServiceCode.c \
SupplServiceUsed.c \
TapCurrency.c \
TapDecimalPlaces.c \
TaxableAmount.c \
Taxation.c \
TaxationList.c \
TaxCode.c \
TaxIndicator.c \
TaxInformation.c \
TaxInformationList.c \
TaxRate.c \
TaxType.c \
TaxValue.c \
TeleServiceCode.c \
ThirdPartyInformation.c \
ThirdPartyNumber.c \
ThreeGcamelDestination.c \
TotalAdvisedCharge.c \
TotalAdvisedChargeRefund.c \
TotalAdvisedChargeValue.c \
TotalAdvisedChargeValueList.c \
TotalCallEventDuration.c \
TotalCharge.c \
TotalChargeRefund.c \
TotalCommission.c \
TotalCommissionRefund.c \
TotalDataVolume.c \
TotalDiscountRefund.c \
TotalDiscountValue.c \
TotalTaxRefund.c \
TotalTaxValue.c \
TotalTransactionDuration.c \
TrackedCustomerEquipment.c \
TrackedCustomerHomeId.c \
TrackedCustomerHomeIdList.c \
TrackedCustomerIdentification.c \
TrackedCustomerIdList.c \
TrackedCustomerInformation.c \
TrackedCustomerLocation.c \
TrackedCustomerLocList.c \
TrackingCustomerEquipment.c \
TrackingCustomerHomeId.c \
TrackingCustomerHomeIdList.c \
TrackingCustomerIdentification.c \
TrackingCustomerIdList.c \
TrackingCustomerInformation.c \
TrackingCustomerLocation.c \
TrackingCustomerLocList.c \
TrackingFrequency.c \
TrackingPeriod.c \
TransactionAuthCode.c \
TransactionDescriptionSupp.c \
TransactionDetailDescription.c \
TransactionIdentifier.c \
TransactionShortDescription.c \
TransactionStatus.c \
TransferCutOffTimeStamp.c \
TransparencyIndicator.c \
UserProtocolIndicator.c \
UtcTimeOffset.c \
UtcTimeOffsetCode.c \
UtcTimeOffsetInfo.c \
UtcTimeOffsetInfoList.c \
VerticalAccuracyDelivered.c \
VerticalAccuracyRequested.c \
AbsoluteAmount.c \
Bid.c \
Code.c \
AsciiString.c \
BCDString.c \
Currency.c \
HexString.c \
NumberString.c \
PercentageRate.c
-include Makefile.am.libasncodec
ASN_MODULE_HEADERS= \
DataInterChange.h \
TransferBatch.h \
Notification.h \
CallEventDetailList.h \
CallEventDetail.h \
BatchControlInfo.h \
AccountingInfo.h \
NetworkInfo.h \
MessageDescriptionInfoList.h \
MobileOriginatedCall.h \
MobileTerminatedCall.h \
SupplServiceEvent.h \
ServiceCentreUsage.h \
GprsCall.h \
ContentTransaction.h \
LocationService.h \
MessagingEvent.h \
MobileSession.h \
AuditControlInfo.h \
AccessPointNameNI.h \
AccessPointNameOI.h \
ActualDeliveryTimeStamp.h \
AddressStringDigits.h \
AdvisedCharge.h \
AdvisedChargeCurrency.h \
AdvisedChargeInformation.h \
AgeOfLocation.h \
BasicService.h \
BasicServiceCode.h \
BasicServiceCodeList.h \
BasicServiceUsed.h \
BasicServiceUsedList.h \
BearerServiceCode.h \
CalledNumber.h \
CalledPlace.h \
CalledRegion.h \
CallEventDetailsCount.h \
CallEventStartTimeStamp.h \
CallingNumber.h \
CallOriginator.h \
CallReference.h \
CallTypeGroup.h \
CallTypeLevel1.h \
CallTypeLevel2.h \
CallTypeLevel3.h \
CamelDestinationNumber.h \
CamelInvocationFee.h \
CamelServiceKey.h \
CamelServiceLevel.h \
CamelServiceUsed.h \
CauseForTerm.h \
CellId.h \
Charge.h \
ChargeableSubscriber.h \
ChargeableUnits.h \
ChargeDetail.h \
ChargeDetailList.h \
ChargeDetailTimeStamp.h \
ChargedItem.h \
ChargedParty.h \
ChargedPartyEquipment.h \
ChargedPartyHomeIdentification.h \
ChargedPartyHomeIdList.h \
ChargedPartyIdentification.h \
ChargedPartyIdentifier.h \
ChargedPartyIdList.h \
ChargedPartyIdType.h \
ChargedPartyInformation.h \
ChargedPartyLocation.h \
ChargedPartyLocationList.h \
ChargedPartyStatus.h \
ChargedUnits.h \
ChargeInformation.h \
ChargeInformationList.h \
ChargeRefundIndicator.h \
ChargeType.h \
ChargingId.h \
ChargingPoint.h \
ChargingTimeStamp.h \
ClirIndicator.h \
Commission.h \
CompletionTimeStamp.h \
ContentChargingPoint.h \
ContentProvider.h \
ContentProviderIdentifier.h \
ContentProviderIdList.h \
ContentProviderIdType.h \
ContentProviderName.h \
ContentServiceUsed.h \
ContentServiceUsedList.h \
ContentTransactionBasicInfo.h \
ContentTransactionCode.h \
ContentTransactionType.h \
CseInformation.h \
CurrencyConversion.h \
CurrencyConversionList.h \
CustomerIdentifier.h \
CustomerIdType.h \
DataVolume.h \
DataVolumeIncoming.h \
DataVolumeOutgoing.h \
DateTime.h \
DateTimeLong.h \
DefaultCallHandlingIndicator.h \
DepositTimeStamp.h \
Destination.h \
DestinationNetwork.h \
DialledDigits.h \
Discount.h \
DiscountableAmount.h \
DiscountApplied.h \
DiscountCode.h \
DiscountInformation.h \
Discounting.h \
DiscountingList.h \
DiscountRate.h \
DiscountValue.h \
DistanceChargeBandCode.h \
EarliestCallTimeStamp.h \
ElementId.h \
ElementType.h \
EquipmentId.h \
EquipmentIdType.h \
Esn.h \
EventReference.h \
ExchangeRate.h \
ExchangeRateCode.h \
FileAvailableTimeStamp.h \
FileCreationTimeStamp.h \
FileSequenceNumber.h \
FileTypeIndicator.h \
FixedDiscountValue.h \
Fnur.h \
GeographicalLocation.h \
GprsBasicCallInformation.h \
GprsChargeableSubscriber.h \
GprsDestination.h \
GprsLocationInformation.h \
GprsNetworkLocation.h \
GprsServiceUsed.h \
GsmChargeableSubscriber.h \
GuaranteedBitRate.h \
HomeBid.h \
HomeIdentifier.h \
HomeIdType.h \
HomeLocationDescription.h \
HomeLocationInformation.h \
HorizontalAccuracyDelivered.h \
HorizontalAccuracyRequested.h \
HSCSDIndicator.h \
Imei.h \
ImeiOrEsn.h \
Imsi.h \
IMSSignallingContext.h \
InternetServiceProvider.h \
InternetServiceProviderIdList.h \
IspIdentifier.h \
IspIdType.h \
ISPList.h \
NetworkIdType.h \
NetworkIdentifier.h \
Network.h \
NetworkList.h \
LatestCallTimeStamp.h \
LCSQosDelivered.h \
LCSQosRequested.h \
LCSRequestTimestamp.h \
LCSSPIdentification.h \
LCSSPIdentificationList.h \
LCSSPInformation.h \
LCSTransactionStatus.h \
LocalCurrency.h \
LocalTimeStamp.h \
LocationArea.h \
LocationDescription.h \
LocationIdentifier.h \
LocationIdType.h \
LocationInformation.h \
LocationServiceUsage.h \
MaximumBitRate.h \
Mdn.h \
MessageDescription.h \
MessageDescriptionCode.h \
MessageDescriptionInformation.h \
MessageStatus.h \
MessageType.h \
MessagingEventService.h \
Min.h \
MinChargeableSubscriber.h \
MoBasicCallInformation.h \
MobileSessionService.h \
Msisdn.h \
MtBasicCallInformation.h \
NetworkAccessIdentifier.h \
NetworkElement.h \
NetworkElementList.h \
NetworkId.h \
NetworkInitPDPContext.h \
NetworkLocation.h \
NonChargedNumber.h \
NonChargedParty.h \
NonChargedPartyNumber.h \
NonChargedPublicUserId.h \
NumberOfDecimalPlaces.h \
ObjectType.h \
OperatorSpecInfoList.h \
OperatorSpecInformation.h \
OrderPlacedTimeStamp.h \
OriginatingNetwork.h \
PacketDataProtocolAddress.h \
PaidIndicator.h \
PartialTypeIndicator.h \
PaymentMethod.h \
PdpAddress.h \
PDPContextStartTimestamp.h \
PlmnId.h \
PositioningMethod.h \
PriorityCode.h \
PublicUserId.h \
RapFileSequenceNumber.h \
RecEntityCode.h \
RecEntityCodeList.h \
RecEntityId.h \
RecEntityInfoList.h \
RecEntityInformation.h \
RecEntityType.h \
Recipient.h \
ReleaseVersionNumber.h \
RequestedDeliveryTimeStamp.h \
ResponseTime.h \
ResponseTimeCategory.h \
ScuBasicInformation.h \
ScuChargeType.h \
ScuTimeStamps.h \
ScuChargeableSubscriber.h \
Sender.h \
ServiceStartTimestamp.h \
ServingBid.h \
ServingLocationDescription.h \
ServingNetwork.h \
ServingPartiesInformation.h \
SessionChargeInfoList.h \
SessionChargeInformation.h \
SimChargeableSubscriber.h \
SimToolkitIndicator.h \
SMSDestinationNumber.h \
SMSOriginator.h \
SpecificationVersionNumber.h \
SsParameters.h \
SupplServiceActionCode.h \
SupplServiceCode.h \
SupplServiceUsed.h \
TapCurrency.h \
TapDecimalPlaces.h \
TaxableAmount.h \
Taxation.h \
TaxationList.h \
TaxCode.h \
TaxIndicator.h \
TaxInformation.h \
TaxInformationList.h \
TaxRate.h \
TaxType.h \
TaxValue.h \
TeleServiceCode.h \
ThirdPartyInformation.h \
ThirdPartyNumber.h \
ThreeGcamelDestination.h \
TotalAdvisedCharge.h \
TotalAdvisedChargeRefund.h \
TotalAdvisedChargeValue.h \
TotalAdvisedChargeValueList.h \
TotalCallEventDuration.h \
TotalCharge.h \
TotalChargeRefund.h \
TotalCommission.h \
TotalCommissionRefund.h \
TotalDataVolume.h \
TotalDiscountRefund.h \
TotalDiscountValue.h \
TotalTaxRefund.h \
TotalTaxValue.h \
TotalTransactionDuration.h \
TrackedCustomerEquipment.h \
TrackedCustomerHomeId.h \
TrackedCustomerHomeIdList.h \
TrackedCustomerIdentification.h \
TrackedCustomerIdList.h \
TrackedCustomerInformation.h \
TrackedCustomerLocation.h \
TrackedCustomerLocList.h \
TrackingCustomerEquipment.h \
TrackingCustomerHomeId.h \
TrackingCustomerHomeIdList.h \
TrackingCustomerIdentification.h \
TrackingCustomerIdList.h \
TrackingCustomerInformation.h \
TrackingCustomerLocation.h \
TrackingCustomerLocList.h \
TrackingFrequency.h \
TrackingPeriod.h \
TransactionAuthCode.h \
TransactionDescriptionSupp.h \
TransactionDetailDescription.h \
TransactionIdentifier.h \
TransactionShortDescription.h \
TransactionStatus.h \
TransferCutOffTimeStamp.h \
TransparencyIndicator.h \
UserProtocolIndicator.h \
UtcTimeOffset.h \
UtcTimeOffsetCode.h \
UtcTimeOffsetInfo.h \
UtcTimeOffsetInfoList.h \
VerticalAccuracyDelivered.h \
VerticalAccuracyRequested.h \
AbsoluteAmount.h \
Bid.h \
Code.h \
AsciiString.h \
BCDString.h \
Currency.h \
HexString.h \
NumberString.h \
PercentageRate.h
ASN_MODULE_HEADERS+=INTEGER.h
ASN_MODULE_HEADERS+=NativeEnumerated.h
ASN_MODULE_SOURCES+=INTEGER.c
ASN_MODULE_SOURCES+=NativeEnumerated.c
ASN_MODULE_HEADERS+=NativeInteger.h
ASN_MODULE_SOURCES+=NativeInteger.c
ASN_MODULE_HEADERS+=asn_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=asn_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=asn_SET_OF.h
ASN_MODULE_SOURCES+=asn_SET_OF.c
ASN_MODULE_HEADERS+=constr_CHOICE.h
ASN_MODULE_SOURCES+=constr_CHOICE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE.h
ASN_MODULE_SOURCES+=constr_SEQUENCE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=constr_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=constr_SET_OF.h
ASN_MODULE_SOURCES+=constr_SET_OF.c
ASN_MODULE_HEADERS+=asn_application.h
ASN_MODULE_HEADERS+=asn_system.h
ASN_MODULE_HEADERS+=asn_codecs.h
ASN_MODULE_HEADERS+=asn_internal.h
ASN_MODULE_HEADERS+=OCTET_STRING.h
ASN_MODULE_SOURCES+=OCTET_STRING.c
ASN_MODULE_HEADERS+=BIT_STRING.h
ASN_MODULE_SOURCES+=BIT_STRING.c
ASN_MODULE_SOURCES+=asn_codecs_prim.c
ASN_MODULE_HEADERS+=asn_codecs_prim.h
ASN_MODULE_HEADERS+=ber_tlv_length.h
ASN_MODULE_SOURCES+=ber_tlv_length.c
ASN_MODULE_HEADERS+=ber_tlv_tag.h
ASN_MODULE_SOURCES+=ber_tlv_tag.c
ASN_MODULE_HEADERS+=ber_decoder.h
ASN_MODULE_SOURCES+=ber_decoder.c
ASN_MODULE_HEADERS+=der_encoder.h
ASN_MODULE_SOURCES+=der_encoder.c
ASN_MODULE_HEADERS+=constr_TYPE.h
ASN_MODULE_SOURCES+=constr_TYPE.c
ASN_MODULE_HEADERS+=constraints.h
ASN_MODULE_SOURCES+=constraints.c
ASN_MODULE_HEADERS+=xer_support.h
ASN_MODULE_SOURCES+=xer_support.c
ASN_MODULE_HEADERS+=xer_decoder.h
ASN_MODULE_SOURCES+=xer_decoder.c
ASN_MODULE_HEADERS+=xer_encoder.h
ASN_MODULE_SOURCES+=xer_encoder.c
ASN_MODULE_HEADERS+=per_support.h
ASN_MODULE_SOURCES+=per_support.c
ASN_MODULE_HEADERS+=per_decoder.h
ASN_MODULE_SOURCES+=per_decoder.c
ASN_MODULE_HEADERS+=per_encoder.h
ASN_MODULE_SOURCES+=per_encoder.c
ASN_MODULE_HEADERS+=per_opentype.h
ASN_MODULE_SOURCES+=per_opentype.c
ASN_CONVERTER_SOURCES+=converter-sample.c
lib_LTLIBRARIES=libsomething.la
libsomething_la_SOURCES=$(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
# This file may be used as an input for make(3)
# Remove the lines below to convert it into a pure .am file
TARGET = tap3dump
CFLAGS += -DASN_CONVERTER_TITLE="GSM TAP3 (Transferred Account Procedure, Version 3) decoder" -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE -DPDU=DataInterChange -I.
OBJS=${ASN_MODULE_SOURCES:.c=.o} ${ASN_CONVERTER_SOURCES:.c=.o}
ASN_LIBRARY=libasncodec.a
LIBS += -lm
CFLAGS += -DASN_CONVERTER_TITLE="GSM TAP3 (Transferred Account Procedure, Version 3) decoder" -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE $(ASN_MODULE_CFLAGS) -DPDU=DataInterChange -I.
ASN_CONVERTER_SOURCES := \
converter-example.c
all: DataInterChange.c $(TARGET)
all: maybe-wip-pause DataInterChange.c $(TARGET)
$(TARGET): ${OBJS}
$(CC) $(CFLAGS) -o $(TARGET) ${OBJS} $(LDFLAGS) $(LIBS)
$(TARGET): $(ASN_LIBRARY) $(ASN_CONVERTER_SOURCES:.c=.o)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) $(ASN_CONVERTER_SOURCES:.c=.o) $(LDFLAGS) $(ASN_LIBRARY) $(LIBS)
$(ASN_LIBRARY): $(ASN_MODULE_SOURCES:.c=.o)
$(AR) rcs $@ $^
.SUFFIXES:
.SUFFIXES: .c .o
@ -730,8 +22,8 @@ $(TARGET): ${OBJS}
$(CC) $(CFLAGS) -o $@ -c $<
clean:
rm -f $(TARGET)
rm -f $(OBJS)
rm -f $(TARGET) $(ASN_LIBRARY)
rm -f $(ASN_MODULE_SOURCES:.c=.o) $(ASN_CONVERTER_SOURCES:.c=.o)
regen: regenerate-from-asn1-source
@ -750,73 +42,93 @@ regen-makefile:
ASN1MODULES="../tap3.asn1" \
ASN1PDU=DataInterChange \
PROGNAME=tap3dump \
CFLAGS="" \
../sample.makefile.regen
check: ${TARGET} check-ber check-xer check-per
check: ${TARGET} check-ber check-xer check-oer check-per
@echo ================
@echo All tests passed
@echo ================
check-ber:
@if test -f sample-DataInterChange-1.[db]er ; then \
for f in sample-DataInterChange-*.[db]er; do \
for f in sample-*-*.[db]er; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding $$f into XER and back ($$b)..."; \
./${TARGET} -b $$b -iber -oxer $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -b $$b -ixer -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
echo "Recoding $$f ($$pdu) into XER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -iber -oxer $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -p $$pdu -b $$b -ixer -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
diff ./.tmp.1.$$$$ ./.tmp.2.$$$$ || exit 4; \
rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -iber -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -b $$b -iber -onull $$f || exit 6; \
./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -iber -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -iber -onull $$f || exit 6; \
done; done; fi
check-xer:
@if test -f sample-DataInterChange-1.xer ; then \
for f in sample-DataInterChange-*.xer; do \
for f in sample-*-*.xer; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding $$f into DER and back ($$b)..."; \
./${TARGET} -b $$b -ixer -oder $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
echo "Recoding $$f ($$pdu) into DER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -ixer -oder $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -p $$pdu -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
diff $$f ./.tmp.2.$$$$ || exit 4; \
rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -ixer -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -b $$b -ixer -onull $$f || exit 6; \
./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -ixer -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -ixer -onull $$f || exit 6; \
done; done; fi
check-oer:
@if test -f sample-DataInterChange-1.*oer ; then \
for f in sample-*-*.*oer; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding $$f ($$pdu) into XER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -ioer -oxer $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -p $$pdu -b $$b -ixer -ooer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
diff $$f ./.tmp.2.$$$$ || exit 4; \
rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait) ($$b) ..."; \
./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -ioer -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -ioer -onull $$f || exit 6; \
done; done; fi
check-per:
@if test -f sample-DataInterChange-1-nopad.per ; then \
for f in sample-DataInterChange-[1-9]-nopad.per; do \
for f in sample-*-[1-9]-nopad.per; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding non-padded $$f into DER into XER and back ($$b)..."; \
./${TARGET} -b $$b -per-nopad -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
./${TARGET} -b $$b -ixer -oder ./.tmp.2.$$$$ > ./.tmp.3.$$$$ || exit 4; \
echo "Recoding non-padded $$f ($$pdu) into DER into XER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -per-nopad -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -p $$pdu -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
./${TARGET} -p $$pdu -b $$b -ixer -oder ./.tmp.2.$$$$ > ./.tmp.3.$$$$ || exit 4; \
diff ./.tmp.1.$$$$ ./.tmp.3.$$$$ || exit 5; \
rm -f ./.tmp.[123].$$$$; \
echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -per-nopad -iper -onull $$f || exit 6; \
./${TARGET} -J0.001 -n 1000 -b $$b -per-nopad -iper -onull $$f || exit 7; \
./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -per-nopad -iper -onull $$f || exit 6; \
./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -per-nopad -iper -onull $$f || exit 7; \
done; done; fi
@if test -f sample-DataInterChange-1.per ; then \
for f in sample-*-[1-9].per; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\1/"`; \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding $$f into DER into XER and back ($$b)..."; \
./${TARGET} -b $$b -p $$pdu -iper -oder $$f > ./.tmp.1.$$$$ || exit 3; \
./${TARGET} -b $$b -p $$pdu -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 4; \
./${TARGET} -b $$b -p $$pdu -ixer -oper ./.tmp.2.$$$$ > ./.tmp.1.$$$$ || exit 5; \
echo "Recoding $$f ($$pdu) into DER into XER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -iper -oder $$f > ./.tmp.1.$$$$ || exit 3; \
./${TARGET} -p $$pdu -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 4; \
./${TARGET} -p $$pdu -b $$b -ixer -oper ./.tmp.2.$$$$ > ./.tmp.1.$$$$ || exit 5; \
diff $$f ./.tmp.1.$$$$ || exit 6; \
rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -iper -onull $$f || exit 7; \
./${TARGET} -J0.001 -n 1000 -b $$b -iper -onull $$f || exit 8; \
./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -iper -onull $$f || exit 7; \
./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -iper -onull $$f || exit 8; \
done; done; fi
maybe-wip-pause:
@if [ -f WIP ]; then cat WIP; sleep 2; fi
distclean: clean
rm -f $(ASN_MODULE_SOURCES)
rm -f $(ASN_MODULE_HEADERS)
rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS)
rm -f Makefile.am.sample
rm -f Makefile.am.example

View File

@ -1,246 +1,20 @@
ASN_MODULE_SOURCES= \
ULP-PDU.c \
UlpMessage.c \
SUPLINIT.c \
Notification.c \
NotificationType.c \
EncodingType.c \
FormatIndicator.c \
SLPMode.c \
MAC.c \
KeyIdentity.c \
SUPLSTART.c \
SETCapabilities.c \
PosTechnology.c \
PrefMethod.c \
PosProtocol.c \
SUPLRESPONSE.c \
SETAuthKey.c \
KeyIdentity4.c \
SUPLPOSINIT.c \
RequestedAssistData.c \
NavigationModel.c \
SatelliteInfo.c \
SatelliteInfoElement.c \
SUPLPOS.c \
PosPayLoad.c \
SUPLEND.c \
SUPLAUTHREQ.c \
SETNonce.c \
KeyIdentity2.c \
SUPLAUTHRESP.c \
SPCAuthKey.c \
KeyIdentity3.c \
Version.c \
SessionID.c \
SetSessionID.c \
SETId.c \
SlpSessionID.c \
IPAddress.c \
SLPAddress.c \
FQDN.c \
Ver.c \
LocationId.c \
Status.c \
CellInfo.c \
Position.c \
PositionEstimate.c \
AltitudeInfo.c \
CdmaCellInformation.c \
GsmCellInformation.c \
WcdmaCellInformation.c \
FrequencyInfo.c \
FrequencyInfoFDD.c \
FrequencyInfoTDD.c \
UARFCN.c \
NMR.c \
NMRelement.c \
MeasuredResultsList.c \
MeasuredResults.c \
CellMeasuredResultsList.c \
UTRA-CarrierRSSI.c \
CellMeasuredResults.c \
CellParametersID.c \
TGSN.c \
PrimaryCCPCH-RSCP.c \
TimeslotISCP.c \
TimeslotISCP-List.c \
PrimaryCPICH-Info.c \
CPICH-Ec-N0.c \
CPICH-RSCP.c \
Pathloss.c \
StatusCode.c \
QoP.c \
Velocity.c \
Horvel.c \
Horandvervel.c \
Horveluncert.c \
Horandveruncert.c \
PosMethod.c
-include Makefile.am.libasncodec
ASN_MODULE_HEADERS= \
ULP-PDU.h \
UlpMessage.h \
SUPLINIT.h \
Notification.h \
NotificationType.h \
EncodingType.h \
FormatIndicator.h \
SLPMode.h \
MAC.h \
KeyIdentity.h \
SUPLSTART.h \
SETCapabilities.h \
PosTechnology.h \
PrefMethod.h \
PosProtocol.h \
SUPLRESPONSE.h \
SETAuthKey.h \
KeyIdentity4.h \
SUPLPOSINIT.h \
RequestedAssistData.h \
NavigationModel.h \
SatelliteInfo.h \
SatelliteInfoElement.h \
SUPLPOS.h \
PosPayLoad.h \
SUPLEND.h \
SUPLAUTHREQ.h \
SETNonce.h \
KeyIdentity2.h \
SUPLAUTHRESP.h \
SPCAuthKey.h \
KeyIdentity3.h \
Version.h \
SessionID.h \
SetSessionID.h \
SETId.h \
SlpSessionID.h \
IPAddress.h \
SLPAddress.h \
FQDN.h \
Ver.h \
LocationId.h \
Status.h \
CellInfo.h \
Position.h \
PositionEstimate.h \
AltitudeInfo.h \
CdmaCellInformation.h \
GsmCellInformation.h \
WcdmaCellInformation.h \
FrequencyInfo.h \
FrequencyInfoFDD.h \
FrequencyInfoTDD.h \
UARFCN.h \
NMR.h \
NMRelement.h \
MeasuredResultsList.h \
MeasuredResults.h \
CellMeasuredResultsList.h \
UTRA-CarrierRSSI.h \
CellMeasuredResults.h \
CellParametersID.h \
TGSN.h \
PrimaryCCPCH-RSCP.h \
TimeslotISCP.h \
TimeslotISCP-List.h \
PrimaryCPICH-Info.h \
CPICH-Ec-N0.h \
CPICH-RSCP.h \
Pathloss.h \
StatusCode.h \
QoP.h \
Velocity.h \
Horvel.h \
Horandvervel.h \
Horveluncert.h \
Horandveruncert.h \
PosMethod.h
ASN_MODULE_HEADERS+=BOOLEAN.h
ASN_MODULE_SOURCES+=BOOLEAN.c
ASN_MODULE_HEADERS+=ENUMERATED.h
ASN_MODULE_SOURCES+=ENUMERATED.c
ASN_MODULE_HEADERS+=INTEGER.h
ASN_MODULE_HEADERS+=NativeEnumerated.h
ASN_MODULE_HEADERS+=GeneralizedTime.h
ASN_MODULE_SOURCES+=GeneralizedTime.c
ASN_MODULE_HEADERS+=IA5String.h
ASN_MODULE_SOURCES+=IA5String.c
ASN_MODULE_SOURCES+=INTEGER.c
ASN_MODULE_SOURCES+=NativeEnumerated.c
ASN_MODULE_HEADERS+=NativeInteger.h
ASN_MODULE_SOURCES+=NativeInteger.c
ASN_MODULE_HEADERS+=UTCTime.h
ASN_MODULE_SOURCES+=UTCTime.c
ASN_MODULE_HEADERS+=VisibleString.h
ASN_MODULE_SOURCES+=VisibleString.c
ASN_MODULE_HEADERS+=asn_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=asn_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=asn_SET_OF.h
ASN_MODULE_SOURCES+=asn_SET_OF.c
ASN_MODULE_HEADERS+=constr_CHOICE.h
ASN_MODULE_SOURCES+=constr_CHOICE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE.h
ASN_MODULE_SOURCES+=constr_SEQUENCE.c
ASN_MODULE_HEADERS+=constr_SEQUENCE_OF.h
ASN_MODULE_SOURCES+=constr_SEQUENCE_OF.c
ASN_MODULE_HEADERS+=constr_SET_OF.h
ASN_MODULE_SOURCES+=constr_SET_OF.c
ASN_MODULE_HEADERS+=asn_application.h
ASN_MODULE_HEADERS+=asn_system.h
ASN_MODULE_HEADERS+=asn_codecs.h
ASN_MODULE_HEADERS+=asn_internal.h
ASN_MODULE_HEADERS+=OCTET_STRING.h
ASN_MODULE_SOURCES+=OCTET_STRING.c
ASN_MODULE_HEADERS+=BIT_STRING.h
ASN_MODULE_SOURCES+=BIT_STRING.c
ASN_MODULE_SOURCES+=asn_codecs_prim.c
ASN_MODULE_HEADERS+=asn_codecs_prim.h
ASN_MODULE_HEADERS+=ber_tlv_length.h
ASN_MODULE_SOURCES+=ber_tlv_length.c
ASN_MODULE_HEADERS+=ber_tlv_tag.h
ASN_MODULE_SOURCES+=ber_tlv_tag.c
ASN_MODULE_HEADERS+=ber_decoder.h
ASN_MODULE_SOURCES+=ber_decoder.c
ASN_MODULE_HEADERS+=der_encoder.h
ASN_MODULE_SOURCES+=der_encoder.c
ASN_MODULE_HEADERS+=constr_TYPE.h
ASN_MODULE_SOURCES+=constr_TYPE.c
ASN_MODULE_HEADERS+=constraints.h
ASN_MODULE_SOURCES+=constraints.c
ASN_MODULE_HEADERS+=xer_support.h
ASN_MODULE_SOURCES+=xer_support.c
ASN_MODULE_HEADERS+=xer_decoder.h
ASN_MODULE_SOURCES+=xer_decoder.c
ASN_MODULE_HEADERS+=xer_encoder.h
ASN_MODULE_SOURCES+=xer_encoder.c
ASN_MODULE_HEADERS+=per_support.h
ASN_MODULE_SOURCES+=per_support.c
ASN_MODULE_HEADERS+=per_decoder.h
ASN_MODULE_SOURCES+=per_decoder.c
ASN_MODULE_HEADERS+=per_encoder.h
ASN_MODULE_SOURCES+=per_encoder.c
ASN_MODULE_HEADERS+=per_opentype.h
ASN_MODULE_SOURCES+=per_opentype.c
ASN_CONVERTER_SOURCES+=converter-sample.c
ASN_CONVERTER_SOURCES+=pdu_collection.c
lib_LTLIBRARIES=libsomething.la
libsomething_la_SOURCES=$(ASN_MODULE_SOURCES) $(ASN_MODULE_HEADERS)
# This file may be used as an input for make(3)
# Remove the lines below to convert it into a pure .am file
TARGET = ulp-dump
CFLAGS += -DASN_CONVERTER_TITLE="OMA UserPlane Location Protocol decoder" -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE -DPDU=ULP_PDU -DASN_PDU_COLLECTION -I.
OBJS=${ASN_MODULE_SOURCES:.c=.o} ${ASN_CONVERTER_SOURCES:.c=.o}
ASN_LIBRARY=libasncodec.a
LIBS += -lm
CFLAGS += -DASN_CONVERTER_TITLE="OMA UserPlane Location Protocol decoder" -DHAVE_CONFIG_H -DJUNKTEST -D_DEFAULT_SOURCE $(ASN_MODULE_CFLAGS) -DPDU=ULP_PDU -DASN_PDU_COLLECTION -I.
ASN_CONVERTER_SOURCES := \
converter-example.c\
pdu_collection.c
all: ULP-PDU.c $(TARGET)
all: maybe-wip-pause ULP-PDU.c $(TARGET)
$(TARGET): ${OBJS}
$(CC) $(CFLAGS) -o $(TARGET) ${OBJS} $(LDFLAGS) $(LIBS)
$(TARGET): $(ASN_LIBRARY) $(ASN_CONVERTER_SOURCES:.c=.o)
$(CC) $(CFLAGS) $(CPPFLAGS) -o $(TARGET) $(ASN_CONVERTER_SOURCES:.c=.o) $(LDFLAGS) $(ASN_LIBRARY) $(LIBS)
$(ASN_LIBRARY): $(ASN_MODULE_SOURCES:.c=.o)
$(AR) rcs $@ $^
.SUFFIXES:
.SUFFIXES: .c .o
@ -249,8 +23,8 @@ $(TARGET): ${OBJS}
$(CC) $(CFLAGS) -o $@ -c $<
clean:
rm -f $(TARGET)
rm -f $(OBJS)
rm -f $(TARGET) $(ASN_LIBRARY)
rm -f $(ASN_MODULE_SOURCES:.c=.o) $(ASN_CONVERTER_SOURCES:.c=.o)
regen: regenerate-from-asn1-source
@ -269,73 +43,93 @@ regen-makefile:
ASN1MODULES="../ulp.asn1" \
ASN1PDU=ULP-PDU \
PROGNAME=ulp-dump \
CFLAGS="" \
../sample.makefile.regen
check: ${TARGET} check-ber check-xer check-per
check: ${TARGET} check-ber check-xer check-oer check-per
@echo ================
@echo All tests passed
@echo ================
check-ber:
@if test -f sample-ULP-PDU-1.[db]er ; then \
for f in sample-ULP-PDU-*.[db]er; do \
for f in sample-*-*.[db]er; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding $$f into XER and back ($$b)..."; \
./${TARGET} -b $$b -iber -oxer $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -b $$b -ixer -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
echo "Recoding $$f ($$pdu) into XER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -iber -oxer $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -p $$pdu -b $$b -ixer -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
diff ./.tmp.1.$$$$ ./.tmp.2.$$$$ || exit 4; \
rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -iber -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -b $$b -iber -onull $$f || exit 6; \
./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -iber -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -iber -onull $$f || exit 6; \
done; done; fi
check-xer:
@if test -f sample-ULP-PDU-1.xer ; then \
for f in sample-ULP-PDU-*.xer; do \
for f in sample-*-*.xer; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding $$f into DER and back ($$b)..."; \
./${TARGET} -b $$b -ixer -oder $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
echo "Recoding $$f ($$pdu) into DER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -ixer -oder $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -p $$pdu -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
diff $$f ./.tmp.2.$$$$ || exit 4; \
rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -ixer -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -b $$b -ixer -onull $$f || exit 6; \
./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -ixer -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -ixer -onull $$f || exit 6; \
done; done; fi
check-oer:
@if test -f sample-ULP-PDU-1.*oer ; then \
for f in sample-*-*.*oer; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding $$f ($$pdu) into XER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -ioer -oxer $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -p $$pdu -b $$b -ixer -ooer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
diff $$f ./.tmp.2.$$$$ || exit 4; \
rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait) ($$b) ..."; \
./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -ioer -onull $$f || exit 5; \
./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -ioer -onull $$f || exit 6; \
done; done; fi
check-per:
@if test -f sample-ULP-PDU-1-nopad.per ; then \
for f in sample-ULP-PDU-[1-9]-nopad.per; do \
for f in sample-*-[1-9]-nopad.per; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding non-padded $$f into DER into XER and back ($$b)..."; \
./${TARGET} -b $$b -per-nopad -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
./${TARGET} -b $$b -ixer -oder ./.tmp.2.$$$$ > ./.tmp.3.$$$$ || exit 4; \
echo "Recoding non-padded $$f ($$pdu) into DER into XER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -per-nopad -iper -oder $$f > ./.tmp.1.$$$$ || exit 2; \
./${TARGET} -p $$pdu -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 3; \
./${TARGET} -p $$pdu -b $$b -ixer -oder ./.tmp.2.$$$$ > ./.tmp.3.$$$$ || exit 4; \
diff ./.tmp.1.$$$$ ./.tmp.3.$$$$ || exit 5; \
rm -f ./.tmp.[123].$$$$; \
echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -per-nopad -iper -onull $$f || exit 6; \
./${TARGET} -J0.001 -n 1000 -b $$b -per-nopad -iper -onull $$f || exit 7; \
./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -per-nopad -iper -onull $$f || exit 6; \
./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -per-nopad -iper -onull $$f || exit 7; \
done; done; fi
@if test -f sample-ULP-PDU-1.per ; then \
for f in sample-*-[1-9].per; do \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z-]+)-[0-9].*/\1/"`; \
pdu=`echo $$f | sed -E -e "s/sample-([A-Za-z0-9-]+)-[0-9].*/\1/"`; \
for b in 1 17 33 980 8192; do \
echo "Recoding $$f into DER into XER and back ($$b)..."; \
./${TARGET} -b $$b -p $$pdu -iper -oder $$f > ./.tmp.1.$$$$ || exit 3; \
./${TARGET} -b $$b -p $$pdu -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 4; \
./${TARGET} -b $$b -p $$pdu -ixer -oper ./.tmp.2.$$$$ > ./.tmp.1.$$$$ || exit 5; \
echo "Recoding $$f ($$pdu) into DER into XER and back ($$b)..."; \
./${TARGET} -p $$pdu -b $$b -iper -oder $$f > ./.tmp.1.$$$$ || exit 3; \
./${TARGET} -p $$pdu -b $$b -iber -oxer ./.tmp.1.$$$$ > ./.tmp.2.$$$$ || exit 4; \
./${TARGET} -p $$pdu -b $$b -ixer -oper ./.tmp.2.$$$$ > ./.tmp.1.$$$$ || exit 5; \
diff $$f ./.tmp.1.$$$$ || exit 6; \
rm -f ./.tmp.[12].$$$$; \
echo "Test junking $$f (please wait)..."; \
./${TARGET} -J0.0001 -n 1000 -b $$b -iper -onull $$f || exit 7; \
./${TARGET} -J0.001 -n 1000 -b $$b -iper -onull $$f || exit 8; \
./${TARGET} -J0.0001 -n 1000 -p $$pdu -b $$b -iper -onull $$f || exit 7; \
./${TARGET} -J0.001 -n 1000 -p $$pdu -b $$b -iper -onull $$f || exit 8; \
done; done; fi
maybe-wip-pause:
@if [ -f WIP ]; then cat WIP; sleep 2; fi
distclean: clean
rm -f $(ASN_MODULE_SOURCES)
rm -f $(ASN_MODULE_HEADERS)
rm -f $(ASN_CONVERTER_SOURCES) $(ASN_CONVERTER_HEADERS)
rm -f Makefile.am.sample
rm -f Makefile.am.example