From e480573a5ff59ce2ae78793427e61b85dce7eef1 Mon Sep 17 00:00:00 2001 From: Maxim Mamontov Date: Tue, 26 Jul 2011 18:41:25 +0300 Subject: [PATCH] ASN.1 generated code moved to library --- .../plugins/other/smux/{asn1 => }/STG-MIB.mib | 0 .../other/smux/asn1/converter-sample.c | 725 ------------------ .../smux/asn1 => stglibs/smux.lib}/ANY.c | 0 .../smux/asn1 => stglibs/smux.lib}/ANY.h | 0 .../smux.lib}/ApplicationSyntax.c | 0 .../smux.lib}/ApplicationSyntax.h | 0 .../smux/asn1 => stglibs/smux.lib}/AtEntry.c | 0 .../smux/asn1 => stglibs/smux.lib}/AtEntry.h | 0 .../asn1 => stglibs/smux.lib}/BIT_STRING.c | 0 .../asn1 => stglibs/smux.lib}/BIT_STRING.h | 0 .../smux/asn1 => stglibs/smux.lib}/BOOLEAN.c | 0 .../smux/asn1 => stglibs/smux.lib}/BOOLEAN.h | 0 .../smux/asn1 => stglibs/smux.lib}/ClosePDU.c | 0 .../smux/asn1 => stglibs/smux.lib}/ClosePDU.h | 0 .../smux/asn1 => stglibs/smux.lib}/Counter.c | 0 .../smux/asn1 => stglibs/smux.lib}/Counter.h | 0 .../asn1 => stglibs/smux.lib}/DisplayString.c | 0 .../asn1 => stglibs/smux.lib}/DisplayString.h | 0 .../asn1 => stglibs/smux.lib}/EgpNeighEntry.c | 0 .../asn1 => stglibs/smux.lib}/EgpNeighEntry.h | 0 .../smux/asn1 => stglibs/smux.lib}/Gauge.c | 0 .../smux/asn1 => stglibs/smux.lib}/Gauge.h | 0 .../smux.lib}/GetNextRequest-PDU.c | 0 .../smux.lib}/GetNextRequest-PDU.h | 0 .../smux.lib}/GetRequest-PDU.c | 0 .../smux.lib}/GetRequest-PDU.h | 0 .../smux.lib}/GetResponse-PDU.c | 0 .../smux.lib}/GetResponse-PDU.h | 0 .../smux/asn1 => stglibs/smux.lib}/INTEGER.c | 0 .../smux/asn1 => stglibs/smux.lib}/INTEGER.h | 0 .../smux/asn1 => stglibs/smux.lib}/IfEntry.c | 0 .../smux/asn1 => stglibs/smux.lib}/IfEntry.h | 0 .../asn1 => stglibs/smux.lib}/IpAddrEntry.c | 0 .../asn1 => stglibs/smux.lib}/IpAddrEntry.h | 0 .../asn1 => stglibs/smux.lib}/IpAddress.c | 0 .../asn1 => stglibs/smux.lib}/IpAddress.h | 0 .../smux.lib}/IpNetToMediaEntry.c | 0 .../smux.lib}/IpNetToMediaEntry.h | 0 .../asn1 => stglibs/smux.lib}/IpRouteEntry.c | 0 .../asn1 => stglibs/smux.lib}/IpRouteEntry.h | 0 .../smux/asn1 => stglibs/smux.lib}/Message.c | 0 .../smux/asn1 => stglibs/smux.lib}/Message.h | 0 .../smux/asn1 => stglibs/smux.lib}/NULL.c | 0 .../smux/asn1 => stglibs/smux.lib}/NULL.h | 0 .../smux.lib}/NativeEnumerated.c | 0 .../smux.lib}/NativeEnumerated.h | 0 .../asn1 => stglibs/smux.lib}/NativeInteger.c | 0 .../asn1 => stglibs/smux.lib}/NativeInteger.h | 0 .../smux.lib}/NetworkAddress.c | 0 .../smux.lib}/NetworkAddress.h | 0 .../smux.lib}/OBJECT_IDENTIFIER.c | 0 .../smux.lib}/OBJECT_IDENTIFIER.h | 0 .../asn1 => stglibs/smux.lib}/OCTET_STRING.c | 0 .../asn1 => stglibs/smux.lib}/OCTET_STRING.h | 0 .../asn1 => stglibs/smux.lib}/ObjectName.c | 0 .../asn1 => stglibs/smux.lib}/ObjectName.h | 0 .../asn1 => stglibs/smux.lib}/ObjectSyntax.c | 0 .../asn1 => stglibs/smux.lib}/ObjectSyntax.h | 0 .../smux/asn1 => stglibs/smux.lib}/Opaque.c | 0 .../smux/asn1 => stglibs/smux.lib}/Opaque.h | 0 .../smux/asn1 => stglibs/smux.lib}/OpenPDU.c | 0 .../smux/asn1 => stglibs/smux.lib}/OpenPDU.h | 0 .../smux/asn1 => stglibs/smux.lib}/PDU.c | 0 .../smux/asn1 => stglibs/smux.lib}/PDU.h | 0 .../smux/asn1 => stglibs/smux.lib}/PDUs.c | 0 .../smux/asn1 => stglibs/smux.lib}/PDUs.h | 0 .../asn1 => stglibs/smux.lib}/PhysAddress.c | 0 .../asn1 => stglibs/smux.lib}/PhysAddress.h | 0 .../smux/asn1 => stglibs/smux.lib}/RReqPDU.c | 0 .../smux/asn1 => stglibs/smux.lib}/RReqPDU.h | 0 .../smux/asn1 => stglibs/smux.lib}/RRspPDU.c | 0 .../smux/asn1 => stglibs/smux.lib}/RRspPDU.h | 0 .../asn1 => stglibs/smux.lib}/SMUX-PDUs.c | 0 .../asn1 => stglibs/smux.lib}/SMUX-PDUs.h | 0 .../smux/asn1 => stglibs/smux.lib}/SOutPDU.c | 0 .../smux/asn1 => stglibs/smux.lib}/SOutPDU.h | 0 .../smux.lib}/SetRequest-PDU.c | 0 .../smux.lib}/SetRequest-PDU.h | 0 .../asn1 => stglibs/smux.lib}/SimpleOpen.c | 0 .../asn1 => stglibs/smux.lib}/SimpleOpen.h | 0 .../asn1 => stglibs/smux.lib}/SimpleSyntax.c | 0 .../asn1 => stglibs/smux.lib}/SimpleSyntax.h | 0 .../asn1 => stglibs/smux.lib}/TcpConnEntry.c | 0 .../asn1 => stglibs/smux.lib}/TcpConnEntry.h | 0 .../asn1 => stglibs/smux.lib}/TimeTicks.c | 0 .../asn1 => stglibs/smux.lib}/TimeTicks.h | 0 .../smux/asn1 => stglibs/smux.lib}/Trap-PDU.c | 0 .../smux/asn1 => stglibs/smux.lib}/Trap-PDU.h | 0 .../smux/asn1 => stglibs/smux.lib}/UdpEntry.c | 0 .../smux/asn1 => stglibs/smux.lib}/UdpEntry.h | 0 .../smux/asn1 => stglibs/smux.lib}/VarBind.c | 0 .../smux/asn1 => stglibs/smux.lib}/VarBind.h | 0 .../asn1 => stglibs/smux.lib}/VarBindList.c | 0 .../asn1 => stglibs/smux.lib}/VarBindList.h | 0 .../smux.lib}/asn_SEQUENCE_OF.c | 0 .../smux.lib}/asn_SEQUENCE_OF.h | 0 .../asn1 => stglibs/smux.lib}/asn_SET_OF.c | 0 .../asn1 => stglibs/smux.lib}/asn_SET_OF.h | 0 .../smux.lib}/asn_application.h | 0 .../asn1 => stglibs/smux.lib}/asn_codecs.h | 0 .../smux.lib}/asn_codecs_prim.c | 0 .../smux.lib}/asn_codecs_prim.h | 0 .../asn1 => stglibs/smux.lib}/asn_internal.h | 0 .../asn1 => stglibs/smux.lib}/asn_system.h | 0 .../asn1 => stglibs/smux.lib}/ber_decoder.c | 0 .../asn1 => stglibs/smux.lib}/ber_decoder.h | 0 .../smux.lib}/ber_tlv_length.c | 0 .../smux.lib}/ber_tlv_length.h | 0 .../asn1 => stglibs/smux.lib}/ber_tlv_tag.c | 0 .../asn1 => stglibs/smux.lib}/ber_tlv_tag.h | 0 .../asn1 => stglibs/smux.lib}/constr_CHOICE.c | 0 .../asn1 => stglibs/smux.lib}/constr_CHOICE.h | 0 .../smux.lib}/constr_SEQUENCE.c | 0 .../smux.lib}/constr_SEQUENCE.h | 0 .../smux.lib}/constr_SEQUENCE_OF.c | 0 .../smux.lib}/constr_SEQUENCE_OF.h | 0 .../asn1 => stglibs/smux.lib}/constr_SET_OF.c | 0 .../asn1 => stglibs/smux.lib}/constr_SET_OF.h | 0 .../asn1 => stglibs/smux.lib}/constr_TYPE.c | 0 .../asn1 => stglibs/smux.lib}/constr_TYPE.h | 0 .../asn1 => stglibs/smux.lib}/constraints.c | 0 .../asn1 => stglibs/smux.lib}/constraints.h | 0 .../asn1 => stglibs/smux.lib}/der_encoder.c | 0 .../asn1 => stglibs/smux.lib}/der_encoder.h | 0 .../asn1 => stglibs/smux.lib}/per_decoder.c | 0 .../asn1 => stglibs/smux.lib}/per_decoder.h | 0 .../asn1 => stglibs/smux.lib}/per_encoder.c | 0 .../asn1 => stglibs/smux.lib}/per_encoder.h | 0 .../asn1 => stglibs/smux.lib}/per_support.c | 0 .../asn1 => stglibs/smux.lib}/per_support.h | 0 .../asn1 => stglibs/smux.lib}/xer_decoder.c | 0 .../asn1 => stglibs/smux.lib}/xer_decoder.h | 0 .../asn1 => stglibs/smux.lib}/xer_encoder.c | 0 .../asn1 => stglibs/smux.lib}/xer_encoder.h | 0 .../asn1 => stglibs/smux.lib}/xer_support.c | 0 .../asn1 => stglibs/smux.lib}/xer_support.h | 0 136 files changed, 725 deletions(-) rename projects/stargazer/plugins/other/smux/{asn1 => }/STG-MIB.mib (100%) delete mode 100644 projects/stargazer/plugins/other/smux/asn1/converter-sample.c rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/ANY.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/ANY.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/ApplicationSyntax.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/ApplicationSyntax.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/AtEntry.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/AtEntry.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/BIT_STRING.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/BIT_STRING.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/BOOLEAN.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/BOOLEAN.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/ClosePDU.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/ClosePDU.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/Counter.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/Counter.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/DisplayString.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/DisplayString.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/EgpNeighEntry.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/EgpNeighEntry.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/Gauge.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/Gauge.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/GetNextRequest-PDU.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/GetNextRequest-PDU.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/GetRequest-PDU.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/GetRequest-PDU.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/GetResponse-PDU.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/GetResponse-PDU.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/INTEGER.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/INTEGER.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/IfEntry.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/IfEntry.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/IpAddrEntry.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/IpAddrEntry.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/IpAddress.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/IpAddress.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/IpNetToMediaEntry.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/IpNetToMediaEntry.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/IpRouteEntry.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/IpRouteEntry.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/Message.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/Message.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/NULL.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/NULL.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/NativeEnumerated.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/NativeEnumerated.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/NativeInteger.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/NativeInteger.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/NetworkAddress.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/NetworkAddress.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/OBJECT_IDENTIFIER.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/OBJECT_IDENTIFIER.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/OCTET_STRING.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/OCTET_STRING.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/ObjectName.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/ObjectName.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/ObjectSyntax.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/ObjectSyntax.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/Opaque.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/Opaque.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/OpenPDU.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/OpenPDU.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/PDU.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/PDU.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/PDUs.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/PDUs.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/PhysAddress.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/PhysAddress.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/RReqPDU.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/RReqPDU.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/RRspPDU.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/RRspPDU.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/SMUX-PDUs.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/SMUX-PDUs.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/SOutPDU.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/SOutPDU.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/SetRequest-PDU.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/SetRequest-PDU.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/SimpleOpen.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/SimpleOpen.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/SimpleSyntax.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/SimpleSyntax.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/TcpConnEntry.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/TcpConnEntry.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/TimeTicks.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/TimeTicks.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/Trap-PDU.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/Trap-PDU.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/UdpEntry.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/UdpEntry.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/VarBind.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/VarBind.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/VarBindList.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/VarBindList.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/asn_SEQUENCE_OF.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/asn_SEQUENCE_OF.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/asn_SET_OF.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/asn_SET_OF.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/asn_application.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/asn_codecs.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/asn_codecs_prim.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/asn_codecs_prim.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/asn_internal.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/asn_system.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/ber_decoder.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/ber_decoder.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/ber_tlv_length.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/ber_tlv_length.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/ber_tlv_tag.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/ber_tlv_tag.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/constr_CHOICE.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/constr_CHOICE.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/constr_SEQUENCE.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/constr_SEQUENCE.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/constr_SEQUENCE_OF.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/constr_SEQUENCE_OF.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/constr_SET_OF.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/constr_SET_OF.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/constr_TYPE.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/constr_TYPE.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/constraints.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/constraints.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/der_encoder.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/der_encoder.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/per_decoder.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/per_decoder.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/per_encoder.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/per_encoder.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/per_support.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/per_support.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/xer_decoder.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/xer_decoder.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/xer_encoder.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/xer_encoder.h (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/xer_support.c (100%) rename {projects/stargazer/plugins/other/smux/asn1 => stglibs/smux.lib}/xer_support.h (100%) diff --git a/projects/stargazer/plugins/other/smux/asn1/STG-MIB.mib b/projects/stargazer/plugins/other/smux/STG-MIB.mib similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/STG-MIB.mib rename to projects/stargazer/plugins/other/smux/STG-MIB.mib diff --git a/projects/stargazer/plugins/other/smux/asn1/converter-sample.c b/projects/stargazer/plugins/other/smux/asn1/converter-sample.c deleted file mode 100644 index 6317d8a5..00000000 --- a/projects/stargazer/plugins/other/smux/asn1/converter-sample.c +++ /dev/null @@ -1,725 +0,0 @@ -/* - * Generic converter template for a selected ASN.1 type. - * Copyright (c) 2005, 2006 Lev Walkin . All rights reserved. - * - * To compile with your own ASN.1 type, please redefine the PDU as shown: - * - * cc -DPDU=MyCustomType -o myDecoder.o -c converter-sample.c - */ -#ifdef HAVE_CONFIG_H -#include -#endif -#include -#include -#include /* for atoi(3) */ -#include /* for getopt(3) */ -#include /* for strerror(3) */ -#include /* for EX_* exit codes */ -#include /* for assert(3) */ -#include /* for errno */ - -#include -#include /* for _ASN_DEFAULT_STACK_MAX */ - -/* Convert "Type" defined by -DPDU into "asn_DEF_Type" */ -#define ASN_DEF_PDU(t) asn_DEF_ ## t -#define DEF_PDU_Type(t) ASN_DEF_PDU(t) -#define PDU_Type DEF_PDU_Type(PDU) - -extern asn_TYPE_descriptor_t PDU_Type; /* ASN.1 type to be decoded */ -#ifdef ASN_PDU_COLLECTION /* Generated by asn1c: -pdu=... */ -extern asn_TYPE_descriptor_t *asn_pdu_collection[]; -#endif - -/* - * Open file and parse its contens. - */ -static void *data_decode_from_file(asn_TYPE_descriptor_t *asnTypeOfPDU, - FILE *file, const char *name, ssize_t suggested_bufsize, int first_pdu); -static int write_out(const void *buffer, size_t size, void *key); -static FILE *argument_to_file(char *av[], int idx); -static char *argument_to_name(char *av[], int idx); - - int opt_debug; /* -d (or -dd) */ -static int opt_check; /* -c (constraints checking) */ -static int opt_stack; /* -s (maximum stack size) */ -static int opt_ippad; /* -per-padded (PER input is byte-padded) */ -static int opt_onepdu; /* -1 (decode single PDU) */ - -/* Input data format selector */ -static enum input_format { - INP_BER, /* -iber: BER input */ - INP_XER, /* -ixer: XER input */ - INP_PER /* -iper: Unaligned PER input */ -} iform; /* -i */ - -/* Output data format selector */ -static enum output_format { - OUT_XER, /* -oxer: XER (XML) output */ - OUT_DER, /* -oder: DER (BER) output */ - OUT_PER, /* -oper: Unaligned PER output */ - OUT_TEXT, /* -otext: semi-structured text */ - OUT_NULL /* -onull: No pretty-printing */ -} oform; /* -o */ - -/* Debug output function */ -static inline void -DEBUG(const char *fmt, ...) { - va_list ap; - if(!opt_debug) return; - fprintf(stderr, "AD: "); - va_start(ap, fmt); - vfprintf(stderr, fmt, ap); - va_end(ap); - fprintf(stderr, "\n"); -} - -int -main(int ac, char *av[]) { - static asn_TYPE_descriptor_t *pduType = &PDU_Type; - ssize_t suggested_bufsize = 8192; /* close or equal to stdio buffer */ - int number_of_iterations = 1; - int num; - int ch; - - /* Figure out if Unaligned PER needs to be default */ - if(pduType->uper_decoder) - iform = INP_PER; - - /* - * Pocess the command-line argments. - */ - while((ch = getopt(ac, av, "i:o:1b:cdn:p:hs:")) != -1) - switch(ch) { - case 'i': - if(optarg[0] == 'b') { iform = INP_BER; break; } - if(optarg[0] == 'x') { iform = INP_XER; break; } - if(pduType->uper_decoder - && optarg[0] == 'p') { iform = INP_PER; break; } - fprintf(stderr, "-i: '%s': improper format selector\n", - optarg); - exit(EX_UNAVAILABLE); - case 'o': - if(optarg[0] == 'd') { oform = OUT_DER; break; } - if(pduType->uper_encoder - && optarg[0] == 'p') { oform = OUT_PER; break; } - if(optarg[0] == 'x') { oform = OUT_XER; break; } - if(optarg[0] == 't') { oform = OUT_TEXT; break; } - if(optarg[0] == 'n') { oform = OUT_NULL; break; } - fprintf(stderr, "-o: '%s': improper format selector\n", - optarg); - exit(EX_UNAVAILABLE); - case '1': - opt_onepdu = 1; - break; - case 'b': - suggested_bufsize = atoi(optarg); - if(suggested_bufsize < 1 - || suggested_bufsize > 16 * 1024 * 1024) { - fprintf(stderr, - "-b %s: Improper buffer size (1..16M)\n", - optarg); - exit(EX_UNAVAILABLE); - } - break; - case 'c': - opt_check = 1; - break; - case 'd': - opt_debug++; /* Double -dd means ASN.1 debug */ - break; - case 'n': - number_of_iterations = atoi(optarg); - if(number_of_iterations < 1) { - fprintf(stderr, - "-n %s: Improper iterations count\n", optarg); - exit(EX_UNAVAILABLE); - } - break; - case 'p': - if(strcmp(optarg, "er-padded") == 0) { - opt_ippad = 1; - break; - } -#ifdef ASN_PDU_COLLECTION - if(strcmp(optarg, "list") == 0) { - asn_TYPE_descriptor_t **pdu = asn_pdu_collection; - fprintf(stderr, "Available PDU types:\n"); - for(; *pdu; pdu++) printf("%s\n", (*pdu)->name); - exit(0); - } else if(optarg[0] >= 'A' && optarg[0] <= 'Z') { - asn_TYPE_descriptor_t **pdu = asn_pdu_collection; - while(*pdu && strcmp((*pdu)->name, optarg)) pdu++; - if(*pdu) { pduType = *pdu; break; } - fprintf(stderr, "-p %s: Unrecognized PDU\n", optarg); - } -#endif /* ASN_PDU_COLLECTION */ - fprintf(stderr, "-p %s: Unrecognized option\n", optarg); - exit(EX_UNAVAILABLE); - case 's': - opt_stack = atoi(optarg); - if(opt_stack < 0) { - fprintf(stderr, - "-s %s: Non-negative value expected\n", - optarg); - exit(EX_UNAVAILABLE); - } - break; - case 'h': - default: - fprintf(stderr, "Usage: %s [options] ...\n", av[0]); - fprintf(stderr, "Where options are:\n"); - if(pduType->uper_decoder) - fprintf(stderr, - " -iper Input is in Unaligned PER (Packed Encoding Rules) (DEFAULT)\n"); - fprintf(stderr, - " -iber Input is in BER (Basic Encoding Rules)%s\n", - iform == INP_PER ? "" : " (DEFAULT)"); - fprintf(stderr, - " -ixer Input is in XER (XML Encoding Rules)\n"); - if(pduType->uper_encoder) - fprintf(stderr, - " -oper Output in Unaligned PER (Packed Encoding Rules)\n"); - fprintf(stderr, - " -oder Output in DER (Distinguished Encoding Rules)\n" - " -oxer Output in XER (XML Encoding Rules) (DEFAULT)\n" - " -otext Output in plain semi-structured text (dump)\n" - " -onull Verify (decode) input, but do not output\n"); - if(pduType->uper_decoder) - fprintf(stderr, - " -per-padded Assume PER PDUs are byte-padded (-iper)\n"); -#ifdef ASN_PDU_COLLECTION - fprintf(stderr, - " -p Specify PDU type to decode\n" - " -p list List available PDUs\n"); -#endif /* ASN_PDU_COLLECTION */ - fprintf(stderr, - " -1 Decode only the first PDU in file\n" - " -b Set the i/o buffer size (default is %ld)\n" - " -c Check ASN.1 constraints after decoding\n" - " -d Enable debugging (-dd is even better)\n" - " -n Process files times\n" - " -s Set the stack usage limit (default is %d)\n" - , (long)suggested_bufsize, _ASN_DEFAULT_STACK_MAX); - exit(EX_USAGE); - } - - ac -= optind; - av += optind; - - if(ac < 1) { - fprintf(stderr, "%s: No input files specified. " - "Try '-h' for more information\n", - av[-optind]); - exit(EX_USAGE); - } - - setvbuf(stdout, 0, _IOLBF, 0); - - for(num = 0; num < number_of_iterations; num++) { - int ac_i; - /* - * Process all files in turn. - */ - for(ac_i = 0; ac_i < ac; ac_i++) { - asn_enc_rval_t erv; - void *structure; /* Decoded structure */ - FILE *file = argument_to_file(av, ac_i); - char *name = argument_to_name(av, ac_i); - int first_pdu; - - for(first_pdu = 1; first_pdu || !opt_onepdu; first_pdu = 0) { - /* - * Decode the encoded structure from file. - */ - structure = data_decode_from_file(pduType, - file, name, suggested_bufsize, first_pdu); - if(!structure) { - if(errno) { - /* Error message is already printed */ - exit(EX_DATAERR); - } else { - /* EOF */ - break; - } - } - - /* Check ASN.1 constraints */ - if(opt_check) { - char errbuf[128]; - size_t errlen = sizeof(errbuf); - if(asn_check_constraints(pduType, structure, - errbuf, &errlen)) { - fprintf(stderr, "%s: ASN.1 constraint " - "check failed: %s\n", name, errbuf); - exit(EX_DATAERR); - } - } - - switch(oform) { - case OUT_NULL: - fprintf(stderr, "%s: decoded successfully\n", name); - break; - case OUT_TEXT: /* -otext */ - asn_fprint(stdout, pduType, structure); - break; - case OUT_XER: /* -oxer */ - if(xer_fprint(stdout, pduType, structure)) { - fprintf(stderr, - "%s: Cannot convert %s into XML\n", - name, pduType->name); - exit(EX_UNAVAILABLE); - } - break; - case OUT_DER: - erv = der_encode(pduType, structure, write_out, stdout); - if(erv.encoded < 0) { - fprintf(stderr, - "%s: Cannot convert %s into DER\n", - name, pduType->name); - exit(EX_UNAVAILABLE); - } - DEBUG("Encoded in %ld bytes of DER", (long)erv.encoded); - break; - case OUT_PER: - erv = uper_encode(pduType, structure, write_out, stdout); - if(erv.encoded < 0) { - fprintf(stderr, - "%s: Cannot convert %s into Unaligned PER\n", - name, pduType->name); - exit(EX_UNAVAILABLE); - } - DEBUG("Encoded in %ld bits of UPER", (long)erv.encoded); - break; - } - - ASN_STRUCT_FREE(*pduType, structure); - } - - if(file && file != stdin) - fclose(file); - } - } - - return 0; -} - -static struct dynamic_buffer { - uint8_t *data; /* Pointer to the data bytes */ - size_t offset; /* Offset from the start */ - size_t length; /* Length of meaningful contents */ - size_t unbits; /* Unused bits in the last byte */ - size_t allocated; /* Allocated memory for data */ - int nreallocs; /* Number of data reallocations */ - off_t bytes_shifted; /* Number of bytes ever shifted */ -} DynamicBuffer; - -static void -buffer_dump() { - uint8_t *p = DynamicBuffer.data + DynamicBuffer.offset; - uint8_t *e = p + DynamicBuffer.length - (DynamicBuffer.unbits ? 1 : 0); - if(!opt_debug) return; - DEBUG("Buffer: { d=%p, o=%ld, l=%ld, u=%ld, a=%ld, s=%ld }", - DynamicBuffer.data, - (long)DynamicBuffer.offset, - (long)DynamicBuffer.length, - (long)DynamicBuffer.unbits, - (long)DynamicBuffer.allocated, - (long)DynamicBuffer.bytes_shifted); - for(; p < e; p++) { - fprintf(stderr, " %c%c%c%c%c%c%c%c", - ((*p >> 7) & 1) ? '1' : '0', - ((*p >> 6) & 1) ? '1' : '0', - ((*p >> 5) & 1) ? '1' : '0', - ((*p >> 4) & 1) ? '1' : '0', - ((*p >> 3) & 1) ? '1' : '0', - ((*p >> 2) & 1) ? '1' : '0', - ((*p >> 1) & 1) ? '1' : '0', - ((*p >> 0) & 1) ? '1' : '0'); - } - if(DynamicBuffer.unbits) { - int shift; - fprintf(stderr, " "); - for(shift = 7; shift >= DynamicBuffer.unbits; shift--) - fprintf(stderr, "%c", ((*p >> shift) & 1) ? '1' : '0'); - fprintf(stderr, " %d:%d\n", - DynamicBuffer.length - 1, 8 - DynamicBuffer.unbits); - } else { - fprintf(stderr, " %d\n", DynamicBuffer.length); - } -} - -/* - * Move the buffer content left N bits, possibly joining it with - * preceeding content. - */ -static void -buffer_shift_left(size_t offset, int bits) { - uint8_t *ptr = DynamicBuffer.data + DynamicBuffer.offset + offset; - uint8_t *end = DynamicBuffer.data + DynamicBuffer.offset - + DynamicBuffer.length - 1; - - if(!bits) return; - - DEBUG("Shifting left %d bits off %ld (o=%ld, u=%ld, l=%ld)", - bits, (long)offset, - (long)DynamicBuffer.offset, - (long)DynamicBuffer.unbits, - (long)DynamicBuffer.length); - - if(offset) { - int right; - right = ptr[0] >> (8 - bits); - - DEBUG("oleft: %c%c%c%c%c%c%c%c", - ((ptr[-1] >> 7) & 1) ? '1' : '0', - ((ptr[-1] >> 6) & 1) ? '1' : '0', - ((ptr[-1] >> 5) & 1) ? '1' : '0', - ((ptr[-1] >> 4) & 1) ? '1' : '0', - ((ptr[-1] >> 3) & 1) ? '1' : '0', - ((ptr[-1] >> 2) & 1) ? '1' : '0', - ((ptr[-1] >> 1) & 1) ? '1' : '0', - ((ptr[-1] >> 0) & 1) ? '1' : '0'); - - DEBUG("oriht: %c%c%c%c%c%c%c%c", - ((ptr[0] >> 7) & 1) ? '1' : '0', - ((ptr[0] >> 6) & 1) ? '1' : '0', - ((ptr[0] >> 5) & 1) ? '1' : '0', - ((ptr[0] >> 4) & 1) ? '1' : '0', - ((ptr[0] >> 3) & 1) ? '1' : '0', - ((ptr[0] >> 2) & 1) ? '1' : '0', - ((ptr[0] >> 1) & 1) ? '1' : '0', - ((ptr[0] >> 0) & 1) ? '1' : '0'); - - DEBUG("mriht: %c%c%c%c%c%c%c%c", - ((right >> 7) & 1) ? '1' : '0', - ((right >> 6) & 1) ? '1' : '0', - ((right >> 5) & 1) ? '1' : '0', - ((right >> 4) & 1) ? '1' : '0', - ((right >> 3) & 1) ? '1' : '0', - ((right >> 2) & 1) ? '1' : '0', - ((right >> 1) & 1) ? '1' : '0', - ((right >> 0) & 1) ? '1' : '0'); - - ptr[-1] = (ptr[-1] & (0xff << bits)) | right; - - DEBUG("after: %c%c%c%c%c%c%c%c", - ((ptr[-1] >> 7) & 1) ? '1' : '0', - ((ptr[-1] >> 6) & 1) ? '1' : '0', - ((ptr[-1] >> 5) & 1) ? '1' : '0', - ((ptr[-1] >> 4) & 1) ? '1' : '0', - ((ptr[-1] >> 3) & 1) ? '1' : '0', - ((ptr[-1] >> 2) & 1) ? '1' : '0', - ((ptr[-1] >> 1) & 1) ? '1' : '0', - ((ptr[-1] >> 0) & 1) ? '1' : '0'); - } - - buffer_dump(); - - for(; ptr < end; ptr++) { - int right = ptr[1] >> (8 - bits); - *ptr = (*ptr << bits) | right; - } - *ptr <<= bits; - - DEBUG("Unbits [%d=>", (int)DynamicBuffer.unbits); - if(DynamicBuffer.unbits == 0) { - DynamicBuffer.unbits += bits; - } else { - DynamicBuffer.unbits += bits; - if(DynamicBuffer.unbits > 7) { - DynamicBuffer.unbits -= 8; - DynamicBuffer.length--; - DynamicBuffer.bytes_shifted++; - } - } - DEBUG("Unbits =>%d]", (int)DynamicBuffer.unbits); - - buffer_dump(); - - DEBUG("Shifted. Now (o=%ld, u=%ld l=%ld)", - (long)DynamicBuffer.offset, - (long)DynamicBuffer.unbits, - (long)DynamicBuffer.length); - - -} - -/* - * Ensure that the buffer contains at least this amount of free space. - */ -static void add_bytes_to_buffer(const void *data2add, size_t bytes) { - - if(bytes == 0) return; - - DEBUG("=> add_bytes(%ld) { o=%ld l=%ld u=%ld, s=%ld }", - (long)bytes, - (long)DynamicBuffer.offset, - (long)DynamicBuffer.length, - (long)DynamicBuffer.unbits, - (long)DynamicBuffer.allocated); - - if(DynamicBuffer.allocated - >= (DynamicBuffer.offset + DynamicBuffer.length + bytes)) { - DEBUG("\tNo buffer reallocation is necessary"); - } else if(bytes <= DynamicBuffer.offset) { - DEBUG("\tContents shifted by %ld", DynamicBuffer.offset); - - /* Shift the buffer contents */ - memmove(DynamicBuffer.data, - DynamicBuffer.data + DynamicBuffer.offset, - DynamicBuffer.length); - DynamicBuffer.bytes_shifted += DynamicBuffer.offset; - DynamicBuffer.offset = 0; - } else { - size_t newsize = (DynamicBuffer.allocated << 2) + bytes; - void *p = MALLOC(newsize); - if(!p) { - perror("malloc()"); - exit(EX_OSERR); - } - memcpy(p, - DynamicBuffer.data + DynamicBuffer.offset, - DynamicBuffer.length); - FREEMEM(DynamicBuffer.data); - DynamicBuffer.data = (char *)p; - DynamicBuffer.offset = 0; - DynamicBuffer.allocated = newsize; - DynamicBuffer.nreallocs++; - DEBUG("\tBuffer reallocated to %ld (%d time)", - newsize, DynamicBuffer.nreallocs); - } - - memcpy(DynamicBuffer.data - + DynamicBuffer.offset + DynamicBuffer.length, - data2add, bytes); - DynamicBuffer.length += bytes; - if(DynamicBuffer.unbits) { - int bits = DynamicBuffer.unbits; - DynamicBuffer.unbits = 0; - buffer_shift_left(DynamicBuffer.length - bytes, bits); - } - - DEBUG("<= add_bytes(%ld) { o=%ld l=%ld u=%ld, s=%ld }", - (long)bytes, - (long)DynamicBuffer.offset, - (long)DynamicBuffer.length, - (long)DynamicBuffer.unbits, - (long)DynamicBuffer.allocated); -} - -static void * -data_decode_from_file(asn_TYPE_descriptor_t *pduType, FILE *file, const char *name, ssize_t suggested_bufsize, int on_first_pdu) { - static uint8_t *fbuf; - static ssize_t fbuf_size; - static asn_codec_ctx_t s_codec_ctx; - asn_codec_ctx_t *opt_codec_ctx = 0; - void *structure = 0; - asn_dec_rval_t rval; - size_t old_offset; - size_t new_offset; - int tolerate_eof; - size_t rd; - - if(!file) { - fprintf(stderr, "%s: %s\n", name, strerror(errno)); - errno = EINVAL; - return 0; - } - - if(opt_stack) { - s_codec_ctx.max_stack_size = opt_stack; - opt_codec_ctx = &s_codec_ctx; - } - - DEBUG("Processing %s", name); - - /* prepare the file buffer */ - if(fbuf_size != suggested_bufsize) { - fbuf = (char *)REALLOC(fbuf, suggested_bufsize); - if(!fbuf) { - perror("realloc()"); - exit(EX_OSERR); - } - fbuf_size = suggested_bufsize; - } - - if(on_first_pdu) { - DynamicBuffer.offset = 0; - DynamicBuffer.length = 0; - DynamicBuffer.unbits = 0; - DynamicBuffer.allocated = 0; - DynamicBuffer.bytes_shifted = 0; - DynamicBuffer.nreallocs = 0; - } - - old_offset = DynamicBuffer.bytes_shifted + DynamicBuffer.offset; - - /* Pretend immediate EOF */ - rval.code = RC_WMORE; - rval.consumed = 0; - - for(tolerate_eof = 1; /* Allow EOF first time buffer is non-empty */ - (rd = fread(fbuf, 1, fbuf_size, file)) - || feof(file) == 0 - || (tolerate_eof && DynamicBuffer.length) - ;) { - int ecbits = 0; /* Extra consumed bits in case of PER */ - char *i_bptr; - size_t i_size; - - /* - * Copy the data over, or use the original buffer. - */ - if(DynamicBuffer.allocated) { - /* Append new data into the existing dynamic buffer */ - add_bytes_to_buffer(fbuf, rd); - i_bptr = DynamicBuffer.data + DynamicBuffer.offset; - i_size = DynamicBuffer.length; - } else { - i_bptr = fbuf; - i_size = rd; - } - - DEBUG("Decoding %ld bytes", (long)i_size); - - switch(iform) { - case INP_BER: - rval = ber_decode(opt_codec_ctx, pduType, - (void **)&structure, i_bptr, i_size); - break; - case INP_XER: - rval = xer_decode(opt_codec_ctx, pduType, - (void **)&structure, i_bptr, i_size); - break; - case INP_PER: - rval = uper_decode(opt_codec_ctx, pduType, - (void **)&structure, i_bptr, i_size, 0, - DynamicBuffer.unbits); - ecbits = rval.consumed % 8; /* Extra bits */ - rval.consumed /= 8; /* Convert to value in bytes! */ - /* Check if input is byte-padded at the end */ - if(opt_ippad && ecbits && rval.code == RC_OK) { - rval.consumed++; - ecbits = 0; - } - break; - } - DEBUG("decode(%ld) consumed %ld+%db (%ld), code %d", - (long)DynamicBuffer.length, - (long)rval.consumed, ecbits, (long)i_size, - rval.code); - - if(DynamicBuffer.allocated == 0) { - /* - * Flush remainder into the intermediate buffer. - */ - if(rval.code != RC_FAIL && rval.consumed < rd) { - add_bytes_to_buffer(fbuf + rval.consumed, - rd - rval.consumed); - buffer_shift_left(0, ecbits); - DynamicBuffer.bytes_shifted = rval.consumed; - rval.consumed = 0; - ecbits = 0; - } - } - - /* - * Adjust position inside the source buffer. - */ - if(DynamicBuffer.allocated) { - DynamicBuffer.offset += rval.consumed; - DynamicBuffer.length -= rval.consumed; - } else { - DynamicBuffer.bytes_shifted += rval.consumed; - } - - switch(rval.code) { - case RC_OK: - if(ecbits) buffer_shift_left(0, ecbits); - DEBUG("RC_OK, finishing up with %ld+%d", - (long)rval.consumed, ecbits); - return structure; - case RC_WMORE: - DEBUG("RC_WMORE, continuing read=%ld, cons=%ld " - " with %ld..%ld-%ld..%ld", - (long)rd, - (long)rval.consumed, - (long)DynamicBuffer.offset, - (long)DynamicBuffer.length, - (long)DynamicBuffer.unbits, - (long)DynamicBuffer.allocated); - if(!rd) tolerate_eof--; - continue; - case RC_FAIL: - break; - } - break; - } - - /* Clean up partially decoded structure */ - ASN_STRUCT_FREE(*pduType, structure); - - new_offset = DynamicBuffer.bytes_shifted + DynamicBuffer.offset; - - /* - * Print a message and return failure only if not EOF, - * unless this is our first PDU (empty file). - */ - if(on_first_pdu - || DynamicBuffer.length - || new_offset - old_offset > ((iform == INP_XER)?sizeof("\r\n")-1:0) - ) { - DEBUG("ofp %d, no=%ld, oo=%ld, dbl=%ld", - on_first_pdu, (long)new_offset, (long)old_offset, - (long)DynamicBuffer.length); - fprintf(stderr, "%s: " - "Decode failed past byte %ld: %s\n", - name, (long)new_offset, - (rval.code == RC_WMORE) - ? "Unexpected end of input" - : "Input processing error"); -#ifndef ENOMSG -#define ENOMSG EINVAL -#endif -#ifndef EBADMSG -#define EBADMSG EINVAL -#endif - errno = (rval.code == RC_WMORE) ? ENOMSG : EBADMSG; - } else { - /* Got EOF after a few successful PDUs */ - errno = 0; - } - - return 0; -} - -/* Dump the buffer out to the specified FILE */ -static int write_out(const void *buffer, size_t size, void *key) { - FILE *fp = (FILE *)key; - return (fwrite(buffer, 1, size, fp) == size) ? 0 : -1; -} - -static int argument_is_stdin(char *av[], int idx) { - if(strcmp(av[idx], "-")) { - return 0; /* Certainly not */ - } else { - /* This might be , unless `./program -- -` */ - if(strcmp(av[-1], "--")) - return 1; - else - return 0; - } -} - -static FILE *argument_to_file(char *av[], int idx) { - return argument_is_stdin(av, idx) - ? stdin - : fopen(av[idx], "r"); -} - -static char *argument_to_name(char *av[], int idx) { - return argument_is_stdin(av, idx) - ? "standard input" - : av[idx]; -} diff --git a/projects/stargazer/plugins/other/smux/asn1/ANY.c b/stglibs/smux.lib/ANY.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/ANY.c rename to stglibs/smux.lib/ANY.c diff --git a/projects/stargazer/plugins/other/smux/asn1/ANY.h b/stglibs/smux.lib/ANY.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/ANY.h rename to stglibs/smux.lib/ANY.h diff --git a/projects/stargazer/plugins/other/smux/asn1/ApplicationSyntax.c b/stglibs/smux.lib/ApplicationSyntax.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/ApplicationSyntax.c rename to stglibs/smux.lib/ApplicationSyntax.c diff --git a/projects/stargazer/plugins/other/smux/asn1/ApplicationSyntax.h b/stglibs/smux.lib/ApplicationSyntax.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/ApplicationSyntax.h rename to stglibs/smux.lib/ApplicationSyntax.h diff --git a/projects/stargazer/plugins/other/smux/asn1/AtEntry.c b/stglibs/smux.lib/AtEntry.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/AtEntry.c rename to stglibs/smux.lib/AtEntry.c diff --git a/projects/stargazer/plugins/other/smux/asn1/AtEntry.h b/stglibs/smux.lib/AtEntry.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/AtEntry.h rename to stglibs/smux.lib/AtEntry.h diff --git a/projects/stargazer/plugins/other/smux/asn1/BIT_STRING.c b/stglibs/smux.lib/BIT_STRING.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/BIT_STRING.c rename to stglibs/smux.lib/BIT_STRING.c diff --git a/projects/stargazer/plugins/other/smux/asn1/BIT_STRING.h b/stglibs/smux.lib/BIT_STRING.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/BIT_STRING.h rename to stglibs/smux.lib/BIT_STRING.h diff --git a/projects/stargazer/plugins/other/smux/asn1/BOOLEAN.c b/stglibs/smux.lib/BOOLEAN.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/BOOLEAN.c rename to stglibs/smux.lib/BOOLEAN.c diff --git a/projects/stargazer/plugins/other/smux/asn1/BOOLEAN.h b/stglibs/smux.lib/BOOLEAN.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/BOOLEAN.h rename to stglibs/smux.lib/BOOLEAN.h diff --git a/projects/stargazer/plugins/other/smux/asn1/ClosePDU.c b/stglibs/smux.lib/ClosePDU.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/ClosePDU.c rename to stglibs/smux.lib/ClosePDU.c diff --git a/projects/stargazer/plugins/other/smux/asn1/ClosePDU.h b/stglibs/smux.lib/ClosePDU.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/ClosePDU.h rename to stglibs/smux.lib/ClosePDU.h diff --git a/projects/stargazer/plugins/other/smux/asn1/Counter.c b/stglibs/smux.lib/Counter.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/Counter.c rename to stglibs/smux.lib/Counter.c diff --git a/projects/stargazer/plugins/other/smux/asn1/Counter.h b/stglibs/smux.lib/Counter.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/Counter.h rename to stglibs/smux.lib/Counter.h diff --git a/projects/stargazer/plugins/other/smux/asn1/DisplayString.c b/stglibs/smux.lib/DisplayString.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/DisplayString.c rename to stglibs/smux.lib/DisplayString.c diff --git a/projects/stargazer/plugins/other/smux/asn1/DisplayString.h b/stglibs/smux.lib/DisplayString.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/DisplayString.h rename to stglibs/smux.lib/DisplayString.h diff --git a/projects/stargazer/plugins/other/smux/asn1/EgpNeighEntry.c b/stglibs/smux.lib/EgpNeighEntry.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/EgpNeighEntry.c rename to stglibs/smux.lib/EgpNeighEntry.c diff --git a/projects/stargazer/plugins/other/smux/asn1/EgpNeighEntry.h b/stglibs/smux.lib/EgpNeighEntry.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/EgpNeighEntry.h rename to stglibs/smux.lib/EgpNeighEntry.h diff --git a/projects/stargazer/plugins/other/smux/asn1/Gauge.c b/stglibs/smux.lib/Gauge.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/Gauge.c rename to stglibs/smux.lib/Gauge.c diff --git a/projects/stargazer/plugins/other/smux/asn1/Gauge.h b/stglibs/smux.lib/Gauge.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/Gauge.h rename to stglibs/smux.lib/Gauge.h diff --git a/projects/stargazer/plugins/other/smux/asn1/GetNextRequest-PDU.c b/stglibs/smux.lib/GetNextRequest-PDU.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/GetNextRequest-PDU.c rename to stglibs/smux.lib/GetNextRequest-PDU.c diff --git a/projects/stargazer/plugins/other/smux/asn1/GetNextRequest-PDU.h b/stglibs/smux.lib/GetNextRequest-PDU.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/GetNextRequest-PDU.h rename to stglibs/smux.lib/GetNextRequest-PDU.h diff --git a/projects/stargazer/plugins/other/smux/asn1/GetRequest-PDU.c b/stglibs/smux.lib/GetRequest-PDU.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/GetRequest-PDU.c rename to stglibs/smux.lib/GetRequest-PDU.c diff --git a/projects/stargazer/plugins/other/smux/asn1/GetRequest-PDU.h b/stglibs/smux.lib/GetRequest-PDU.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/GetRequest-PDU.h rename to stglibs/smux.lib/GetRequest-PDU.h diff --git a/projects/stargazer/plugins/other/smux/asn1/GetResponse-PDU.c b/stglibs/smux.lib/GetResponse-PDU.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/GetResponse-PDU.c rename to stglibs/smux.lib/GetResponse-PDU.c diff --git a/projects/stargazer/plugins/other/smux/asn1/GetResponse-PDU.h b/stglibs/smux.lib/GetResponse-PDU.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/GetResponse-PDU.h rename to stglibs/smux.lib/GetResponse-PDU.h diff --git a/projects/stargazer/plugins/other/smux/asn1/INTEGER.c b/stglibs/smux.lib/INTEGER.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/INTEGER.c rename to stglibs/smux.lib/INTEGER.c diff --git a/projects/stargazer/plugins/other/smux/asn1/INTEGER.h b/stglibs/smux.lib/INTEGER.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/INTEGER.h rename to stglibs/smux.lib/INTEGER.h diff --git a/projects/stargazer/plugins/other/smux/asn1/IfEntry.c b/stglibs/smux.lib/IfEntry.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/IfEntry.c rename to stglibs/smux.lib/IfEntry.c diff --git a/projects/stargazer/plugins/other/smux/asn1/IfEntry.h b/stglibs/smux.lib/IfEntry.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/IfEntry.h rename to stglibs/smux.lib/IfEntry.h diff --git a/projects/stargazer/plugins/other/smux/asn1/IpAddrEntry.c b/stglibs/smux.lib/IpAddrEntry.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/IpAddrEntry.c rename to stglibs/smux.lib/IpAddrEntry.c diff --git a/projects/stargazer/plugins/other/smux/asn1/IpAddrEntry.h b/stglibs/smux.lib/IpAddrEntry.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/IpAddrEntry.h rename to stglibs/smux.lib/IpAddrEntry.h diff --git a/projects/stargazer/plugins/other/smux/asn1/IpAddress.c b/stglibs/smux.lib/IpAddress.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/IpAddress.c rename to stglibs/smux.lib/IpAddress.c diff --git a/projects/stargazer/plugins/other/smux/asn1/IpAddress.h b/stglibs/smux.lib/IpAddress.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/IpAddress.h rename to stglibs/smux.lib/IpAddress.h diff --git a/projects/stargazer/plugins/other/smux/asn1/IpNetToMediaEntry.c b/stglibs/smux.lib/IpNetToMediaEntry.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/IpNetToMediaEntry.c rename to stglibs/smux.lib/IpNetToMediaEntry.c diff --git a/projects/stargazer/plugins/other/smux/asn1/IpNetToMediaEntry.h b/stglibs/smux.lib/IpNetToMediaEntry.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/IpNetToMediaEntry.h rename to stglibs/smux.lib/IpNetToMediaEntry.h diff --git a/projects/stargazer/plugins/other/smux/asn1/IpRouteEntry.c b/stglibs/smux.lib/IpRouteEntry.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/IpRouteEntry.c rename to stglibs/smux.lib/IpRouteEntry.c diff --git a/projects/stargazer/plugins/other/smux/asn1/IpRouteEntry.h b/stglibs/smux.lib/IpRouteEntry.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/IpRouteEntry.h rename to stglibs/smux.lib/IpRouteEntry.h diff --git a/projects/stargazer/plugins/other/smux/asn1/Message.c b/stglibs/smux.lib/Message.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/Message.c rename to stglibs/smux.lib/Message.c diff --git a/projects/stargazer/plugins/other/smux/asn1/Message.h b/stglibs/smux.lib/Message.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/Message.h rename to stglibs/smux.lib/Message.h diff --git a/projects/stargazer/plugins/other/smux/asn1/NULL.c b/stglibs/smux.lib/NULL.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/NULL.c rename to stglibs/smux.lib/NULL.c diff --git a/projects/stargazer/plugins/other/smux/asn1/NULL.h b/stglibs/smux.lib/NULL.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/NULL.h rename to stglibs/smux.lib/NULL.h diff --git a/projects/stargazer/plugins/other/smux/asn1/NativeEnumerated.c b/stglibs/smux.lib/NativeEnumerated.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/NativeEnumerated.c rename to stglibs/smux.lib/NativeEnumerated.c diff --git a/projects/stargazer/plugins/other/smux/asn1/NativeEnumerated.h b/stglibs/smux.lib/NativeEnumerated.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/NativeEnumerated.h rename to stglibs/smux.lib/NativeEnumerated.h diff --git a/projects/stargazer/plugins/other/smux/asn1/NativeInteger.c b/stglibs/smux.lib/NativeInteger.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/NativeInteger.c rename to stglibs/smux.lib/NativeInteger.c diff --git a/projects/stargazer/plugins/other/smux/asn1/NativeInteger.h b/stglibs/smux.lib/NativeInteger.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/NativeInteger.h rename to stglibs/smux.lib/NativeInteger.h diff --git a/projects/stargazer/plugins/other/smux/asn1/NetworkAddress.c b/stglibs/smux.lib/NetworkAddress.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/NetworkAddress.c rename to stglibs/smux.lib/NetworkAddress.c diff --git a/projects/stargazer/plugins/other/smux/asn1/NetworkAddress.h b/stglibs/smux.lib/NetworkAddress.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/NetworkAddress.h rename to stglibs/smux.lib/NetworkAddress.h diff --git a/projects/stargazer/plugins/other/smux/asn1/OBJECT_IDENTIFIER.c b/stglibs/smux.lib/OBJECT_IDENTIFIER.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/OBJECT_IDENTIFIER.c rename to stglibs/smux.lib/OBJECT_IDENTIFIER.c diff --git a/projects/stargazer/plugins/other/smux/asn1/OBJECT_IDENTIFIER.h b/stglibs/smux.lib/OBJECT_IDENTIFIER.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/OBJECT_IDENTIFIER.h rename to stglibs/smux.lib/OBJECT_IDENTIFIER.h diff --git a/projects/stargazer/plugins/other/smux/asn1/OCTET_STRING.c b/stglibs/smux.lib/OCTET_STRING.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/OCTET_STRING.c rename to stglibs/smux.lib/OCTET_STRING.c diff --git a/projects/stargazer/plugins/other/smux/asn1/OCTET_STRING.h b/stglibs/smux.lib/OCTET_STRING.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/OCTET_STRING.h rename to stglibs/smux.lib/OCTET_STRING.h diff --git a/projects/stargazer/plugins/other/smux/asn1/ObjectName.c b/stglibs/smux.lib/ObjectName.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/ObjectName.c rename to stglibs/smux.lib/ObjectName.c diff --git a/projects/stargazer/plugins/other/smux/asn1/ObjectName.h b/stglibs/smux.lib/ObjectName.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/ObjectName.h rename to stglibs/smux.lib/ObjectName.h diff --git a/projects/stargazer/plugins/other/smux/asn1/ObjectSyntax.c b/stglibs/smux.lib/ObjectSyntax.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/ObjectSyntax.c rename to stglibs/smux.lib/ObjectSyntax.c diff --git a/projects/stargazer/plugins/other/smux/asn1/ObjectSyntax.h b/stglibs/smux.lib/ObjectSyntax.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/ObjectSyntax.h rename to stglibs/smux.lib/ObjectSyntax.h diff --git a/projects/stargazer/plugins/other/smux/asn1/Opaque.c b/stglibs/smux.lib/Opaque.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/Opaque.c rename to stglibs/smux.lib/Opaque.c diff --git a/projects/stargazer/plugins/other/smux/asn1/Opaque.h b/stglibs/smux.lib/Opaque.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/Opaque.h rename to stglibs/smux.lib/Opaque.h diff --git a/projects/stargazer/plugins/other/smux/asn1/OpenPDU.c b/stglibs/smux.lib/OpenPDU.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/OpenPDU.c rename to stglibs/smux.lib/OpenPDU.c diff --git a/projects/stargazer/plugins/other/smux/asn1/OpenPDU.h b/stglibs/smux.lib/OpenPDU.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/OpenPDU.h rename to stglibs/smux.lib/OpenPDU.h diff --git a/projects/stargazer/plugins/other/smux/asn1/PDU.c b/stglibs/smux.lib/PDU.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/PDU.c rename to stglibs/smux.lib/PDU.c diff --git a/projects/stargazer/plugins/other/smux/asn1/PDU.h b/stglibs/smux.lib/PDU.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/PDU.h rename to stglibs/smux.lib/PDU.h diff --git a/projects/stargazer/plugins/other/smux/asn1/PDUs.c b/stglibs/smux.lib/PDUs.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/PDUs.c rename to stglibs/smux.lib/PDUs.c diff --git a/projects/stargazer/plugins/other/smux/asn1/PDUs.h b/stglibs/smux.lib/PDUs.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/PDUs.h rename to stglibs/smux.lib/PDUs.h diff --git a/projects/stargazer/plugins/other/smux/asn1/PhysAddress.c b/stglibs/smux.lib/PhysAddress.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/PhysAddress.c rename to stglibs/smux.lib/PhysAddress.c diff --git a/projects/stargazer/plugins/other/smux/asn1/PhysAddress.h b/stglibs/smux.lib/PhysAddress.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/PhysAddress.h rename to stglibs/smux.lib/PhysAddress.h diff --git a/projects/stargazer/plugins/other/smux/asn1/RReqPDU.c b/stglibs/smux.lib/RReqPDU.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/RReqPDU.c rename to stglibs/smux.lib/RReqPDU.c diff --git a/projects/stargazer/plugins/other/smux/asn1/RReqPDU.h b/stglibs/smux.lib/RReqPDU.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/RReqPDU.h rename to stglibs/smux.lib/RReqPDU.h diff --git a/projects/stargazer/plugins/other/smux/asn1/RRspPDU.c b/stglibs/smux.lib/RRspPDU.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/RRspPDU.c rename to stglibs/smux.lib/RRspPDU.c diff --git a/projects/stargazer/plugins/other/smux/asn1/RRspPDU.h b/stglibs/smux.lib/RRspPDU.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/RRspPDU.h rename to stglibs/smux.lib/RRspPDU.h diff --git a/projects/stargazer/plugins/other/smux/asn1/SMUX-PDUs.c b/stglibs/smux.lib/SMUX-PDUs.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/SMUX-PDUs.c rename to stglibs/smux.lib/SMUX-PDUs.c diff --git a/projects/stargazer/plugins/other/smux/asn1/SMUX-PDUs.h b/stglibs/smux.lib/SMUX-PDUs.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/SMUX-PDUs.h rename to stglibs/smux.lib/SMUX-PDUs.h diff --git a/projects/stargazer/plugins/other/smux/asn1/SOutPDU.c b/stglibs/smux.lib/SOutPDU.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/SOutPDU.c rename to stglibs/smux.lib/SOutPDU.c diff --git a/projects/stargazer/plugins/other/smux/asn1/SOutPDU.h b/stglibs/smux.lib/SOutPDU.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/SOutPDU.h rename to stglibs/smux.lib/SOutPDU.h diff --git a/projects/stargazer/plugins/other/smux/asn1/SetRequest-PDU.c b/stglibs/smux.lib/SetRequest-PDU.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/SetRequest-PDU.c rename to stglibs/smux.lib/SetRequest-PDU.c diff --git a/projects/stargazer/plugins/other/smux/asn1/SetRequest-PDU.h b/stglibs/smux.lib/SetRequest-PDU.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/SetRequest-PDU.h rename to stglibs/smux.lib/SetRequest-PDU.h diff --git a/projects/stargazer/plugins/other/smux/asn1/SimpleOpen.c b/stglibs/smux.lib/SimpleOpen.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/SimpleOpen.c rename to stglibs/smux.lib/SimpleOpen.c diff --git a/projects/stargazer/plugins/other/smux/asn1/SimpleOpen.h b/stglibs/smux.lib/SimpleOpen.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/SimpleOpen.h rename to stglibs/smux.lib/SimpleOpen.h diff --git a/projects/stargazer/plugins/other/smux/asn1/SimpleSyntax.c b/stglibs/smux.lib/SimpleSyntax.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/SimpleSyntax.c rename to stglibs/smux.lib/SimpleSyntax.c diff --git a/projects/stargazer/plugins/other/smux/asn1/SimpleSyntax.h b/stglibs/smux.lib/SimpleSyntax.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/SimpleSyntax.h rename to stglibs/smux.lib/SimpleSyntax.h diff --git a/projects/stargazer/plugins/other/smux/asn1/TcpConnEntry.c b/stglibs/smux.lib/TcpConnEntry.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/TcpConnEntry.c rename to stglibs/smux.lib/TcpConnEntry.c diff --git a/projects/stargazer/plugins/other/smux/asn1/TcpConnEntry.h b/stglibs/smux.lib/TcpConnEntry.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/TcpConnEntry.h rename to stglibs/smux.lib/TcpConnEntry.h diff --git a/projects/stargazer/plugins/other/smux/asn1/TimeTicks.c b/stglibs/smux.lib/TimeTicks.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/TimeTicks.c rename to stglibs/smux.lib/TimeTicks.c diff --git a/projects/stargazer/plugins/other/smux/asn1/TimeTicks.h b/stglibs/smux.lib/TimeTicks.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/TimeTicks.h rename to stglibs/smux.lib/TimeTicks.h diff --git a/projects/stargazer/plugins/other/smux/asn1/Trap-PDU.c b/stglibs/smux.lib/Trap-PDU.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/Trap-PDU.c rename to stglibs/smux.lib/Trap-PDU.c diff --git a/projects/stargazer/plugins/other/smux/asn1/Trap-PDU.h b/stglibs/smux.lib/Trap-PDU.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/Trap-PDU.h rename to stglibs/smux.lib/Trap-PDU.h diff --git a/projects/stargazer/plugins/other/smux/asn1/UdpEntry.c b/stglibs/smux.lib/UdpEntry.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/UdpEntry.c rename to stglibs/smux.lib/UdpEntry.c diff --git a/projects/stargazer/plugins/other/smux/asn1/UdpEntry.h b/stglibs/smux.lib/UdpEntry.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/UdpEntry.h rename to stglibs/smux.lib/UdpEntry.h diff --git a/projects/stargazer/plugins/other/smux/asn1/VarBind.c b/stglibs/smux.lib/VarBind.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/VarBind.c rename to stglibs/smux.lib/VarBind.c diff --git a/projects/stargazer/plugins/other/smux/asn1/VarBind.h b/stglibs/smux.lib/VarBind.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/VarBind.h rename to stglibs/smux.lib/VarBind.h diff --git a/projects/stargazer/plugins/other/smux/asn1/VarBindList.c b/stglibs/smux.lib/VarBindList.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/VarBindList.c rename to stglibs/smux.lib/VarBindList.c diff --git a/projects/stargazer/plugins/other/smux/asn1/VarBindList.h b/stglibs/smux.lib/VarBindList.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/VarBindList.h rename to stglibs/smux.lib/VarBindList.h diff --git a/projects/stargazer/plugins/other/smux/asn1/asn_SEQUENCE_OF.c b/stglibs/smux.lib/asn_SEQUENCE_OF.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/asn_SEQUENCE_OF.c rename to stglibs/smux.lib/asn_SEQUENCE_OF.c diff --git a/projects/stargazer/plugins/other/smux/asn1/asn_SEQUENCE_OF.h b/stglibs/smux.lib/asn_SEQUENCE_OF.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/asn_SEQUENCE_OF.h rename to stglibs/smux.lib/asn_SEQUENCE_OF.h diff --git a/projects/stargazer/plugins/other/smux/asn1/asn_SET_OF.c b/stglibs/smux.lib/asn_SET_OF.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/asn_SET_OF.c rename to stglibs/smux.lib/asn_SET_OF.c diff --git a/projects/stargazer/plugins/other/smux/asn1/asn_SET_OF.h b/stglibs/smux.lib/asn_SET_OF.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/asn_SET_OF.h rename to stglibs/smux.lib/asn_SET_OF.h diff --git a/projects/stargazer/plugins/other/smux/asn1/asn_application.h b/stglibs/smux.lib/asn_application.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/asn_application.h rename to stglibs/smux.lib/asn_application.h diff --git a/projects/stargazer/plugins/other/smux/asn1/asn_codecs.h b/stglibs/smux.lib/asn_codecs.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/asn_codecs.h rename to stglibs/smux.lib/asn_codecs.h diff --git a/projects/stargazer/plugins/other/smux/asn1/asn_codecs_prim.c b/stglibs/smux.lib/asn_codecs_prim.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/asn_codecs_prim.c rename to stglibs/smux.lib/asn_codecs_prim.c diff --git a/projects/stargazer/plugins/other/smux/asn1/asn_codecs_prim.h b/stglibs/smux.lib/asn_codecs_prim.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/asn_codecs_prim.h rename to stglibs/smux.lib/asn_codecs_prim.h diff --git a/projects/stargazer/plugins/other/smux/asn1/asn_internal.h b/stglibs/smux.lib/asn_internal.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/asn_internal.h rename to stglibs/smux.lib/asn_internal.h diff --git a/projects/stargazer/plugins/other/smux/asn1/asn_system.h b/stglibs/smux.lib/asn_system.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/asn_system.h rename to stglibs/smux.lib/asn_system.h diff --git a/projects/stargazer/plugins/other/smux/asn1/ber_decoder.c b/stglibs/smux.lib/ber_decoder.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/ber_decoder.c rename to stglibs/smux.lib/ber_decoder.c diff --git a/projects/stargazer/plugins/other/smux/asn1/ber_decoder.h b/stglibs/smux.lib/ber_decoder.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/ber_decoder.h rename to stglibs/smux.lib/ber_decoder.h diff --git a/projects/stargazer/plugins/other/smux/asn1/ber_tlv_length.c b/stglibs/smux.lib/ber_tlv_length.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/ber_tlv_length.c rename to stglibs/smux.lib/ber_tlv_length.c diff --git a/projects/stargazer/plugins/other/smux/asn1/ber_tlv_length.h b/stglibs/smux.lib/ber_tlv_length.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/ber_tlv_length.h rename to stglibs/smux.lib/ber_tlv_length.h diff --git a/projects/stargazer/plugins/other/smux/asn1/ber_tlv_tag.c b/stglibs/smux.lib/ber_tlv_tag.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/ber_tlv_tag.c rename to stglibs/smux.lib/ber_tlv_tag.c diff --git a/projects/stargazer/plugins/other/smux/asn1/ber_tlv_tag.h b/stglibs/smux.lib/ber_tlv_tag.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/ber_tlv_tag.h rename to stglibs/smux.lib/ber_tlv_tag.h diff --git a/projects/stargazer/plugins/other/smux/asn1/constr_CHOICE.c b/stglibs/smux.lib/constr_CHOICE.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/constr_CHOICE.c rename to stglibs/smux.lib/constr_CHOICE.c diff --git a/projects/stargazer/plugins/other/smux/asn1/constr_CHOICE.h b/stglibs/smux.lib/constr_CHOICE.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/constr_CHOICE.h rename to stglibs/smux.lib/constr_CHOICE.h diff --git a/projects/stargazer/plugins/other/smux/asn1/constr_SEQUENCE.c b/stglibs/smux.lib/constr_SEQUENCE.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/constr_SEQUENCE.c rename to stglibs/smux.lib/constr_SEQUENCE.c diff --git a/projects/stargazer/plugins/other/smux/asn1/constr_SEQUENCE.h b/stglibs/smux.lib/constr_SEQUENCE.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/constr_SEQUENCE.h rename to stglibs/smux.lib/constr_SEQUENCE.h diff --git a/projects/stargazer/plugins/other/smux/asn1/constr_SEQUENCE_OF.c b/stglibs/smux.lib/constr_SEQUENCE_OF.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/constr_SEQUENCE_OF.c rename to stglibs/smux.lib/constr_SEQUENCE_OF.c diff --git a/projects/stargazer/plugins/other/smux/asn1/constr_SEQUENCE_OF.h b/stglibs/smux.lib/constr_SEQUENCE_OF.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/constr_SEQUENCE_OF.h rename to stglibs/smux.lib/constr_SEQUENCE_OF.h diff --git a/projects/stargazer/plugins/other/smux/asn1/constr_SET_OF.c b/stglibs/smux.lib/constr_SET_OF.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/constr_SET_OF.c rename to stglibs/smux.lib/constr_SET_OF.c diff --git a/projects/stargazer/plugins/other/smux/asn1/constr_SET_OF.h b/stglibs/smux.lib/constr_SET_OF.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/constr_SET_OF.h rename to stglibs/smux.lib/constr_SET_OF.h diff --git a/projects/stargazer/plugins/other/smux/asn1/constr_TYPE.c b/stglibs/smux.lib/constr_TYPE.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/constr_TYPE.c rename to stglibs/smux.lib/constr_TYPE.c diff --git a/projects/stargazer/plugins/other/smux/asn1/constr_TYPE.h b/stglibs/smux.lib/constr_TYPE.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/constr_TYPE.h rename to stglibs/smux.lib/constr_TYPE.h diff --git a/projects/stargazer/plugins/other/smux/asn1/constraints.c b/stglibs/smux.lib/constraints.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/constraints.c rename to stglibs/smux.lib/constraints.c diff --git a/projects/stargazer/plugins/other/smux/asn1/constraints.h b/stglibs/smux.lib/constraints.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/constraints.h rename to stglibs/smux.lib/constraints.h diff --git a/projects/stargazer/plugins/other/smux/asn1/der_encoder.c b/stglibs/smux.lib/der_encoder.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/der_encoder.c rename to stglibs/smux.lib/der_encoder.c diff --git a/projects/stargazer/plugins/other/smux/asn1/der_encoder.h b/stglibs/smux.lib/der_encoder.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/der_encoder.h rename to stglibs/smux.lib/der_encoder.h diff --git a/projects/stargazer/plugins/other/smux/asn1/per_decoder.c b/stglibs/smux.lib/per_decoder.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/per_decoder.c rename to stglibs/smux.lib/per_decoder.c diff --git a/projects/stargazer/plugins/other/smux/asn1/per_decoder.h b/stglibs/smux.lib/per_decoder.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/per_decoder.h rename to stglibs/smux.lib/per_decoder.h diff --git a/projects/stargazer/plugins/other/smux/asn1/per_encoder.c b/stglibs/smux.lib/per_encoder.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/per_encoder.c rename to stglibs/smux.lib/per_encoder.c diff --git a/projects/stargazer/plugins/other/smux/asn1/per_encoder.h b/stglibs/smux.lib/per_encoder.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/per_encoder.h rename to stglibs/smux.lib/per_encoder.h diff --git a/projects/stargazer/plugins/other/smux/asn1/per_support.c b/stglibs/smux.lib/per_support.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/per_support.c rename to stglibs/smux.lib/per_support.c diff --git a/projects/stargazer/plugins/other/smux/asn1/per_support.h b/stglibs/smux.lib/per_support.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/per_support.h rename to stglibs/smux.lib/per_support.h diff --git a/projects/stargazer/plugins/other/smux/asn1/xer_decoder.c b/stglibs/smux.lib/xer_decoder.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/xer_decoder.c rename to stglibs/smux.lib/xer_decoder.c diff --git a/projects/stargazer/plugins/other/smux/asn1/xer_decoder.h b/stglibs/smux.lib/xer_decoder.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/xer_decoder.h rename to stglibs/smux.lib/xer_decoder.h diff --git a/projects/stargazer/plugins/other/smux/asn1/xer_encoder.c b/stglibs/smux.lib/xer_encoder.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/xer_encoder.c rename to stglibs/smux.lib/xer_encoder.c diff --git a/projects/stargazer/plugins/other/smux/asn1/xer_encoder.h b/stglibs/smux.lib/xer_encoder.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/xer_encoder.h rename to stglibs/smux.lib/xer_encoder.h diff --git a/projects/stargazer/plugins/other/smux/asn1/xer_support.c b/stglibs/smux.lib/xer_support.c similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/xer_support.c rename to stglibs/smux.lib/xer_support.c diff --git a/projects/stargazer/plugins/other/smux/asn1/xer_support.h b/stglibs/smux.lib/xer_support.h similarity index 100% rename from projects/stargazer/plugins/other/smux/asn1/xer_support.h rename to stglibs/smux.lib/xer_support.h -- 2.43.2