summaryrefslogtreecommitdiffstats
path: root/dirmngr
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2017-07-24 08:35:34 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2017-07-24 08:35:34 +0200
commit789401e9557db13422f47a8c09e693f3cee0132b (patch)
tree7825f6a596791df017c1c8c173234693d77baeda /dirmngr
parentdirmngr: Minor fix for Windows. (diff)
downloadgnupg2-789401e9557db13422f47a8c09e693f3cee0132b.tar.xz
gnupg2-789401e9557db13422f47a8c09e693f3cee0132b.zip
dirmngr: More minor fixes.
* dirmngr/http.c (http_verify_server_credentials): Duplicated const. * dirmngr/ldap.c (parse_one_pattern): Add comment. Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'dirmngr')
-rw-r--r--dirmngr/http.c2
-rw-r--r--dirmngr/ldap.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/dirmngr/http.c b/dirmngr/http.c
index c64107072..b16de7d6f 100644
--- a/dirmngr/http.c
+++ b/dirmngr/http.c
@@ -3282,7 +3282,7 @@ gpg_error_t
http_verify_server_credentials (http_session_t sess)
{
#if HTTP_USE_GNUTLS
- static const char const errprefix[] = "TLS verification of peer failed";
+ static const char errprefix[] = "TLS verification of peer failed";
int rc;
unsigned int status;
const char *hostname;
diff --git a/dirmngr/ldap.c b/dirmngr/ldap.c
index d661a6825..adf83071e 100644
--- a/dirmngr/ldap.c
+++ b/dirmngr/ldap.c
@@ -363,6 +363,7 @@ parse_one_pattern (const char *pattern)
break;
case '*':
pattern++;
+ /* fall through */
default: /* Take as substring match. */
{
const char format[] = "(|(sn=*%s*)(|(cn=*%s*)(mail=*%s*)))";