projects
/
gpgme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a0eb84
)
added some entries to DN normalization function
author
Karl-Heinz Zimmer
<khz@kde.org>
Thu, 20 Jun 2002 05:05:43 +0000
(
05:05
+0000)
committer
Karl-Heinz Zimmer
<khz@kde.org>
Thu, 20 Jun 2002 05:05:43 +0000
(
05:05
+0000)
gpgmeplug/gpgmeplug.c
patch
|
blob
|
history
diff --git
a/gpgmeplug/gpgmeplug.c
b/gpgmeplug/gpgmeplug.c
index b0ab263883d3088bf9324b507de46b2c39023907..39471cc3847ec821a905538ddd132c642473cd4e 100644
(file)
--- 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 ) {