report the expired certificate into syslog
authorAleš Křenek <ljocha@ics.muni.cz>
Mon, 11 Dec 2006 17:04:51 +0000 (17:04 +0000)
committerAleš Křenek <ljocha@ics.muni.cz>
Mon, 11 Dec 2006 17:04:51 +0000 (17:04 +0000)
org.glite.lb.server/src/bkserverd.c

index 215c679..77132c9 100644 (file)
@@ -845,6 +845,8 @@ int bk_handle_connection(int conn, struct timeval *timeout, void *data)
                else if (ret == EDG_WLL_GSS_ERROR_GSS) {
                        edg_wll_SetErrorGss(ctx,"Client authentication",&gss_code);
                        if (strstr(ctx->errDesc,_EXPIRED_CERTIFICATE_MESSAGE)) {
+                               dprintf(("[%d] false expired certificate: %s\n",ctx->errDesc));
+                               if (!debug) syslog(LOG_ERR,"false expired certificate: %s",ctx->errDesc);
                                edg_wll_FreeContext(ctx);
                                return -1;
                        }