Thanks, Tim. Maybe I should look at the code sometime if it's not too
difficult for me to understand. :)

On Thu, Sep 18, 2008 at 13:01, Tim Hudson <[EMAIL PROTECTED]> wrote:

> Clark J. Wang wrote:
>
>> Hi list:
>>
>> I'm new to OpenSSL and have a problem when trying BIGNUM usage. The
>> function ERR_get_error() returned 0 when BN_hex2bn() failed:
>>
>
> The error stack is used for errors which are useful to return to the caller
> and isn't used much in 'leaf nodes' (i.e. things which are low level
> routines which don't use other code to perform their actions).
>
> As such the BN library has almost no use of the error stack in it at all by
> design.
>
> One of the (many) advantages of open source is that you can look at the
> code and compile it up with debug and step through the routines to see what
> is happening.
>
> When you do that you should see that you simply need to remove the 'x' in
> 'xFFFF' and things work nicely as 'x' is not a valid character for a
> hexadecimal string.
>
> Tim.
>
>

Reply via email to