diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-10-04 01:16:32 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-10-04 01:16:32 +0000 |
commit | d0c98589146d79f1059638057dad9bb80d662339 (patch) | |
tree | 5f9795c9cf9c166337fa6b5e7c54585eb9d368e1 /crypto/asn1/a_strex.c | |
parent | 356c06c7767e7bc4387c8fb3b955ae2c0a661f5b (diff) |
Global DirectoryString mask fix.
Add support for X509_NAME_print_ex() in req.
Initial code for cutomizable X509 print routines.
Diffstat (limited to 'crypto/asn1/a_strex.c')
-rw-r--r-- | crypto/asn1/a_strex.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/crypto/asn1/a_strex.c b/crypto/asn1/a_strex.c index 569b811998..5335538ae0 100644 --- a/crypto/asn1/a_strex.c +++ b/crypto/asn1/a_strex.c @@ -491,12 +491,24 @@ static int do_name_ex(char_io *io_ch, void *arg, X509_NAME *n, int X509_NAME_print_ex(BIO *out, X509_NAME *nm, int indent, unsigned long flags) { + if(flags == XN_FLAG_COMPAT) + return X509_NAME_print(out, nm, indent); return do_name_ex(send_bio_chars, out, nm, indent, flags); } int X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags) { + if(flags == XN_FLAG_COMPAT) + { + BIO *btmp; + int ret; + btmp = BIO_new_fp(fp, BIO_NOCLOSE); + if(!btmp) return -1; + ret = X509_NAME_print(btmp, nm, indent); + BIO_free(btmp); + return ret; + } return do_name_ex(send_fp_chars, fp, nm, indent, flags); } |