[krb5-auth-dialog] kerberos: Check if HAVE_HX509_ERR_H is defined



commit 4ae202475a2f033f07d0f62d079d12d1d4e9706b
Author: Guido Günther <agx sigxcpu org>
Date:   Sun Feb 7 16:49:27 2021 +0100

    kerberos: Check if HAVE_HX509_ERR_H is defined
    
    HAVE_HX509_ERR_H is used with #ifdef and #if. The later triggers a
    compile warning if undefined. Leave the other defines untouched
    until we can drop autoconf.

 src/ka-kerberos.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/ka-kerberos.c b/src/ka-kerberos.c
index 520acb7..71006d6 100644
--- a/src/ka-kerberos.c
+++ b/src/ka-kerberos.c
@@ -741,7 +741,7 @@ grab_credentials (KaApplet *applet)
 
     g_object_get (applet, KA_PROP_NAME_PK_USERID, &pk_userid,
                   "pk-anchors", &pk_anchors, NULL);
-#if ENABLE_PKINIT && HAVE_HX509_ERR_H && HAVE_KRB5_GET_INIT_CREDS_OPT_SET_PKINIT
+#if ENABLE_PKINIT && defined(HAVE_HX509_ERR_H) && HAVE_KRB5_GET_INIT_CREDS_OPT_SET_PKINIT
     /* pk_userid set: try pkinit */
     if (pk_userid && strlen (pk_userid)) {
         retval = ka_auth_heimdal_pkinit (applet, &my_creds,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]