Show DN part names (CN=blah,O=blah...)

This commit is contained in:
Steffen Hansen 2002-06-20 00:44:00 +00:00
parent c445a85ff2
commit 7a0eb84f80

View File

@ -2063,6 +2063,10 @@ static int add_dn_part( char* result, struct DnPair* dn, const char* part )
for(; dn->key; ++dn ) {
if( !strcmp( dn->key, part ) ) {
if( any ) strcat( result, "+" );
/* email hack */
if( !strcmp( part, "1.2.840.113549.1.9.1" ) ) strcat( result, "EMail" );
else strcat( result, part );
strcat( result, "=" );
strcat( result, dn->value );
any = 1;
}