Hello,

[EMAIL PROTECTED] wrote on 06/26/2008 02:06:47 AM:

> Returning on reading with read() may I ask you about comment header and
> footer? It's safe to jump lines of file pem starting with "-" or it's
> possible that the key contain the char "-" ?
Data between BEGIN and END header is ASN1 structure encoded with base64.
Base64 encoded data can have the following characters:
static const char base64[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZ" "abcdefghijklmnopqrstuvwxyz" "0123456789" 
"+/"
(and '=' as padding character if required - only at end of data)
As you see, there can not be '-' character inside base64 encoded data.

Best regards,
--
Marek Marcola <[EMAIL PROTECTED]>

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to