Hi Sergei,
On Mon, May 14, 2007 at 04:07:55PM +0400, Sergei Vyshenski wrote:
> 1. Could you please clarify what do you mean by FR#1702736 ?
>
> It seems that when Name and OID are passed as utf8 it is the most
> general option, as ascii or hex representations
> do not change if treated as utf8?
> Also, what Windows stuff do you mean?
Apparently, this has something to do with domain controllers
(see http://support.microsoft.com/kb/291010, for example). They need the
GUID subject alternative name hex-encoded.
> 2. Do you think that it could be a benefit for something, if we change
> serialize/deserialize concept in a following way?
>
> Serialized data should contain (withing itself) a set of utf8/non-utf8 flags,
> one flag for each scalar constituent of the data. E.g.:
>
> HASH 347 32 u8 cert_subject_alt_name_choice_key SCALAR 5 n8 email 15 u8
> cert_subject_OU SCALAR 0
>
> where "u8" means that before serialization corresponding field
> (which goes after the flag) had utf8 flag set in perl,
> and "n8" means that before serialization corresponding field
> (which goes after the flag) had NOT utf8 flag set in perl.
>
> Sure deserialization should make use of u8/n8 flags when restoring data.
Hmmm, is this really needed? I believe that before serialization, the
necessary data should be encoded to UTF8 using encode_utf8($string)
and decoded afterwards using decode_utf8($string) ... Thus, for the
serialization it is just binary data, for which the user has to decide
whether he assumes that it is UTF8 or not.
Your approach would shift the user decision to whether the perl UTF8
flag is set or not, I'm not sure if this is exactly what we want ...
Not sure if this makes perfect sense, I still don't really grok the
Perl Unicode handling, maybe someone can clear that up a bit more ...
Best regards,
Alex
--
Dipl.-Math. Alexander Klink | IT-Security Engineer
[EMAIL PROTECTED] | working @ urn:oid:1.3.6.1.4.1.11417
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
OpenXPKI-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openxpki-devel