Skip to content
This repository has been archived by the owner on Jan 29, 2021. It is now read-only.

Commit

Permalink
Make construct_sslv2_client_hello() not count towards coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayrx committed Oct 5, 2014
1 parent 186cc18 commit 39e5b04
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tlsenum/parse_hello.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,16 +248,18 @@ class HandshakeFailure(Exception):
pass


def construct_sslv2_client_hello():
def construct_sslv2_client_hello(): # pragma: no cover
"""
Returns a SSLv2 ClientHello message in bytes.
This is a quick and dirty function to return a SSLv2 ClientHello with all
7 specified cipher suites. I don't really want to enumerate the supported
SSLv2 cipher suites so this doesn't have to be flexible..
SSLv2 cipher suites so this doesn't have to be flexible...
"""
This function does not require test coverage because I am simply returning
bytes constructed from a fix list.
"""
return bytes([
0x80, 0x2e, # Length of record
0x01, # Handshake Type (0x01 for ClientHello)
Expand Down

0 comments on commit 39e5b04

Please sign in to comment.