Skip to content

Commit 7aa9c0c

Browse files
updates docs
1 parent ef06c44 commit 7aa9c0c

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ htmlcov/
4141
.coverage
4242
.coverage.*
4343
.cache
44+
.pytest_cache
4445
nosetests.xml
4546
coverage.xml
4647
*,cover
@@ -67,3 +68,6 @@ venv_2.7
6768
venv_3.4
6869
venv_3.5
6970
venv_3.6
71+
72+
# code editor preferences
73+
.vscode

Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ clean-test: ## remove test and coverage artifacts
4949

5050
lint: ## check style with flake8
5151
flake8 src tests
52+
pylint src tests/*
5253

53-
test: ## run tests quickly with the default Python
54+
test: install ## run tests quickly with the default Python
5455
py.test tests
5556

5657
check: test ## run tests quickly with the default Python
@@ -60,8 +61,8 @@ test-all: ## run tests on every Python version with tox
6061

6162
check-all: test-all ## run tests on every Python version with tox
6263

63-
coverage: ## check code coverage quickly with the default Python
64-
coverage run --source wolfssl -m pytest
64+
cov: install ## check code coverage quickly with the default Python
65+
py.test --cov-config .coveragerc --cov=wolfssl tests
6566
coverage report -m
6667
coverage html
6768
$(BROWSER) htmlcov/index.html
@@ -71,6 +72,10 @@ docs: install ## generate Sphinx HTML documentation, including API docs
7172
$(MAKE) -C docs singlehtml
7273
$(BROWSER) docs/_build/singlehtml/index.html
7374

75+
doctest: install ## generate Sphinx HTML documentation, including API docs
76+
$(MAKE) -C docs clean
77+
$(MAKE) -C docs doctest
78+
7479
servedocs: docs ## compile the docs watching for changes
7580
watchmedo shell-command -p '*.rst' -c '$(MAKE) -C docs html' -R -D .
7681

src/wolfssl/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,10 @@ def wrap_socket(sock, keyfile=None, certfile=None, server_side=False,
602602
Which connections succeed will vary depending on the versions of the
603603
ssl providers on both sides of the communication.
604604
605+
Note 2:
606+
For TLS 1.3 connections use PROTOCOL_TLS as there is no dedicated
607+
PROTOCOL constant for just TLS 1.3.
608+
605609
The ciphers parameter sets the available ciphers for this SSL object. It
606610
should be a string in the wolfSSL cipher list format.
607611

0 commit comments

Comments
 (0)