>On Tue, Apr 3, 2012 at 6:03 PM, wrote:
>>On Tue 03/04/12 12:46 PM , brajan [email protected] 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).
>
>On Tue 03/04/12 1:54 PM , Balamurugan rajan [email protected] sent:
>Then how to convert a Octet string to Readable format .
The question there would be why would you want to? If you really must print it
out, then you need to make a personal decision on the display format - decimal?
binary? hex? bit-string? base-64?
Simplest Hex;
int i;
for(i=0; i
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [email protected]