Re: [Wireshark-dev] How do I expose ECDSA-Sig-Value as a dissect function in pkcs1?

2020-05-07 Thread Richard Sharpe
On Thu, May 7, 2020 at 8:04 AM Pascal Quantin  wrote:
>
> Hi Richard,
>
> Le jeu. 7 mai 2020 à 17:01, Richard Sharpe  a 
> écrit :
>>
>> Hi folks,
>>
>> I need a dissector for an EDCSA-Sig-Value, and it is nicely defined in
>> epan/dissectors/asn1/pkcs1/PKIXAlgs-2009.asn as:
>>
>> -
>>ECDSA-Sig-Value ::= SEQUENCE {
>> r  INTEGER,
>> s  INTEGER
>>}
>> -
>>
>> I tried the obvious by adding it as an export to the pkcs1.cnf file by
>> adding it to the .EXPORTS section but perhaps I forgot to remove it
>> from the .NO_EMIT section ...
>
>
> Do you need a dissector registered by name, or a function to call?

Just a function to call.

After sending this message I tried removing it from the .NO_EMIT
section and adding it to the .EXPORTS section and wonder of wonders, I
got a callable function that does what I need :-)

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)(传说杜康是酒的发明者)
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] How do I expose ECDSA-Sig-Value as a dissect function in pkcs1?

2020-05-07 Thread Pascal Quantin
Hi Richard,

Le jeu. 7 mai 2020 à 17:01, Richard Sharpe  a
écrit :

> Hi folks,
>
> I need a dissector for an EDCSA-Sig-Value, and it is nicely defined in
> epan/dissectors/asn1/pkcs1/PKIXAlgs-2009.asn as:
>
> -
>ECDSA-Sig-Value ::= SEQUENCE {
> r  INTEGER,
> s  INTEGER
>}
> -
>
> I tried the obvious by adding it as an export to the pkcs1.cnf file by
> adding it to the .EXPORTS section but perhaps I forgot to remove it
> from the .NO_EMIT section ...
>

Do you need a dissector registered by name, or a function to call?

Best regards,
Pascal.
___
Sent via:Wireshark-dev mailing list 
Archives:https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe