Isn't version defaulted to 1 in the ASN.1 module? (I didn't go grab it
to look, but I'm nearly certain it is.) In that case, it'd be omitted.

Geoff

On Fri, May 11, 2012 at 5:23 AM, ngn <[email protected]> wrote:
>
>
> in  program -
>
>  BERGeneralDecoder context(tbsCert,0x02); // consume the context tag on the
> version
>
>        word32 ver;
>
>  BERDecodeUnsigned<word32>(context,ver,BOOLEAN,0,2); // only want a v1 cert
>
> but i am not able to understand in BERGeneralDecoder 's constructor
> (context) 's second argument i.e. asnTag what it tells.
> and what is value of asnTag  for version 1 . i know for version 3 is 0xa0.
>
> in BERDecodeUnsigned 's constructor what should i pass in 3rd ,4th ,5th
> argument .and what are the significance of these argument.
> please reply as soon as possible.
> --
> View this message in context: 
> http://old.nabble.com/RGD%3Ahow-to-extract-public-key-from-x509-certificate--version-1-tp33774365p33774365.html
> Sent from the Crypto++ Users mailing list archive at Nabble.com.
>
> --
> You received this message because you are subscribed to the "Crypto++ Users" 
> Google Group.
> To unsubscribe, send an email to [email protected].
> More information about Crypto++ and this group is available at 
> http://www.cryptopp.com.

-- 
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [email protected].
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.

Reply via email to