[asterisk-bugs] [Asterisk 0018782]: bfin-uclinux-uclibc:TLS extension can not make calls

Asterisk Bug Tracker noreply at bugs.digium.com
Thu Feb 10 12:06:45 CST 2011


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18782 
====================================================================== 
Reported By:                Timzc
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18782
Category:                   Channels/chan_sip/TCP-TLS
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.8.2.3 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-02-09 21:08 CST
Last Modified:              2011-02-10 12:06 CST
====================================================================== 
Summary:                    bfin-uclinux-uclibc:TLS extension can not make calls
Description: 
First,Please forgive me for my poor english.
Everything works well in ubuntu.
The extension can register but not make calls with TLS.
I think the problem is in function ssl_read() in main/tcptls.c.
static HOOK_T ssl_read(void *cookie, char *buf, LEN_T len)
{
        int i = SSL_read(cookie, buf, len-1);
#if 1
        if (i >= 0)
                buf[i] = '\0';
        ast_verb(0, "ssl read size %d returns %d <%s>\n", (int)len, i,
buf);
#endif
        return i;
}

If len = 1,SSL_read() will get 0 bytes.

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-10 12:06 lmadsen        Description Updated                          
2011-02-10 12:06 lmadsen        Additional Information Updated                  
 
======================================================================




More information about the asterisk-bugs mailing list