[xmlsec] core methods for write of <X509SubjectName/> and <X509IssuerSerial/>
Roumen Petrov
xmlsec@roumenpetrov.info
Wed, 23 Jul 2003 16:13:25 +0300
This is a multi-part message in MIME format.
--------------050000070807040401050805
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Please find attached file "openssl-x509.c.diff.gz" with proposed patch.
Aleksey Sanin wrote:
>> O.K.
>> but when <X509Data/> in template contain child nodes some XXXXRead
>> methods fails.
>> This happen beffore call of xmlSecOpenSSLKeyDataX509XmlWrite(...).
>> At momment I can put only <X509SubjectName/> in <X509Data/> without
>> XXXXRead to fail.
>
> Well, probably the code in the xmlSecOpenSSLX509CertificateNodeRead()
> and friends
> needs to be smart enough to do not print an error if the node content
> is empty and just skip
> it instead.
--------------050000070807040401050805
Content-Type: application/gzip;
name="openssl-x509.c.diff.gz"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="openssl-x509.c.diff.gz"
H4sICBOJHj8CA29wZW5zc2wteDUwOS5jLmRpZmYA5Vx5c9pIFv8bPkXHVbMDSGQE2PggzsSx
iYcygRQkO97a2VIJaGxtQLCSSJyd5Ltvvz6k1i2wYjuzrhkT9/H0zt97faB6vY7uDrTj59Pn
w1HvstTUtFZdO6w3W6ihnRwcnBwcPdfED1K0lqaVFUXhcwLD2yfa0cn+YWT4q1eofqCpjSOk
kI/WAXr1qowc13DNKTItt1S6Wy7GeDpcY2s87l8TwufYds25OTVcPFjN8Agbs1KFjbrCXy4M
13jn2mhGPtUyKvEfRAbAaOiyyGeoi83tWfPVuXsHYz56f1U7ZWUbfn63TReXKtBTQ1PSp5aV
ZC5iu6YbO9STzl+6vsabyb/x1B0Yy6ehrxA/xegrUws9x9lge4xt01g8CTWEGXogPYyvep74
j+sGjBEqNiH63QU/H/WfhuCcEWZvJrdO2ojs9uIxsYIrA/j5O/HK+Zcza9a9c21j6pKuBI0h
Xy/eAP5MNaYriSvIAocNtY2UoyO10ZKTAPWLBNh9bTi4vX+BbS+az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