[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: memory leaks



At 04:57 AM 2001-12-05, Julio Sánchez Fernández wrote:
>El mié, 05-12-2001 a las 10:31, Pierangelo Masarati escribió:
>
>> I see from openssl headers that the X509_NAME basically is a 
>> stack of X509_NAME_ENTRY, each of which on turn is made of a 
>> ASN1_OBJECT (the attr, I suppose) and a ASN1_STRING (the value).
>
>The value may be in any string syntax, i.e. printableString,
>teletexString, bmpString, universalString, utf8String.

Yes, just like a CN=#BERVALUE.

>> If you can access the attrs and the values, all you need to do is
>> 
>>       for each rdn
>>               for each ava
>>                       ava = ldapava_new(attr, value)
>>                       ldapava_append_to_rdn(rdn, ava)
>>               end
>>               ldapava_append_to_dn(dn, rdn)
>>       end
>
>IIRC, each entry in the stack has a level identifier.  Al AVAs in the
>same RDN share the same level. A level change always marks the beginning
>of a new RDN.
>
>The mssing part, IIRC, is converting to UTF8, right?

Yes, and this requires knowledge of schema.