how to extract public key from x509 certificate version 1 ?
in my 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 for x509 version 1 .and what are the significance of these argument .
please reply as soon as possible.