Re: NSS error handling

2008-09-04 Thread Nelson B Bolyard
Graham Leggett wrote, On 2008-09-02 14:59: > I just added the bug here: > > https://bugzilla.mozilla.org/show_bug.cgi?id=453364 Thanks. > Changing the encryption mode from MODE_ECB to MODE_CBC, causes the > PK11_CreateContextBySymKey function to succeed. That's a big clue. I can think of two

Re: NSS error handling

2008-09-02 Thread Graham Leggett
Nelson B Bolyard wrote: Please file a bug in bugzilla.mozilla.org about that. Product: NSS Component: Libraries Version: whatever version you're using I just added the bug here: https://bugzilla.mozilla.org/show_bug.cgi?id=453364 The gdb trace of how I got there is included, along with the k

Re: NSS error handling

2008-09-02 Thread Nelson B Bolyard
Graham Leggett wrote, On 2008-09-02 12:49: > Graham Leggett wrote: > >> I am trying to call PK11_CreateContextBySymKey and it is returning NULL. > > Using PORT_GetError, the error code returned is zero. Please file a bug in bugzilla.mozilla.org about that. Product: NSS Component: Libraries Versi

Re: NSS error handling

2008-09-02 Thread Graham Leggett
Graham Leggett wrote: I am trying to call PK11_CreateContextBySymKey and it is returning NULL. Using PORT_GetError, the error code returned is zero. Reverse engineering the PK11_CreateContextBySymKey function, I have found that the function returns NULL in a number of locations, many withou

NSS error handling

2008-09-02 Thread Graham Leggett
Hi all, I am trying to call PK11_CreateContextBySymKey and it is returning NULL. I understand that if I called the PORT_GetError function, I would get the error that occurred, but that is still of no use as it is just a number. I found a function called SECU_Strerror that seems to be used to