1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

* gpgkeys_ldap.c (build_attrs), ksutil.c (ks_toupper, ks_strcasecmp),

ksutil.h: Remove the need for strcasecmp as the field tags are always
lowercase.
This commit is contained in:
David Shaw 2006-09-28 19:30:03 +00:00
parent 29f68725d0
commit 61765b20e6
4 changed files with 10 additions and 33 deletions

View file

@ -367,7 +367,7 @@ build_attrs(LDAPMod ***modlist,char *line)
if((record=strsep(&line,":"))==NULL)
return;
if (ks_strcasecmp("pub",record)==0)
if (strcmp("pub",record)==0)
{
char *tok;
int disabled=0,revoked=0;
@ -473,7 +473,7 @@ build_attrs(LDAPMod ***modlist,char *line)
make_one_attr(modlist,"pgpDisabled",disabled?"1":"0");
make_one_attr(modlist,"pgpRevoked",revoked?"1":"0");
}
else if (ks_strcasecmp("sub",record)==0)
else if (strcmp("sub",record)==0)
{
char *tok;
@ -511,7 +511,7 @@ build_attrs(LDAPMod ***modlist,char *line)
/* Ignore the rest of the items for subkeys since the LDAP
schema doesn't store them. */
}
else if (ks_strcasecmp("uid",record)==0)
else if (strcmp("uid",record)==0)
{
char *userid,*tok;
@ -548,7 +548,7 @@ build_attrs(LDAPMod ***modlist,char *line)
make_one_attr(modlist,"pgpUserID",userid);
}
else if(ks_strcasecmp("sig",record)==0)
else if(strcmp("sig",record)==0)
{
char *tok;