static pj_status_t get_localaddr(pj_ssl_sock_t *ssock,
				 pj_sockaddr_t *addr,
				 int *namelen)
{
    PJ_UNUSED_ARG(addr);
    PJ_UNUSED_ARG(namelen);

#ifdef SSL_SOCK_IMP_USE_OWN_NETWORK
    return network_get_localaddr(ssock, &ssock->local_addr, 
				 &ssock->addr_len);
#else
    return pj_sock_getsockname(ssock->sock, &ssock->local_addr, 
			       &ssock->addr_len);
#endif
}
static pj_status_t get_localaddr(pj_ssl_sock_t *ssock,
				 pj_sockaddr_t *addr,
				 int *namelen)
{
    PJ_UNUSED_ARG(addr);
    PJ_UNUSED_ARG(namelen);

#ifdef SSL_SOCK_IMP_USE_OWN_NETWORK
    return network_get_localaddr(ssock, &ssock->local_addr, 
				 &ssock->addr_len);
#else
    return pj_sock_getsockname(ssock->sock, &ssock->local_addr, 
			       &ssock->addr_len);
#endif
}