]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Starting to implement check_credibility within scarmt.c
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sun, 13 Jul 2025 13:29:36 +0000 (09:29 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Sun, 13 Jul 2025 13:29:36 +0000 (09:29 -0400)
app/scarmt.c

index f419d06396718d32d9c6b9b04410417a33f0deb9..0245c760b2c4eae2c23aa92a148713fbdb34032f 100644 (file)
 */
 /********************************************************/
 /*                                                     */
+/*     Procedure to check the remote ip credibility    */
+/*      remote ip credibility.                          */
+/*                                                     */
+/********************************************************/
+static void check_credibility(SQLPTR *sqlptr,char **dnsbls,char *rmtip)
+
+{
+#define OPEP    "scarmt.c:check_credibilty,"
+
+if (dnsbls!=(char **)0) {
+  while (*dnsbls!=(char *)0) {
+    (void) rou_alert(0,"%s JMPDBG scan <%s> against <%s>",OPEP,rmtip,*dnsbls);
+    dnsbls++;
+    }
+  }
+
+#undef  OPEP
+}
+/*
+\f
+*/
+/********************************************************/
+/*                                                     */
 /*     Procedure to load the list of dnsbls server     */
 /*      remote ip credibility.                          */
 /*                                                     */
@@ -166,7 +189,7 @@ while (proceed==true) {
       break;
     case 4      :       //check entries
       for (int i=0;rmtip[i]!=(char *)0;i++) {
-        (void) rou_alert(0,"%s JMPDBG need to scan <%s>",OPEP,rmtip[i]);
+        (void) check_credibility(sqlptr,dnsbls,rmtip[i]);
         if ((hangup==true)||((reload==true))) 
           break;        //No need to check other remote
         }