Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test failed #66

Closed
ca2r0tXb0y opened this issue May 20, 2016 · 4 comments
Closed

test failed #66

ca2r0tXb0y opened this issue May 20, 2016 · 4 comments

Comments

@ca2r0tXb0y
Copy link

Hi,
When I ran test_ssl_tls.py and test_ssl_tls_crypto.py, I got following errors:
python test_ssl_tls.py
FAIL: test_encrypted_layer_is_decrypted_if_required (main.TestTLSDissector)

Traceback (most recent call last):
File "test_ssl_tls.py", line 175, in test_encrypted_layer_is_decrypted_if_required
self.assertTrue(server_finished_records.haslayer(tls.TLSHandshake))
AssertionError: 0 is not true

Ran 39 tests in 1.487s

FAILED (failures=1)

python test_ssl_tls_crypto.py
FAIL: test_fixed_crypto_data_matches_verify_data (main.TestTLSSessionCtx)

Traceback (most recent call last):
File "test_ssl_tls_crypto.py", line 174, in test_fixed_crypto_data_matches_verify_data
self.assertEqual(client_verify_data, binascii.hexlify(tls_ctx.get_verify_data()))
AssertionError: 'e23f73911909a86be9e93fdb' != '12003ac89553b7a233da64b9'

Ran 35 tests in 0.379s

FAILED (failures=1)

And i don't know where goes wrong?

@ca2r0tXb0y
Copy link
Author

It seems TLSSessionCtx().get_verify_data() doesn't calculate EncryptedHandshakeMessage right.

@alexmgr
Copy link
Collaborator

alexmgr commented May 20, 2016

Hi,

These unit-tests run fine for me on master:

(scapy-ssl_tls)amoneger@silvertip scapy-ssl_tls/tests (master) » git log -n 1 | grep commit
commit 870e4721b8ea816a7e1c196edb6c161015d83e60
(scapy-ssl_tls)amoneger@silvertip scapy-ssl_tls/tests (master) » python test_ssl_tls_crypto.py
...................................
----------------------------------------------------------------------
Ran 35 tests in 0.485s

OK
(scapy-ssl_tls)amoneger@silvertip scapy-ssl_tls/tests (master) » python test_ssl_tls.py       
WARNING: No route found for IPv6 destination :: (no default route?)
.......................................
----------------------------------------------------------------------
Ran 39 tests in 1.845s

OK

Can you provided a bit more details on your setup? Which branch you're on, install from pip/git, scapy version, ...

Would be appreciated,
Alex

@ca2r0tXb0y
Copy link
Author

Thanks for replying, and I know where goes wrong.
I install from pip, and it gives those errors.
When i uninstall it and install from source, everything goes right.
It seems that version from pip and source both are 1.2.2, but i don't know why results are different.

@tintinweb
Copy link
Owner

the version on pip is 1.2.2 and the upcoming release is 1.2.3 (current master; here's a diff v1.2.2...master). I've updated the version on master to reflect that its actually at v1.2.3.

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

No branches or pull requests

3 participants