rbit / pydtls

Datagram Transport Layer Security for Python
Apache License 2.0
72 stars 45 forks source link

compatibility with OSX #1

Open d0rkl0rd opened 10 years ago

d0rkl0rd commented 10 years ago

as released this program only works on Windows or Linux (as advertised). It takes only a minor tweak to make it compatible with recent (>=10.7) version of OSX:

openssl.py: libcrypto = CDLL("libcrypto.0.9.8.dylib") openssl.py: libssl = CDLL("libssl.0.9.8.dylib")

i.e. simply substituting some ssl library names. The resultant OSX-friendly DTLS client behavior works perfectly with an independent GNUTLS-flavored DTLS server written in C.

rbit commented 10 years ago

Thank you for your report. It's good to hear that client-side functionality can be enabled on OS X with such a simple modification.