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

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



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@xxxxxxxxxxxxxxx
> List Archive: http://list.resiprocate.org/archive/resiprocate-users/
>