Release 1.2.0 Preparation
* README.txt -> README.md: renamed * dtls/sslconnection.py: Reduce the default MTU in effect while handshaking to 576, suitable for various path MTUs and PPPoE * dtls/prebuilt/win32-x86[_64]: Rebuilt with Visual C++ 2008 to eliminate requirement to install a C++ redistributable package * dtls/prebuilt/mingw-x86: mingw support is deprecated * dtls/__init__.py: VERSION introduced * setup.py: Version incremented to 1.2.0incoming
parent
343e243384
commit
7a84c71e80
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
2017-04-02 Ray Brown <code@liquibits.com>
|
||||
|
||||
Release 1.2.0 Preparation
|
||||
|
||||
* README.txt -> README.md: renamed
|
||||
* dtls/sslconnection.py: Reduce the default MTU in effect while handshaking to 576, suitable for various path MTUs and PPPoE
|
||||
* dtls/prebuilt/win32-x86[_64]: Rebuilt with Visual C++ 2008 to eliminate requirement to install a C++ redistributable package
|
||||
* dtls/prebuilt/mingw-x86: mingw support is deprecated
|
||||
* dtls/__init__.py: VERSION introduced
|
||||
* setup.py: Version incremented to 1.2.0
|
||||
|
||||
2017-03-28 Björn Freise <mcfreis@gmx.net>
|
||||
|
||||
Workaround for Windows concerning the MTU size
|
||||
|
|
|
@ -32,6 +32,8 @@ sockets.
|
|||
wrap_socket's parameters and their semantics have been maintained.
|
||||
"""
|
||||
|
||||
VERSION = 1, 2, 0
|
||||
|
||||
def _prep_bins():
|
||||
"""
|
||||
Support for running straight out of a cloned source directory instead
|
||||
|
|
|
@ -60,19 +60,10 @@ _logger = getLogger(__name__)
|
|||
#
|
||||
if sys.platform.startswith('win'):
|
||||
dll_path = path.abspath(path.dirname(__file__))
|
||||
debug_cryptodll_path = path.join(dll_path, "cygcrypto-1.0.0.dll")
|
||||
debug_ssldll_path = path.join(dll_path, "cygssl-1.0.0.dll")
|
||||
release_cryptodll_path = path.join(dll_path, "libeay32.dll")
|
||||
release_ssldll_path = path.join(dll_path, "ssleay32.dll")
|
||||
if path.exists(path.join(dll_path, "use_debug_openssl")) and \
|
||||
path.exists(debug_cryptodll_path) and \
|
||||
path.exists(debug_ssldll_path):
|
||||
libcrypto = CDLL(debug_cryptodll_path)
|
||||
libssl = CDLL(debug_ssldll_path)
|
||||
else:
|
||||
# If these don't exist, then let the exception propagate
|
||||
libcrypto = CDLL(release_cryptodll_path)
|
||||
libssl = CDLL(release_ssldll_path)
|
||||
cryptodll_path = path.join(dll_path, "libeay32.dll")
|
||||
ssldll_path = path.join(dll_path, "ssleay32.dll")
|
||||
libcrypto = CDLL(cryptodll_path)
|
||||
libssl = CDLL(ssldll_path)
|
||||
else:
|
||||
libcrypto = CDLL("libcrypto.so.1.0.0")
|
||||
libssl = CDLL("libssl.so.1.0.0")
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,33 +0,0 @@
|
|||
# Prebuilt directory manifest.
|
||||
|
||||
# Copyright 2012 Ray Brown
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# The License is also distributed with this work in the file named "LICENSE."
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# This file is executed by the distribution builder, as well as the dtls
|
||||
# package startup code; the purpose of the latter is being able to run
|
||||
# from a cloned source directory without executing any sort of installation
|
||||
# procedure. This file provides the definitions required to create
|
||||
# a distribution including this directory's prebuilts.
|
||||
|
||||
from os import path
|
||||
from glob import glob
|
||||
|
||||
assert MANIFEST_DIR
|
||||
|
||||
ARCHITECTURE = "mingw-win32"
|
||||
FORMATS = "gztar"
|
||||
FILES = map(lambda x: path.basename(x),
|
||||
glob(path.join(MANIFEST_DIR, "*.dll")))
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -562,9 +562,10 @@ class SSLConnection(object):
|
|||
if self._user_config_ssl:
|
||||
self._user_config_ssl(self._intf_ssl)
|
||||
|
||||
if sys.platform.startswith('win') and not (SSL_get_options(self._ssl.value) & SSL_OP_NO_QUERY_MTU):
|
||||
if sys.platform.startswith('win') and \
|
||||
not (SSL_get_options(self._ssl.value) & SSL_OP_NO_QUERY_MTU):
|
||||
SSL_set_options(self._ssl.value, SSL_OP_NO_QUERY_MTU)
|
||||
DTLS_set_link_mtu(self._ssl.value, 1500)
|
||||
DTLS_set_link_mtu(self._ssl.value, 576)
|
||||
|
||||
SSL_set_bio(self._ssl.value, self._rbio.value, self._wbio.value)
|
||||
self._rbio.disown()
|
||||
|
|
Loading…
Reference in New Issue