Version 1 (modified by ismangil, 15 years ago) (diff) |
---|
Installing OpenSSL Library
If TLS support is wanted, then OpenSSL SDK must be installed in the development host.
To install OpenSSL SDK from the Win32 binary distribution:
- Install OpenSSL SDK to any folder (e.g. C:\OpenSSL)
- Add OpenSSL DLL location to the system PATH.
- Add OpenSSL include path to Visual Studio includes search directory. Make sure that OpenSSL header files can be accessed from the program with #include <openssl/ssl.h> construct.
- Add OpenSSL library path to Visual Studio library search directory. Make sure the following libraries are accessible:
- For Debug build: libeay32MTd and ssleay32MTd.
- For Release build: libeay32MT and ssleay32MT.
Then to enable TLS transport support in PJSIP, just add
#define PJSIP_HAS_TLS_TRANSPORT 1
in your pj/config_site.h. When this macro is defined, OpenSSL libraries will be automatically linked to the application via the #pragma construct in sip_transport_tls_ossl.c file.