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>
This commit is contained in:
NIIBE Yutaka 2017-07-24 15:35:34 +09:00
parent 274602820c
commit 789401e955
2 changed files with 2 additions and 1 deletions

View File

@ -3282,7 +3282,7 @@ gpg_error_t
http_verify_server_credentials (http_session_t sess) http_verify_server_credentials (http_session_t sess)
{ {
#if HTTP_USE_GNUTLS #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; int rc;
unsigned int status; unsigned int status;
const char *hostname; const char *hostname;

View File

@ -363,6 +363,7 @@ parse_one_pattern (const char *pattern)
break; break;
case '*': case '*':
pattern++; pattern++;
/* fall through */
default: /* Take as substring match. */ default: /* Take as substring match. */
{ {
const char format[] = "(|(sn=*%s*)(|(cn=*%s*)(mail=*%s*)))"; const char format[] = "(|(sn=*%s*)(|(cn=*%s*)(mail=*%s*)))";