Re: [Wireshark-dev] How do I call the pkcs1 dissection from another dissector?

2010-03-28 Thread Anders Broman



From: wireshark-dev-boun...@wireshark.org 
[mailto:wireshark-dev-boun...@wireshark.org] On Behalf Of Kaul
Sent: den 28 mars 2010 20:18
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] How do I call the pkcs1 dissection from another 
dissector?



On Fri, Mar 26, 2010 at 11:49 PM, Anders Broman 
mailto:anders.bro...@ericsson.com>> wrote:



From: 
wireshark-dev-boun...@wireshark.org<mailto:wireshark-dev-boun...@wireshark.org> 
[mailto:wireshark-dev-boun...@wireshark.org<mailto:wireshark-dev-boun...@wireshark.org>]
 On Behalf Of Kaul
Sent: den 24 mars 2010 07:51

To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] How do I call the pkcs1 dissection from another 
dissector?

On Thu, Mar 18, 2010 at 10:39 AM, Anders Broman 
mailto:anders.bro...@ericsson.com>> wrote:


-Original Message-
From: 
wireshark-dev-boun...@wireshark.org<mailto:wireshark-dev-boun...@wireshark.org> 
[mailto:wireshark-dev-boun...@wireshark.org<mailto:wireshark-dev-boun...@wireshark.org>]
 On Behalf Of Jeff Morriss
Sent: den 17 mars 2010 18:00
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] How do I call the pkcs1 dissection from another 
dissector?

Kaul wrote:
>>
>>
>> On Fri, Mar 12, 2010 at 12:21 AM, Jeff Morriss 
>> http://jeff.morriss.ws>
>> <http://jeff.morriss.ws>@gmail.com<http://gmail.com> <http://gmail.com>> 
>> wrote:
>>
>> Kaul wrote:
>>  > find_dissector("pkcs-1") doesn't seem to be the correct way to do it.
>>  > How do I do it?
>>  > There's a PKCS1 blob I want the PKCS#1 dissector to dissect. How do I
>>  > call it? I can create a TVB for it, of course.
>>
>> You'd need that dissector to be registered by name (by calling
>> register_dissector()) first.
>>
>>
>> Can you elaborate a bit? Who's 'that' ? my dissector or the PKCS#1?
>> And how do I make the PKCS#1 register? It is one of the automatically
>> created dissectors...
>
>Sorry, I meant the PKCS#1 dissector (i.e., you'd have to modify the 
>dissector).  Looking briefly at that
>dissector, I don't quite know how
>register_dissector() should be called (in fact I'm not even clear what the 
>entry point to that dissector is!).

 > I think that "pkcs" is normaly called from other dissectors using OID's. If 
 > you try to explain more explicity what you are trying to do possibly
   > with an example trace we may be able to help you.
 > Regards
 > Anders
 >

 > I have a blob within my protocol that I is a PKCS#1  (v2.0, EME-OAEP format) 
 > that I'd be happy to dissect.
 > Y.
Well what sort of ASN1 structures are included there? The pkcs1 dissector can 
dissect

RSAPublicKey

The above - RSA public key (128bytes, I believe).
TIA,
Y.
  Hi,
You should then just have to include packet-pkcs1.h initalize actx and call

int dissect_pkcs1_RSAPublicKey(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, 
int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_);

possibly with a new tvb containing the  RSAPublicKey

 Regards
Anders


RSAPrivateKey

:
etc the reference in the heaser is RFC 2313
/Anders


___
Sent via:Wireshark-dev mailing list 
mailto:wireshark-dev@wireshark.org>>
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev

mailto:wireshark-dev-requ...@wireshark.org<mailto:wireshark-dev-requ...@wireshark.org>?subject=unsubscribe
___
Sent via:Wireshark-dev mailing list 
mailto:wireshark-dev@wireshark.org>>
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev

mailto:wireshark-dev-requ...@wireshark.org<mailto:wireshark-dev-requ...@wireshark.org>?subject=unsubscribe


___
Sent via:Wireshark-dev mailing list 
mailto:wireshark-dev@wireshark.org>>
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev

mailto:wireshark-dev-requ...@wireshark.org<mailto:wireshark-dev-requ...@wireshark.org>?subject=unsubscribe

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

Re: [Wireshark-dev] How do I call the pkcs1 dissection from another dissector?

2010-03-28 Thread Kaul
On Fri, Mar 26, 2010 at 11:49 PM, Anders Broman
wrote:

>
>
>  --
> *From:* wireshark-dev-boun...@wireshark.org [mailto:
> wireshark-dev-boun...@wireshark.org] *On Behalf Of *Kaul
> *Sent:* den 24 mars 2010 07:51
>
> *To:* Developer support list for Wireshark
> *Subject:* Re: [Wireshark-dev] How do I call the pkcs1 dissection from
> another dissector?
>
>  On Thu, Mar 18, 2010 at 10:39 AM, Anders Broman <
> anders.bro...@ericsson.com> wrote:
>
>>
>>
>> -Original Message-
>> From: wireshark-dev-boun...@wireshark.org [mailto:
>> wireshark-dev-boun...@wireshark.org] On Behalf Of Jeff Morriss
>> Sent: den 17 mars 2010 18:00
>> To: Developer support list for Wireshark
>> Subject: Re: [Wireshark-dev] How do I call the pkcs1 dissection from
>> another dissector?
>>
>> Kaul wrote:
>> >>
>> >>
>> >> On Fri, Mar 12, 2010 at 12:21 AM, Jeff Morriss > >> <http://jeff.morriss.ws>@gmail.com <http://gmail.com>> wrote:
>> >>
>> >> Kaul wrote:
>> >>  > find_dissector("pkcs-1") doesn't seem to be the correct way to
>> do it.
>> >>  > How do I do it?
>> >>  > There's a PKCS1 blob I want the PKCS#1 dissector to dissect. How
>> do I
>> >>  > call it? I can create a TVB for it, of course.
>> >>
>> >> You'd need that dissector to be registered by name (by calling
>> >> register_dissector()) first.
>> >>
>> >>
>> >> Can you elaborate a bit? Who's 'that' ? my dissector or the PKCS#1?
>> >> And how do I make the PKCS#1 register? It is one of the automatically
>> >> created dissectors...
>> >
>> >Sorry, I meant the PKCS#1 dissector (i.e., you'd have to modify the
>> dissector).  Looking briefly at that
>> >dissector, I don't quite know how
>> >register_dissector() should be called (in fact I'm not even clear what
>> the entry point to that dissector is!).
>>
>>  > I think that "pkcs" is normaly called from other dissectors using
>> OID's. If you try to explain more explicity what you are trying to do
>> possibly
>>> with an example trace we may be able to help you.
>>  > Regards
>>  > Anders
>>  >
>>
>
>  > I have a blob within my protocol that I is a PKCS#1  (v2.0, EME-OAEP
> format) that I'd be happy to dissect.
>  > Y.
> Well what sort of ASN1 structures are included there? The pkcs1 dissector
> can dissect
>
> RSAPublicKey
>

The above - RSA public key (128bytes, I believe).
TIA,
Y.


>  RSAPrivateKey
> :
> etc the reference in the heaser is RFC 2313
> /Anders
>
>
>
>> ___
>> Sent via:Wireshark-dev mailing list 
>> Archives:http://www.wireshark.org/lists/wireshark-dev
>> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>> mailto:wireshark-dev-requ...@wireshark.org
>> ?subject=unsubscribe
>>
>> ___
>> Sent via:Wireshark-dev mailing list 
>> Archives:http://www.wireshark.org/lists/wireshark-dev
>> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
>> mailto:wireshark-dev-requ...@wireshark.org
>> ?subject=unsubscribe
>>
>
>
> ___
> Sent via:Wireshark-dev mailing list 
> Archives:http://www.wireshark.org/lists/wireshark-dev
> Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
> mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe
>
___
Sent via:Wireshark-dev mailing list 
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe

Re: [Wireshark-dev] How do I call the pkcs1 dissection from another dissector?

2010-03-26 Thread Anders Broman



From: wireshark-dev-boun...@wireshark.org 
[mailto:wireshark-dev-boun...@wireshark.org] On Behalf Of Kaul
Sent: den 24 mars 2010 07:51
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] How do I call the pkcs1 dissection from another 
dissector?

On Thu, Mar 18, 2010 at 10:39 AM, Anders Broman 
mailto:anders.bro...@ericsson.com>> wrote:


-Original Message-
From: 
wireshark-dev-boun...@wireshark.org<mailto:wireshark-dev-boun...@wireshark.org> 
[mailto:wireshark-dev-boun...@wireshark.org<mailto:wireshark-dev-boun...@wireshark.org>]
 On Behalf Of Jeff Morriss
Sent: den 17 mars 2010 18:00
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] How do I call the pkcs1 dissection from another 
dissector?

Kaul wrote:
>>
>>
>> On Fri, Mar 12, 2010 at 12:21 AM, Jeff Morriss 
>> http://jeff.morriss.ws>
>> <http://jeff.morriss.ws>@gmail.com<http://gmail.com> <http://gmail.com>> 
>> wrote:
>>
>> Kaul wrote:
>>  > find_dissector("pkcs-1") doesn't seem to be the correct way to do it.
>>  > How do I do it?
>>  > There's a PKCS1 blob I want the PKCS#1 dissector to dissect. How do I
>>  > call it? I can create a TVB for it, of course.
>>
>> You'd need that dissector to be registered by name (by calling
>> register_dissector()) first.
>>
>>
>> Can you elaborate a bit? Who's 'that' ? my dissector or the PKCS#1?
>> And how do I make the PKCS#1 register? It is one of the automatically
>> created dissectors...
>
>Sorry, I meant the PKCS#1 dissector (i.e., you'd have to modify the 
>dissector).  Looking briefly at that
>dissector, I don't quite know how
>register_dissector() should be called (in fact I'm not even clear what the 
>entry point to that dissector is!).

 > I think that "pkcs" is normaly called from other dissectors using OID's. If 
 > you try to explain more explicity what you are trying to do possibly
   > with an example trace we may be able to help you.
 > Regards
 > Anders
 >

 > I have a blob within my protocol that I is a PKCS#1  (v2.0, EME-OAEP format) 
 > that I'd be happy to dissect.
 > Y.
Well what sort of ASN1 structures are included there? The pkcs1 dissector can 
dissect

RSAPublicKey

RSAPrivateKey

:
etc the reference in the heaser is RFC 2313
/Anders

___
Sent via:Wireshark-dev mailing list 
mailto:wireshark-dev@wireshark.org>>
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev

mailto:wireshark-dev-requ...@wireshark.org<mailto:wireshark-dev-requ...@wireshark.org>?subject=unsubscribe
___
Sent via:Wireshark-dev mailing list 
mailto:wireshark-dev@wireshark.org>>
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev

mailto:wireshark-dev-requ...@wireshark.org<mailto:wireshark-dev-requ...@wireshark.org>?subject=unsubscribe

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

Re: [Wireshark-dev] How do I call the pkcs1 dissection from another dissector?

2010-03-23 Thread Kaul
On Thu, Mar 18, 2010 at 10:39 AM, Anders Broman
wrote:

>
>
> -Original Message-
> From: wireshark-dev-boun...@wireshark.org [mailto:
> wireshark-dev-boun...@wireshark.org] On Behalf Of Jeff Morriss
> Sent: den 17 mars 2010 18:00
> To: Developer support list for Wireshark
> Subject: Re: [Wireshark-dev] How do I call the pkcs1 dissection from
> another dissector?
>
> Kaul wrote:
> >>
> >>
> >> On Fri, Mar 12, 2010 at 12:21 AM, Jeff Morriss  >> <http://jeff.morriss.ws>@gmail.com <http://gmail.com>> wrote:
> >>
> >> Kaul wrote:
> >>  > find_dissector("pkcs-1") doesn't seem to be the correct way to do
> it.
> >>  > How do I do it?
> >>  > There's a PKCS1 blob I want the PKCS#1 dissector to dissect. How
> do I
> >>  > call it? I can create a TVB for it, of course.
> >>
> >> You'd need that dissector to be registered by name (by calling
> >> register_dissector()) first.
> >>
> >>
> >> Can you elaborate a bit? Who's 'that' ? my dissector or the PKCS#1?
> >> And how do I make the PKCS#1 register? It is one of the automatically
> >> created dissectors...
> >
> >Sorry, I meant the PKCS#1 dissector (i.e., you'd have to modify the
> dissector).  Looking briefly at that
> >dissector, I don't quite know how
> >register_dissector() should be called (in fact I'm not even clear what the
> entry point to that dissector is!).
>
> I think that "pkcs" is normaly called from other dissectors using OID's. If
> you try to explain more explicity what you are trying to do possibly with an
> example trace we may be able to help you.
> Regards
> Anders
>

I have a blob within my protocol that I is a PKCS#1  (v2.0, EME-OAEP format)
that I'd be happy to dissect.
Y.

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

Re: [Wireshark-dev] How do I call the pkcs1 dissection from another dissector?

2010-03-18 Thread Anders Broman
 

-Original Message-
From: wireshark-dev-boun...@wireshark.org 
[mailto:wireshark-dev-boun...@wireshark.org] On Behalf Of Jeff Morriss
Sent: den 17 mars 2010 18:00
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] How do I call the pkcs1 dissection from another 
dissector?

Kaul wrote:
>> 
>> 
>> On Fri, Mar 12, 2010 at 12:21 AM, Jeff Morriss > <http://jeff.morriss.ws>@gmail.com <http://gmail.com>> wrote:
>> 
>> Kaul wrote:
>>  > find_dissector("pkcs-1") doesn't seem to be the correct way to do it.
>>  > How do I do it?
>>  > There's a PKCS1 blob I want the PKCS#1 dissector to dissect. How do I
>>  > call it? I can create a TVB for it, of course.
>> 
>> You'd need that dissector to be registered by name (by calling
>> register_dissector()) first.
>> 
>> 
>> Can you elaborate a bit? Who's 'that' ? my dissector or the PKCS#1? 
>> And how do I make the PKCS#1 register? It is one of the automatically 
>> created dissectors...
>
>Sorry, I meant the PKCS#1 dissector (i.e., you'd have to modify the 
>dissector).  Looking briefly at that 
>dissector, I don't quite know how
>register_dissector() should be called (in fact I'm not even clear what the 
>entry point to that dissector is!).

I think that "pkcs" is normaly called from other dissectors using OID's. If you 
try to explain more explicity what you are trying to do possibly with an 
example trace we may be able to help you.
Regards
Anders
___
Sent via:Wireshark-dev mailing list 
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe
___
Sent via:Wireshark-dev mailing list 
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] How do I call the pkcs1 dissection from another dissector?

2010-03-17 Thread Jeff Morriss
Kaul wrote:
> 
> 
> On Fri, Mar 12, 2010 at 12:21 AM, Jeff Morriss  @gmail.com > wrote:
> 
> Kaul wrote:
>  > find_dissector("pkcs-1") doesn't seem to be the correct way to do it.
>  > How do I do it?
>  > There's a PKCS1 blob I want the PKCS#1 dissector to dissect. How do I
>  > call it? I can create a TVB for it, of course.
> 
> You'd need that dissector to be registered by name (by calling
> register_dissector()) first.
> 
> 
> Can you elaborate a bit? Who's 'that' ? my dissector or the PKCS#1? And 
> how do I make the PKCS#1 register? It is one of the automatically 
> created dissectors...

Sorry, I meant the PKCS#1 dissector (i.e., you'd have to modify the 
dissector).  Looking briefly at that dissector, I don't quite know how 
register_dissector() should be called (in fact I'm not even clear what 
the entry point to that dissector is!).
___
Sent via:Wireshark-dev mailing list 
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


Re: [Wireshark-dev] How do I call the pkcs1 dissection from another dissector?

2010-03-12 Thread Kaul
On Fri, Mar 12, 2010 at 12:21 AM, Jeff Morriss wrote:

> Kaul wrote:
> > find_dissector("pkcs-1") doesn't seem to be the correct way to do it.
> > How do I do it?
> > There's a PKCS1 blob I want the PKCS#1 dissector to dissect. How do I
> > call it? I can create a TVB for it, of course.
>
> You'd need that dissector to be registered by name (by calling
> register_dissector()) first.
>

Can you elaborate a bit? Who's 'that' ? my dissector or the PKCS#1? And how
do I make the PKCS#1 register? It is one of the automatically created
dissectors...
Y.


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

Re: [Wireshark-dev] How do I call the pkcs1 dissection from another dissector?

2010-03-11 Thread Jeff Morriss
Kaul wrote:
> find_dissector("pkcs-1") doesn't seem to be the correct way to do it. 
> How do I do it?
> There's a PKCS1 blob I want the PKCS#1 dissector to dissect. How do I 
> call it? I can create a TVB for it, of course.

You'd need that dissector to be registered by name (by calling 
register_dissector()) first.
___
Sent via:Wireshark-dev mailing list 
Archives:http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
 mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe


[Wireshark-dev] How do I call the pkcs1 dissection from another dissector?

2010-03-01 Thread Kaul
find_dissector("pkcs-1") doesn't seem to be the correct way to do it. How do
I do it?
There's a PKCS1 blob I want the PKCS#1 dissector to dissect. How do I call
it? I can create a TVB for it, of course.

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