From 4f05dbeacc0aecfd1f6a40f20af754336d60d8c8 Mon Sep 17 00:00:00 2001 From: John Thiltges Date: Fri, 22 Apr 2022 10:01:30 -0500 Subject: [PATCH] [XrdCrypto] Modify XrdCryptosslNameOneLine to allow commas in DNs --- src/XrdCrypto/XrdCryptosslAux.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/XrdCrypto/XrdCryptosslAux.cc b/src/XrdCrypto/XrdCryptosslAux.cc index 86c78e6a8fc..eebcd181f77 100644 --- a/src/XrdCrypto/XrdCryptosslAux.cc +++ b/src/XrdCrypto/XrdCryptosslAux.cc @@ -762,13 +762,13 @@ void XrdCryptosslNameOneLine(X509_NAME *nm, XrdOucString &s) #ifndef USEX509NAMEONELINE BIO *mbio = BIO_new(BIO_s_mem()); - X509_NAME_print_ex(mbio, nm, 0, XN_FLAG_COMPAT); + X509_NAME_print_ex(mbio, nm, 0, XN_FLAG_SEP_MULTILINE); char *data = 0; long len = BIO_get_mem_data(mbio, &data); s = "/"; s.insert(data, 1, len); BIO_free(mbio); - s.replace(", ", "/"); + s.replace("\n", "/"); #else char *xn = X509_NAME_oneline(nm, 0, 0); s = xn;