diff options
author | Karl-Heinz Zimmer <[email protected]> | 2002-06-20 05:05:43 +0000 |
---|---|---|
committer | Karl-Heinz Zimmer <[email protected]> | 2002-06-20 05:05:43 +0000 |
commit | af2050538e35553fbd7d3861d19861a649581c62 (patch) | |
tree | b1f191ae1dfd17e23ba6bec865f5788431d76985 | |
parent | Show DN part names (CN=blah,O=blah...) (diff) | |
download | gpgme-af2050538e35553fbd7d3861d19861a649581c62.tar.gz gpgme-af2050538e35553fbd7d3861d19861a649581c62.zip |
added some entries to DN normalization function
-rw-r--r-- | gpgmeplug/gpgmeplug.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gpgmeplug/gpgmeplug.c b/gpgmeplug/gpgmeplug.c index b0ab2638..39471cc3 100644 --- a/gpgmeplug/gpgmeplug.c +++ b/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 ) { |