Using TLS support for SRTP for PJSUA-lib

CI
CalvIA IA
Thu, Oct 16, 2008 2:59 AM

Hi,
I'm trying to set up a TLS transport on my WM 6 app built using PJSUA.

I have installed the OpenSSL SDK for Windows.
included the library files,

  • For Debug build: libeay32MTd and ssleay32MTd.
  • For Release build: libeay32MT and ssleay32MT.

set PJSIP_HAS_TLS_TRANSPORT = 1 in config_site.h

added a tls transport to my WM6 app

"status = pjsua_transport_create(PJSIP_TRANSPORT_TLS, &tcp_cfg,
&transport_id);"

when compiled i get this error:

Error 1 error LNK2019: unresolved external symbol pjsip_tls_transport_start
referenced in function pjsua_transport_create pjsua_lib_wince.lib
Error 2 fatal error LNK1120: 1 unresolved externals Windows Mobile 6
Professional SDK

Any one can help?

Thanks.

Calvin

Hi, I'm trying to set up a TLS transport on my WM 6 app built using PJSUA. I have installed the OpenSSL SDK for Windows. included the library files, - For Debug build: libeay32MTd and ssleay32MTd. - For Release build: libeay32MT and ssleay32MT. set PJSIP_HAS_TLS_TRANSPORT = 1 in config_site.h added a tls transport to my WM6 app "status = pjsua_transport_create(PJSIP_TRANSPORT_TLS, &tcp_cfg, &transport_id);" when compiled i get this error: Error 1 error LNK2019: unresolved external symbol pjsip_tls_transport_start referenced in function pjsua_transport_create pjsua_lib_wince.lib Error 2 fatal error LNK1120: 1 unresolved externals Windows Mobile 6 Professional SDK Any one can help? Thanks. Calvin
NI
Nanang Izzuddin
Thu, Oct 16, 2008 4:20 PM

Hi,

It seems TLS on WM platform is disabled on purpose (sorry, not sure
what the reason is). However regarding linking problem, it is caused
by file pjsip/sip_transport_tls_ossl.c is not part of pjsip_core_wince
project, please try to add that file to pjsip_core_wince project, not
sure if that file could be compiled fine on WM platform though.

Regards,
nanang

On Thu, Oct 16, 2008 at 9:59 AM, CalvIA IA calvia08@gmail.com wrote:

Hi,
I'm trying to set up a TLS transport on my WM 6 app built using PJSUA.
I have installed the OpenSSL SDK for Windows.
included the library files,

For Debug build: libeay32MTd and ssleay32MTd.
For Release build: libeay32MT and ssleay32MT.

set PJSIP_HAS_TLS_TRANSPORT = 1 in config_site.h
added a tls transport to my WM6 app
"status = pjsua_transport_create(PJSIP_TRANSPORT_TLS, &tcp_cfg,
&transport_id);"

when compiled i get this error:
Error 1 error LNK2019: unresolved external symbol pjsip_tls_transport_start
referenced in function pjsua_transport_create pjsua_lib_wince.lib
Error 2 fatal error LNK1120: 1 unresolved externals Windows Mobile 6
Professional SDK
Any one can help?
Thanks.
Calvin


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi, It seems TLS on WM platform is disabled on purpose (sorry, not sure what the reason is). However regarding linking problem, it is caused by file pjsip/sip_transport_tls_ossl.c is not part of pjsip_core_wince project, please try to add that file to pjsip_core_wince project, not sure if that file could be compiled fine on WM platform though. Regards, nanang On Thu, Oct 16, 2008 at 9:59 AM, CalvIA IA <calvia08@gmail.com> wrote: > Hi, > I'm trying to set up a TLS transport on my WM 6 app built using PJSUA. > I have installed the OpenSSL SDK for Windows. > included the library files, > > For Debug build: libeay32MTd and ssleay32MTd. > For Release build: libeay32MT and ssleay32MT. > > set PJSIP_HAS_TLS_TRANSPORT = 1 in config_site.h > added a tls transport to my WM6 app > "status = pjsua_transport_create(PJSIP_TRANSPORT_TLS, &tcp_cfg, > &transport_id);" > > when compiled i get this error: > Error 1 error LNK2019: unresolved external symbol pjsip_tls_transport_start > referenced in function pjsua_transport_create pjsua_lib_wince.lib > Error 2 fatal error LNK1120: 1 unresolved externals Windows Mobile 6 > Professional SDK > Any one can help? > Thanks. > Calvin > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
CI
CalvIA IA
Fri, Oct 17, 2008 1:07 AM

Hi Nanang,
Yep, after posting I did try including sip_transport_tls.h
and sip_transport_tls_ossl.c into wince project.

The result is still unable to compile.

Anyone tried implementing TLS on PJSUA/Wince?
I am sure SSL/TLS works on WM cause I have tried OpenVPN on WM 6 devices and
it too uses OpenSSL.

Regards,
Calvin

On Fri, Oct 17, 2008 at 12:20 AM, Nanang Izzuddin nanang@pjsip.org wrote:

Hi,

It seems TLS on WM platform is disabled on purpose (sorry, not sure
what the reason is). However regarding linking problem, it is caused
by file pjsip/sip_transport_tls_ossl.c is not part of pjsip_core_wince
project, please try to add that file to pjsip_core_wince project, not
sure if that file could be compiled fine on WM platform though.

Regards,
nanang

On Thu, Oct 16, 2008 at 9:59 AM, CalvIA IA calvia08@gmail.com wrote:

Hi,
I'm trying to set up a TLS transport on my WM 6 app built using PJSUA.
I have installed the OpenSSL SDK for Windows.
included the library files,

For Debug build: libeay32MTd and ssleay32MTd.
For Release build: libeay32MT and ssleay32MT.

set PJSIP_HAS_TLS_TRANSPORT = 1 in config_site.h
added a tls transport to my WM6 app
"status = pjsua_transport_create(PJSIP_TRANSPORT_TLS, &tcp_cfg,
&transport_id);"

when compiled i get this error:
Error 1 error LNK2019: unresolved external symbol

pjsip_tls_transport_start

referenced in function pjsua_transport_create pjsua_lib_wince.lib
Error 2 fatal error LNK1120: 1 unresolved externals Windows Mobile 6
Professional SDK
Any one can help?
Thanks.
Calvin


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi Nanang, Yep, after posting I did try including sip_transport_tls.h and sip_transport_tls_ossl.c into wince project. The result is still unable to compile. Anyone tried implementing TLS on PJSUA/Wince? I am sure SSL/TLS works on WM cause I have tried OpenVPN on WM 6 devices and it too uses OpenSSL. Regards, Calvin On Fri, Oct 17, 2008 at 12:20 AM, Nanang Izzuddin <nanang@pjsip.org> wrote: > Hi, > > It seems TLS on WM platform is disabled on purpose (sorry, not sure > what the reason is). However regarding linking problem, it is caused > by file pjsip/sip_transport_tls_ossl.c is not part of pjsip_core_wince > project, please try to add that file to pjsip_core_wince project, not > sure if that file could be compiled fine on WM platform though. > > Regards, > nanang > > > On Thu, Oct 16, 2008 at 9:59 AM, CalvIA IA <calvia08@gmail.com> wrote: > > Hi, > > I'm trying to set up a TLS transport on my WM 6 app built using PJSUA. > > I have installed the OpenSSL SDK for Windows. > > included the library files, > > > > For Debug build: libeay32MTd and ssleay32MTd. > > For Release build: libeay32MT and ssleay32MT. > > > > set PJSIP_HAS_TLS_TRANSPORT = 1 in config_site.h > > added a tls transport to my WM6 app > > "status = pjsua_transport_create(PJSIP_TRANSPORT_TLS, &tcp_cfg, > > &transport_id);" > > > > when compiled i get this error: > > Error 1 error LNK2019: unresolved external symbol > pjsip_tls_transport_start > > referenced in function pjsua_transport_create pjsua_lib_wince.lib > > Error 2 fatal error LNK1120: 1 unresolved externals Windows Mobile 6 > > Professional SDK > > Any one can help? > > Thanks. > > Calvin > > > > > > _______________________________________________ > > Visit our blog: http://blog.pjsip.org > > > > pjsip mailing list > > pjsip@lists.pjsip.org > > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >
NI
Nanang Izzuddin
Fri, Oct 17, 2008 5:05 PM

Hi,

In case the compile errors are related to OpenSSL header, then you may
need to 'include' some part of the OpenSSL WINCE build configurations
(e.g: preprocessor settings) into pjsip_core_wince projects.

Regards,
nanang

On Fri, Oct 17, 2008 at 8:07 AM, CalvIA IA calvia08@gmail.com wrote:

Hi Nanang,
Yep, after posting I did try including sip_transport_tls.h
and sip_transport_tls_ossl.c into wince project.

The result is still unable to compile.
Anyone tried implementing TLS on PJSUA/Wince?
I am sure SSL/TLS works on WM cause I have tried OpenVPN on WM 6 devices and
it too uses OpenSSL.
Regards,
Calvin

On Fri, Oct 17, 2008 at 12:20 AM, Nanang Izzuddin nanang@pjsip.org wrote:

Hi,

It seems TLS on WM platform is disabled on purpose (sorry, not sure
what the reason is). However regarding linking problem, it is caused
by file pjsip/sip_transport_tls_ossl.c is not part of pjsip_core_wince
project, please try to add that file to pjsip_core_wince project, not
sure if that file could be compiled fine on WM platform though.

Regards,
nanang

On Thu, Oct 16, 2008 at 9:59 AM, CalvIA IA calvia08@gmail.com wrote:

Hi,
I'm trying to set up a TLS transport on my WM 6 app built using PJSUA.
I have installed the OpenSSL SDK for Windows.
included the library files,

For Debug build: libeay32MTd and ssleay32MTd.
For Release build: libeay32MT and ssleay32MT.

set PJSIP_HAS_TLS_TRANSPORT = 1 in config_site.h
added a tls transport to my WM6 app
"status = pjsua_transport_create(PJSIP_TRANSPORT_TLS, &tcp_cfg,
&transport_id);"

when compiled i get this error:
Error 1 error LNK2019: unresolved external symbol
pjsip_tls_transport_start
referenced in function pjsua_transport_create pjsua_lib_wince.lib
Error 2 fatal error LNK1120: 1 unresolved externals Windows Mobile 6
Professional SDK
Any one can help?
Thanks.
Calvin


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hi, In case the compile errors are related to OpenSSL header, then you may need to 'include' some part of the OpenSSL WINCE build configurations (e.g: preprocessor settings) into pjsip_core_wince projects. Regards, nanang On Fri, Oct 17, 2008 at 8:07 AM, CalvIA IA <calvia08@gmail.com> wrote: > Hi Nanang, > Yep, after posting I did try including sip_transport_tls.h > and sip_transport_tls_ossl.c into wince project. > > The result is still unable to compile. > Anyone tried implementing TLS on PJSUA/Wince? > I am sure SSL/TLS works on WM cause I have tried OpenVPN on WM 6 devices and > it too uses OpenSSL. > Regards, > Calvin > > On Fri, Oct 17, 2008 at 12:20 AM, Nanang Izzuddin <nanang@pjsip.org> wrote: >> >> Hi, >> >> It seems TLS on WM platform is disabled on purpose (sorry, not sure >> what the reason is). However regarding linking problem, it is caused >> by file pjsip/sip_transport_tls_ossl.c is not part of pjsip_core_wince >> project, please try to add that file to pjsip_core_wince project, not >> sure if that file could be compiled fine on WM platform though. >> >> Regards, >> nanang >> >> >> On Thu, Oct 16, 2008 at 9:59 AM, CalvIA IA <calvia08@gmail.com> wrote: >> > Hi, >> > I'm trying to set up a TLS transport on my WM 6 app built using PJSUA. >> > I have installed the OpenSSL SDK for Windows. >> > included the library files, >> > >> > For Debug build: libeay32MTd and ssleay32MTd. >> > For Release build: libeay32MT and ssleay32MT. >> > >> > set PJSIP_HAS_TLS_TRANSPORT = 1 in config_site.h >> > added a tls transport to my WM6 app >> > "status = pjsua_transport_create(PJSIP_TRANSPORT_TLS, &tcp_cfg, >> > &transport_id);" >> > >> > when compiled i get this error: >> > Error 1 error LNK2019: unresolved external symbol >> > pjsip_tls_transport_start >> > referenced in function pjsua_transport_create pjsua_lib_wince.lib >> > Error 2 fatal error LNK1120: 1 unresolved externals Windows Mobile 6 >> > Professional SDK >> > Any one can help? >> > Thanks. >> > Calvin >> > >> > >> > _______________________________________________ >> > Visit our blog: http://blog.pjsip.org >> > >> > pjsip mailing list >> > pjsip@lists.pjsip.org >> > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> > >> > >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >