diff --git a/lib/ssluse.c b/lib/ssluse.c
index a570f71630b2a8fb241fb52df607d4640405dd70..ea1e62da14f3ef3b0b6d2c5ac0fe7496bc207a6e 100644
--- a/lib/ssluse.c
+++ b/lib/ssluse.c
@@ -574,7 +574,7 @@ static int x509_name_oneline(X509_NAME *a, char *buf, size_t size)
   if(!bio_out)
     return 1; /* alloc failed! */
 
-  rc = X509_NAME_print_ex(bio_out, a, 0, XN_FLAG_SEP_CPLUS_SPC);
+  rc = X509_NAME_print_ex(bio_out, a, 0, XN_FLAG_SEP_SPLUS_SPC);
   BIO_get_mem_ptr(bio_out, &biomem);
 
   if((size_t)biomem->length < size)