jselbie / stunserver

Version 1.2. This is the source code to STUNTMAN - an open source STUN server and client code by john selbie. Compliant with the latest RFCs including 5389, 5769, and 5780. Also includes backwards compatibility for RFC 3489. Compiles on Linux, MacOS, BSD, Solaris, and Win32 with Cygwin. Windows binaries avaialble from www.stunprotocol.org.
http://www.stunprotocol.org
Apache License 2.0
1.41k stars 347 forks source link

Compile fixes/warnings from Mac OS X #16

Closed refnum closed 8 years ago

refnum commented 8 years ago

Fixes some warnings shown by clang on Mac OS X, and adds a missing OPENSSL_INCLUDE.

The missing OPENSSL_INCLUDE is due to Xcode 7 no longer shipping OpenSSL headers on the Mac. Previously this would have compiled if those headers could be found implicitly, now it will only compile if OPENSSL_INCLUDE is both defined in common.inc and used by each Makefile that needs it.

jselbie commented 8 years ago

Thanks Dair for cleaning this up. I'll look at pulling this in later tonight. See my comment on the IS_LINUX change.

jselbie commented 8 years ago

Merged changes. Then I updated to the code to use CommonCrypto on Mac instead of OpenSSL.