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.59 by root, Fri May 3 08:49:01 2019 UTC vs.
Revision 1.62 by root, Thu Feb 6 23:15:44 2020 UTC

69 69
70 my $buf = ber_encode $ber, $Convert::BER::XS::SNMP_PROFILE; 70 my $buf = ber_encode $ber, $Convert::BER::XS::SNMP_PROFILE;
71 71
72=head1 DESCRIPTION 72=head1 DESCRIPTION
73 73
74WARNING: Before release 1.0, the API is not considered stable in any way.
75
76This module implements a I<very> low level BER/DER en-/decoder. 74This module implements a I<very> low level BER/DER en-/decoder.
77 75
78It is tuned for low memory and high speed, while still maintaining some 76It is tuned for low memory and high speed, while still maintaining some
79level of user-friendlyness. 77level of user-friendlyness.
80 78
414use Carp (); 412use Carp ();
415 413
416our $VERSION; 414our $VERSION;
417 415
418BEGIN { 416BEGIN {
419 $VERSION = 1.2; 417 $VERSION = 1.21;
420 XSLoader::load __PACKAGE__, $VERSION; 418 XSLoader::load __PACKAGE__, $VERSION;
421} 419}
422 420
423our %EXPORT_TAGS = ( 421our %EXPORT_TAGS = (
424 const_index => [qw( 422 const_index => [qw(
729dot, e.g. C<1.3.6.1.213>. 727dot, e.g. C<1.3.6.1.213>.
730 728
731=item C<BER_TYPE_RELOID> 729=item C<BER_TYPE_RELOID>
732 730
733Same as C<BER_TYPE_OID> but uses relative object identifier 731Same as C<BER_TYPE_OID> but uses relative object identifier
734encoding: ASN.1 has this hack of encoding the first two OID components 732encoding: ASN.1 uses some hack encoding of the first two OID components
735into a single integer in a weird attempt to save an insignificant amount 733into a single integer in a weird attempt to save an insignificant amount
736of space in an otherwise wasteful encoding, and relative OIDs are 734of space in an otherwise wasteful encoding, and relative OIDs are
737basically OIDs without this hack. The practical difference is that the 735basically OIDs without this hack. The practical difference is that the
738second component of an OID can only have the values 1..40, while relative 736second component of an OID can only have the values 1..40, while relative
739OIDs do not have this restriction. 737OIDs do not have this restriction.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines