On Tue, 12 Oct 2004 14:47:05 -0400, Greg MacLellan <[EMAIL PROTECTED]> wrote: > Now uses X509_NAME_print_ex(), using the XN_FLAGS_RFC2253 option.
Looks much better now > bool openssl_csr_subject(mixed csr, string &out) > > Now, I don't do very much C coding, and I'm pretty new to the zend API.. > One thing I couldn't figure out was why (in php) openssl_csr_subject() > won't put anything into $out if it's passed an undefined variable (where > as openssl_csr_export, which is very similar, works). > PHP_FE(openssl_csr_export, arg2_force_ref) > + PHP_FE(openssl_csr_subject, NULL) The answer is here; you need to mark the function entry as requiring the second arg to be passed by ref by replacing that NULL with arg2_force_ref. If you can make that change and then either put the diff online, or as a regular MIME plain text attachment and not inlined, so that it is easy to get at without it being mangled in the email, I will apply it to CVS. Thanks :) --Wez. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php