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.44 by root, Sun Apr 21 02:43:03 2019 UTC vs.
Revision 1.46 by root, Sun Apr 21 03:02:22 2019 UTC

8 8
9 my $ber = ber_decode $buf, $Convert::BER::XS::SNMP_PROFILE 9 my $ber = ber_decode $buf, $Convert::BER::XS::SNMP_PROFILE
10 or die "unable to decode SNMP message"; 10 or die "unable to decode SNMP message";
11 11
12 # The above results in a data structure consisting of 12 # The above results in a data structure consisting of
13 # (class, tag, flags, data) 13 # (class, tag, flags, data)
14 # tuples. Below is such a message, SNMPv1 trap 14 # tuples. Below is such a message, SNMPv1 trap
15 # with a Cisco mac change notification. 15 # with a Cisco mac change notification.
16 # Did you know that Cisco is in the news almost 16 # Did you know that Cisco is in the news almost
17 # every week because of some backdoor password 17 # every week because of some backdoor password
18 # or other extremely stupid security bug? 18 # or other extremely stupid security bug?
746This 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
747de-/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
748number into an C<SNMP_COUNTER64>. 748number into an C<SNMP_COUNTER64>.
749 749
750OBJECT IDENTIFIEERs cannot have unlimited length, although the limit is 750OBJECT IDENTIFIEERs cannot have unlimited length, although the limit is
751much 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
752about 4kB. 752about 4kB.
753 753
754Indefinite length encoding is not supported. 754Indefinite length encoding is not supported.
755 755
756Constructed 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
757join them for convenience. 757join them for convenience.
758 758
759REAL values are not supported and will currently croak. 759REAL values are not supported and will currently croak.
760 760
761The encoder and decoder tend to accept more formats than should be 761The encoder and decoder tend to accept more formats than should be
762strictly supported. 762strictly supported - security sensitive applications are strongly advised
763to review the code first.
763 764
764This module has undergone little to no testing so far. 765This module has undergone little to no testing so far.
765 766
766=head2 ITHREADS SUPPORT 767=head2 ITHREADS SUPPORT
767 768

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines