Mash name spaces to dashes, too
authorAlan T. DeKok <aland@freeradius.org>
Thu, 9 Apr 2015 14:22:48 +0000 (10:22 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 9 Apr 2015 14:22:48 +0000 (10:22 -0400)
src/main/tls.c

index 205ac66..1438d03 100644 (file)
@@ -1886,6 +1886,10 @@ int cbtls_verify(int ok, X509_STORE_CTX *ctx)
 
                        attribute[16 + len] = '\0';
 
+                       for (p = attribute + 16; *p != '\0'; p++) {
+                               if (*p == ' ') *p = '-';
+                       }
+
                        X509V3_EXT_print(out, ext, 0, 0);
                        len = BIO_read(out, value , sizeof(value) - 1);
                        if (len <= 0) continue;