ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Convert-BER-XS/XS.pm
(Generate patch)

Comparing Convert-BER-XS/XS.pm (file contents):
Revision 1.42 by root, Sun Apr 21 01:51:12 2019 UTC vs.
Revision 1.45 by root, Sun Apr 21 02:45:12 2019 UTC

641 641
642Returns the BER type mapped to the given C<$class>/C<$tag> combination. 642Returns the BER type mapped to the given C<$class>/C<$tag> combination.
643 643
644=back 644=back
645 645
646=head2 BER TYPES 646=head2 BER Types
647 647
648This lists the predefined BER types - you can map any C<CLASS>/C<TAG> 648This lists the predefined BER types. BER types are formatters used
649combination to any C<BER_TYPE_*>. 649internally to format and encode BER values. You can assign any C<BER_TYPE>
650to any C<CLASS>/C<TAG> combination tgo change how that tag is decoded or
651encoded.
650 652
651=over 653=over
652 654
653=item C<BER_TYPE_BYTES> 655=item C<BER_TYPE_BYTES>
654 656
737 $SNMP_PROFILE->set (ASN_APPLICATION, SNMP_COUNTER64 , BER_TYPE_INT); 739 $SNMP_PROFILE->set (ASN_APPLICATION, SNMP_COUNTER64 , BER_TYPE_INT);
738 740
739=head2 LIMITATIONS/NOTES 741=head2 LIMITATIONS/NOTES
740 742
741This module can only en-/decode 64 bit signed and unsigned integers, and 743This module can only en-/decode 64 bit signed and unsigned integers, and
742only when your perl supports those. 744only when your perl supports those. So no UUID OIDs for now.
743 745
744This module does not generally care about ranges, i.e. it will happily 746This module does not generally care about ranges, i.e. it will happily
745de-/encode 64 bit integers into an C<ASN_INTEGER> value, or a negative 747de-/encode 64 bit integers into an C<ASN_INTEGER> value, or a negative
746number into an C<SNMP_COUNTER64>. 748number into an C<SNMP_COUNTER64>.
747 749
748OBJECT IDENTIFIEERs cannot have unlimited length, although the limit is 750OBJECT IDENTIFIEERs cannot have unlimited length, although the limit is
749much larger than e.g. the one imposed by SNMP or other protocols,a nd is 751much larger than e.g. the one imposed by SNMP or other protocols, and is
750about 4kB. 752about 4kB.
751 753
752Indefinite length encoding is not supported. 754Indefinite length encoding is not supported.
753 755
754Constructed strings are decoded just fine, but there should be a way to 756Constructed strings are decoded just fine, but there should be a way to
755join them for convenience. 757join them for convenience.
756 758
757REAL values are not supported and will currently croak. 759REAL values are not supported and will currently croak.
758 760
759The encoder and decoder tend to accept more formats than should be 761The encoder and decoder tend to accept more formats than should be
760strictly supported. 762strictly supported - security sensitive applications are strongly advised
763to review the code first.
761 764
762This module has undergone little to no testing so far. 765This module has undergone little to no testing so far.
763 766
764=head2 ITHREADS SUPPORT 767=head2 ITHREADS SUPPORT
765 768

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines