Skip to content

Conversation

@guedou
Copy link
Member

@guedou guedou commented Apr 29, 2020

This PR fixes #2398

@codecov
Copy link

codecov bot commented Apr 29, 2020

Codecov Report

Merging #2619 into master will decrease coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #2619      +/-   ##
==========================================
- Coverage   88.61%   88.56%   -0.05%     
==========================================
  Files         247      247              
  Lines       52053    52057       +4     
==========================================
- Hits        46125    46104      -21     
- Misses       5928     5953      +25     
Impacted Files Coverage Δ
scapy/config.py 83.78% <100.00%> (ø)
scapy/layers/tls/record_sslv2.py 86.03% <0.00%> (-3.36%) ⬇️
scapy/layers/tls/handshake_sslv2.py 91.32% <0.00%> (-2.65%) ⬇️
scapy/supersocket.py 74.84% <0.00%> (-1.92%) ⬇️
scapy/layers/tls/basefields.py 80.53% <0.00%> (-0.68%) ⬇️
scapy/arch/linux.py 79.46% <0.00%> (-0.29%) ⬇️
scapy/layers/tls/record.py 90.80% <0.00%> (-0.29%) ⬇️
scapy/layers/tls/keyexchange.py 81.79% <0.00%> (-0.21%) ⬇️
scapy/layers/tls/handshake.py 87.29% <0.00%> (-0.14%) ⬇️

scapy/config.py Outdated
"""
Check if the cryptography library is present, and if it is recent enough
for most usages in scapy (v1.7 or later).
Check if the cryptography module >= 1.7 is present. This is the minimum
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually we've dropped <2.0.0
b658909
The PR was using some >2.0.0 only things.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What should I do? Remove this function?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function still checks if cryptography is present. We could issue a warning if the version is < 2.0.0 (and update it to return True only when > 2.0.0)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the PR.

@p-l- p-l- merged commit 0eada06 into secdev:master May 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove references to crypto_valid_advanced?

3 participants