From: Steffen Hansen Date: Thu, 20 Jun 2002 00:44:00 +0000 (+0000) Subject: Show DN part names (CN=blah,O=blah...) X-Git-Tag: gpgme-1.2.0@1385~944 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=77d82f41c03fd919bba45a933aa479eadb82cda6;p=gpgme.git Show DN part names (CN=blah,O=blah...) --- diff --git a/trunk/gpgmeplug/gpgmeplug.c b/trunk/gpgmeplug/gpgmeplug.c index 6d4c700..b0ab263 100644 --- a/trunk/gpgmeplug/gpgmeplug.c +++ b/trunk/gpgmeplug/gpgmeplug.c @@ -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; }