Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scapy
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
external
scapy
Commits
9d192c96
Commit
9d192c96
authored
9 years ago
by
mtu
Browse files
Options
Downloads
Patches
Plain Diff
Remove redundant 'islist' attributions for tbsCerts
parent
d51e47ac
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scapy/layers/x509.py
+9
-14
9 additions, 14 deletions
scapy/layers/x509.py
with
9 additions
and
14 deletions
scapy/layers/x509.py
+
9
−
14
View file @
9d192c96
...
@@ -749,12 +749,6 @@ attrName_specials = [name for name, symbol in attrName_mapping]
...
@@ -749,12 +749,6 @@ attrName_specials = [name for name, symbol in attrName_mapping]
class
X509_TBSCertificate
(
ASN1_Packet
):
class
X509_TBSCertificate
(
ASN1_Packet
):
ASN1_codec
=
ASN1_Codecs
.
BER
ASN1_codec
=
ASN1_Codecs
.
BER
ASN1F_extensions
=
ASN1F_optional
(
ASN1F_SEQUENCE_OF
(
"
extensions
"
,
[
X509_Extension
()],
X509_Extension
,
explicit_tag
=
0xa3
))
ASN1F_extensions
.
islist
=
1
ASN1_root
=
ASN1F_SEQUENCE
(
ASN1_root
=
ASN1F_SEQUENCE
(
ASN1F_optional
(
ASN1F_optional
(
ASN1F_enum_INTEGER
(
"
version
"
,
0x2
,
[
"
v1
"
,
"
v2
"
,
"
v3
"
],
ASN1F_enum_INTEGER
(
"
version
"
,
0x2
,
[
"
v1
"
,
"
v2
"
,
"
v3
"
],
...
@@ -777,8 +771,11 @@ class X509_TBSCertificate(ASN1_Packet):
...
@@ -777,8 +771,11 @@ class X509_TBSCertificate(ASN1_Packet):
ASN1F_optional
(
ASN1F_optional
(
ASN1F_BIT_STRING
(
"
subjectUniqueID
"
,
None
,
ASN1F_BIT_STRING
(
"
subjectUniqueID
"
,
None
,
implicit_tag
=
0x82
)),
implicit_tag
=
0x82
)),
ASN1F_extensions
)
ASN1F_optional
(
ASN1F_SEQUENCE_OF
(
"
extensions
"
,
[
X509_Extension
()],
X509_Extension
,
explicit_tag
=
0xa3
)))
def
get_issuer
(
self
):
def
get_issuer
(
self
):
attrs
=
self
.
issuer
attrs
=
self
.
issuer
attrsDict
=
{}
attrsDict
=
{}
...
@@ -888,11 +885,6 @@ class X509_RevokedCertificate(ASN1_Packet):
...
@@ -888,11 +885,6 @@ class X509_RevokedCertificate(ASN1_Packet):
class
X509_TBSCertList
(
ASN1_Packet
):
class
X509_TBSCertList
(
ASN1_Packet
):
ASN1_codec
=
ASN1_Codecs
.
BER
ASN1_codec
=
ASN1_Codecs
.
BER
ASN1F_crlExtensions
=
ASN1F_optional
(
ASN1F_SEQUENCE_OF
(
"
crlExtensions
"
,
None
,
X509_Extension
,
explicit_tag
=
0xa0
))
ASN1F_crlExtensions
.
islist
=
1
ASN1_root
=
ASN1F_SEQUENCE
(
ASN1_root
=
ASN1F_SEQUENCE
(
ASN1F_optional
(
ASN1F_optional
(
ASN1F_enum_INTEGER
(
"
version
"
,
1
,
[
"
v1
"
,
"
v2
"
])),
ASN1F_enum_INTEGER
(
"
version
"
,
1
,
[
"
v1
"
,
"
v2
"
])),
...
@@ -906,7 +898,10 @@ class X509_TBSCertList(ASN1_Packet):
...
@@ -906,7 +898,10 @@ class X509_TBSCertList(ASN1_Packet):
ASN1F_optional
(
ASN1F_optional
(
ASN1F_SEQUENCE_OF
(
"
revokedCertificates
"
,
None
,
ASN1F_SEQUENCE_OF
(
"
revokedCertificates
"
,
None
,
X509_RevokedCertificate
)),
X509_RevokedCertificate
)),
ASN1F_crlExtensions
)
ASN1F_optional
(
ASN1F_SEQUENCE_OF
(
"
crlExtensions
"
,
None
,
X509_Extension
,
explicit_tag
=
0xa0
)))
def
get_issuer
(
self
):
def
get_issuer
(
self
):
attrs
=
self
.
issuer
attrs
=
self
.
issuer
attrsDict
=
{}
attrsDict
=
{}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment