Sorry, you're right, I misread your proposal...
I think Steve can answer a little better about the difference in the default read and write functions. In the mean time, did you notice that you mention the implementation of X509 for reading, but X509_AUX for writing. How about using PEM_read_bio_X509_AUX() or PEM_read_X509_AUX? Consistency is a good thing, you know :-). [[EMAIL PROTECTED] - Tue Jul 16 10:05:13 2002]: > Im using OpenSSL Version 0.9.6.d. The lines which are allready in > check_pem() returns 1 if you are Loading a "CERTIFICATE" > (PEM_STRING_X509) > for "TRUSTED CERTIFICATE". > > In the "normal" pem_read funktion the requested type is set to > "CERTIFICATE" > in file pem_all.c > IMPLEMENT_PEM_rw(X509, X509, PEM_STRING_X509, X509) > > So I need to allow trusted Certs to be read as normal certs (like I > did with > my changes), or the requested type should be set to trusted. > > The write Funktion uses "TRUSTED CERTIFICATE" type. > IMPLEMENT_PEM_rw(X509_AUX, X509, PEM_STRING_X509_TRUSTED, X509_AUX) > > Andreas > -- Richard Levitte [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
