< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index  

Re: [reSIProcate-users] Got the exception throw when load the CA on iOS and Android


I'm sorry that is generate on the iOS.

Best regards,

On Tue, Oct 18, 2016 at 10:37 AM, Karlsson <boost.regex@xxxxxxxxx> wrote:
Hi Daniel, below is the log which generated on Android platform:

DEBUG | 20161018-103322.370 | TreamPhone | RESIP | 0x1afd6cc40 | Security.cxx:1155 | BaseSecurity::BaseSecurity
WARNING | 20161018-103322.379 | TreamPhone | RESIP | 0x1afd6cc40 | Security.cxx:3048 | unable to load DH parameters (required for PFS): TlsDHParamsFilename not specified
DEBUG | 20161018-103322.380 | TreamPhone | RESIP | 0x1afd6cc40 | Security.cxx:3095 | ECDH initialized
WARNING | 20161018-103322.380 | TreamPhone | RESIP | 0x1afd6cc40 | Security.cxx:3048 | unable to load DH parameters (required for PFS): TlsDHParamsFilename not specified
DEBUG | 20161018-103322.380 | TreamPhone | RESIP | 0x1afd6cc40 | Security.cxx:3095 | ECDH initialized
INFO | 20161018-103322.396 | TreamPhone | RESIP:DNS | 0x1afd6cc40 | AresDns.cxx:369 | DNS initialization: found  1 name servers
INFO | 20161018-103322.396 | TreamPhone | RESIP:DNS | 0x1afd6cc40 | AresDns.cxx:380 |  name server: 192.168.1.1
DEBUG | 20161018-103322.397 | TreamPhone | RESIP | 0x1afd6cc40 | Compression.cxx:44 | COMPRESSION SUPPORT NOT COMPILED IN
DEBUG | 20161018-103322.397 | TreamPhone | RESIP | 0x1afd6cc40 | Compression.cxx:47 | Compression configuration object created; algorithm = 0
DEBUG | 20161018-103322.403 | TreamPhone | RESIP:TRANSPORT | 0x1afd6cc40 | TransportSelector.cxx:99 | No compression library available
INFO | 20161018-103322.404 | TreamPhone | RESIP | 0x1afd6cc40 | Security.cxx:316 | Files loaded by prefix: 0
WARNING | 20161018-103322.405 | TreamPhone | RESIP | 0x1afd6cc40 | Security.cxx:323 | No root certificates found using legacy prefixes, treating mPath as a normal directory of root certs
ERR | 20161018-103322.405 | TreamPhone | RESIP | 0x1afd6cc40 | FileSystem.cxx:128 | Error calling stat() for //.file: Operation not permitted
DEBUG | 20161018-103322.405 | TreamPhone | RESIP | 0x1afd6cc40 | BaseException.cxx:21 | BaseException at /Users/Jim/esiprocate/rutil/FileSystem.cxx:129 stat() failed

Thanks


On Fri, Oct 14, 2016 at 3:55 PM, Daniel Pocock <daniel@xxxxxxxxxx> wrote:


On 29/09/16 06:21, Karlsson wrote:
> Hi, we have got an issue with the 1.10.2 with loadCADirectory function,
> in this function, below exception is throw:
>


Thanks for reporting this

Can you enable STACK level logging and share the log entries that appear
before the exception?  Which file is it trying to access?  That will be
the last log message before the exception.

Did you make any fix or workaround?

Can anybody suggest how CA roots should be loaded on those platforms?

There was some tweaking of the code relating to this after the 1.10.0
release.  I wanted to ensure subsequent 1.10.x releases were all fully
ABI compatible with 1.10.0 so I made changes that preserve a lot of the
legacy behavior around certificates.  For 1.11, we can probably be a
little more aggressive in changing the CA root initialization code and
leaving out some of the legacy behavior and API methods.

See the commits around this point in time when I was tweaking some of
this in 2015
https://github.com/resiprocate/resiprocate/commit/196c8fdf99bdd0149ba09aeb02c2dbbee94a984f




>    bool
> FileSystem::Directory::iterator::is_directory() const
> {
> #if HAVE_STRUCT_DIRENT_D_TYPE
>    return mDirent->d_type == DT_DIR;
> #else
>    struct stat s;
>    StackLog(<<"calling stat() for " << mDirent->d_name);
>    if(stat(mFullFilename.c_str(), &s) < 0)
>    {
>       ErrLog(<<"Error calling stat() for " << mFullFilename.c_str() << ": " << strerror(errno));
> -->      throw Exception("stat() failed", __FILE__, __LINE__);  not catch this exception.
>    }
>    return S_ISDIR(s.st_mode);
> #endif
> }
>
> Thanks
>
>
> _______________________________________________
> resiprocate-users mailing list
> resiprocate-users@resiprocate.org
> List Archive: http://list.resiprocate.org/archive/resiprocate-users/
>
_______________________________________________
resiprocate-users mailing list
resiprocate-users@resiprocate.org
List Archive: http://list.resiprocate.org/archive/resiprocate-users/