Stateless proxy with tls suport

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to develop a stateless proxy with TLS support, I managed to
create the tunnel to listening using the method pjsip_tls_transport_start
but when I trying to send a register with the softphone I get an error
message "handshake failed shared cipher"

code:

 *#if* HAS_TLS_TRANSPORT

/*

* Add TLS transport, with hard-coded port

*/

{


  pjsip_host_port a_name;

 pjsip_tpfactory *tls;


  pj_sockaddr_in addr;


  addr.sin_family = pj_AF_INET();

 addr.sin_addr.s_addr = 0;

 addr.sin_port = pj_htons(5061);

 pj_bzero(&a_name, *sizeof*(pjsip_host_port));


  status = *pjsip_tls_transport_start*(sip_endpt,

 *&app_config,&addr, &a_name, 1, &tls);*


  *if* (status != PJ_SUCCESS) {

 PJ_LOG(3,(THIS_FILE,

 "Error starting TCP transport (port in use?)"));

 *return* 1;

 }


 }

*#endif*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100714/452da721/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux