Should PK11_Derive() save the failure status?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Should PK11_Derive() save the failure status?

Andrew Cagney
Hi,

I've got a PK11_Derive() call failing (presumably something silly on
my part), but frustratingly, PORT_GetError() just returns 0.

It seems that all variants of PK11_Derive() don't call:

    PORT_SetError(PK11_MapError(crv));

with the error status from ->C_DeriveKey().  Should they?  Or is there
some other way (short of debugging) to get at least a hint has to my
error.

Andrew
--
dev-tech-crypto mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-crypto
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Should PK11_Derive() save the failure status?

Robert Relyea
On 02/22/2017 10:44 AM, Andrew Cagney wrote:

> Hi,
>
> I've got a PK11_Derive() call failing (presumably something silly on
> my part), but frustratingly, PORT_GetError() just returns 0.
>
> It seems that all variants of PK11_Derive() don't call:
>
>      PORT_SetError(PK11_MapError(crv));
>
> with the error status from ->C_DeriveKey().  Should they?

Yes, please write a bug on this. The mapping should happen directly
after the C_DeriveKey() call.

bob
>    Or is there
> some other way (short of debugging) to get at least a hint has to my
> error.
>
> Andrew


--
dev-tech-crypto mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-crypto
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Should PK11_Derive() save the failure status?

Andrew Cagney
I created https://bugzilla.mozilla.org/show_bug.cgi?id=1342434

On 22 February 2017 at 16:23, Robert Relyea <[hidden email]> wrote:

> On 02/22/2017 10:44 AM, Andrew Cagney wrote:
>>
>> Hi,
>>
>> I've got a PK11_Derive() call failing (presumably something silly on
>> my part), but frustratingly, PORT_GetError() just returns 0.
>>
>> It seems that all variants of PK11_Derive() don't call:
>>
>>      PORT_SetError(PK11_MapError(crv));
>>
>> with the error status from ->C_DeriveKey().  Should they?
>
>
> Yes, please write a bug on this. The mapping should happen directly after
> the C_DeriveKey() call.
>
> bob
>
>>    Or is there
>> some other way (short of debugging) to get at least a hint has to my
>> error.
>>
>> Andrew
>
>
>
> --
> dev-tech-crypto mailing list
> [hidden email]
> https://lists.mozilla.org/listinfo/dev-tech-crypto
--
dev-tech-crypto mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-crypto
Loading...