Bonjour, On Wed, 6 Oct 2004 [EMAIL PROTECTED] wrote:
> Is there any function available in the openssl that gives the length of > the entire subject-name as a string. Use X509_NAME_print_ex() with a memory BIO. > The function X509_NAME_oneline expects the buffer and its size. In this > case, we assume some size and get the name as a string. Using this > function, there may be a chance of not getting the entire subject-name as > a string. If you really want to use X509_NAME_oneline() (its usage is discouraged as per the man page), then specify a NULL buffer as its output, and it will be correctly allocated for you. -- Erwann ABALEA <[EMAIL PROTECTED]> - RSA PGP Key ID: 0x2D0EABD5 ----- ``Average programmers should be rounded up and placed in internment camps to keep them away from keyboards.'' Well known Linux personage ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]