Commit a856267a authored by Sam Rushing's avatar Sam Rushing

default to oem openssl, but print a message either way

parent 7517d5bf
...@@ -68,9 +68,9 @@ import sys ...@@ -68,9 +68,9 @@ import sys
# For OS X: use 'manual static link' # For OS X: use 'manual static link'
# statically link is a bit tricky # statically link is a bit tricky
# Note: be sure to remove coro/openssl.c if you change this, see NPN probe below. # Note: be sure to remove coro/ssl/openssl.c if you change this, see NPN probe below.
ossl_base = '/Users/rushing/src/openssl-1.0.1c' #ossl_base = '/Users/rushing/src/openssl-1.0.1c'
#ossl_base = '/usr/' ossl_base = '/usr/'
def O (path): def O (path):
return os.path.join (ossl_base, path) return os.path.join (ossl_base, path)
...@@ -78,6 +78,11 @@ def O (path): ...@@ -78,6 +78,11 @@ def O (path):
# cheap probe for npn support # cheap probe for npn support
USE_NPN = (open (O('include/openssl/ssl.h')).read().find ('next_protos') != -1) USE_NPN = (open (O('include/openssl/ssl.h')).read().find ('next_protos') != -1)
if USE_NPN:
sys.stderr.write ('detected NPN-capable OpenSSL\n')
else:
sys.stderr.write ('NPN support disabled. Needs OpenSSL-1.0.1+\n')
OpenSSL_Extension = Extension ( OpenSSL_Extension = Extension (
'coro.ssl.openssl', 'coro.ssl.openssl',
['coro/ssl/openssl.pyx'], ['coro/ssl/openssl.pyx'],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment