Comments (3)
diff --git a/lib/Convert/ASN1/Debug.pm b/lib/Convert/ASN1/Debug.pm
index 905600b..099189a 100644
--- a/lib/Convert/ASN1/Debug.pm
+++ b/lib/Convert/ASN1/Debug.pm
@@ -95,7 +95,7 @@ sub asn_dump {
my $label = $type{sprintf("%02X",$tag & ~0x20)}
|| $type{sprintf("%02X",$tag & 0xC0)}
|| "[UNIVERSAL %d]";
- printf $label, $tnum;
+ printf "%s: %d\n", $label, $tnum;
if ($tag & ASN_CONSTRUCTOR) {
print " {\n";
from perl-convert-asn1.
You shouldn't include the "\n" in the format string, otherwise LGTM thanks @timlegge !
With the \n and a certificate as data you output:
0000 1294: SEQUENCE: 16
{
0004 64: SEQUENCE: 16
{
0006 9: OBJECT ID: 6
= 1.2.840.113549.1.5.13
0011 51: SEQUENCE: 16
{
[...]
without the \n you output the "nicer" (at least for us ASN.1 fanboys):
0000 1294: SEQUENCE: 16 {
0004 64: SEQUENCE: 16 {
0006 9: OBJECT ID: 6 = 1.2.840.113549.1.5.13
0011 51: SEQUENCE: 16 {
[...]
from perl-convert-asn1.
from perl-convert-asn1.
Related Issues (20)
- Regression in 0.25: Can't use string ("cn") as an ARRAY ref while "strict refs" in use at Convert/ASN1/_encode.pm line 269 HOT 2
- Unsafe decoding creates infinite loop HOT 5
- Can not decode my ASN it's written: decode error a6<=>30 0 8 at /Library/Perl/5.12/Convert/ASN1/_decode.pm line 113. HOT 8
- TAR file format problem on Windows
- decode problem with ASN INTEGER when value is colon seperated hex
- SEQUENCE OF SEQUENCE not decoded
- asn_read is hung
- Convert::ASN1 can't be fatpacked HOT 6
- dump() not handling RSA keys correctly?
- βbigintβ requirements
- Uninitialized value with ANY DEFINED BY
- Doc clarification needed
- BMPString data not fully decoded
- Is there a way to install Convert::ASN1 offline HOT 1
- intermittent error: "oid is undefined when calling $asn1->encode"
- Fails tests without '.' in @INC
- Constructed ("indef") primitive values with tag not working HOT 1
- Unable to decode CDRs written in a fixed blocks size with padding bytes
- Perl 5.35.1 makes scalar assignment to undef a compile time error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from perl-convert-asn1.