mirror of git://git.gnupg.org/gnupg.git
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:
parent
274602820c
commit
789401e955
|
@ -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;
|
||||||
|
|
|
@ -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*)))";
|
||||||
|
|
Loading…
Reference in New Issue