Then how to convert a Octet string to Readable format .

On Tue, Apr 3, 2012 at 6:03 PM, <carlyo...@keycomm.co.uk> wrote:

> >On Tue 03/04/12 12:46 PM , brajan balamurugan....@gmail.com sent:
> >
> >I want to know what is ASN1_OCTET_STRING and how to convert that into c++
> >string /char *
> >--
>
> An ASN1_OCTET_STRING is just another name for the ASN1_STRING type.
> Assuming that the data you are trying to manipulate corresponds to an octet
> boundary (it truly is just a collection of octets and not a bit string),
> then you can simple treat it as a block of memory to be copied around.
>
> ASN1_STRING.length holds the length of the data and ASN1_STRING.data is a
> pointer to the octet "string" ( I never liked the term string here because
> C/C++ programmers always think of a string being NUL terminated whereas an
> octet string is usually not).
>
> Carl
>
>
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           majord...@openssl.org
>



-- 
Thanks & Regards
Balamurugan Rajan,

Reply via email to