From: Karl-Heinz Zimmer Date: Thu, 20 Jun 2002 05:05:43 +0000 (+0000) Subject: added some entries to DN normalization function X-Git-Tag: gpgme-1.2.0@1385~943 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6c18a3e29d05888d37b562232af131d96fdb8857;p=gpgme.git added some entries to DN normalization function --- diff --git a/trunk/gpgmeplug/gpgmeplug.c b/trunk/gpgmeplug/gpgmeplug.c index b0ab263..39471cc 100644 --- a/trunk/gpgmeplug/gpgmeplug.c +++ b/trunk/gpgmeplug/gpgmeplug.c @@ -2076,9 +2076,20 @@ static int add_dn_part( char* result, struct DnPair* dn, const char* part ) static char* reorder_dn( struct DnPair *dn ) { + /* const char* stdpart[] = { "CN", "OU", "O", "STREET", "L", "ST", "C", NULL }; + */ + // note: The must parts are: CN, L, OU, O, C + const char* stdpart[] = { + "CN", "S", "SN", "GN", "T", "UID", + "MAIL", "EMAIL", "MOBILE", "TEL", "FAX", "STREET", + "L", "PC", "SP", "ST", + "OU", + "O", + "C" + }; int any=0, any2=0, len=0, i; char* result; for( i = 0; dn[i].key; ++i ) {