Add more NULL's to module data structures, in preparation for
authoraland <aland>
Sat, 24 Aug 2002 16:54:55 +0000 (16:54 +0000)
committeraland <aland>
Sat, 24 Aug 2002 16:54:55 +0000 (16:54 +0000)
adding pre/post proxy, and post-auth stages.

Patch from Franck Springinsfeld

32 files changed:
src/modules/rlm_acct_unique/rlm_acct_unique.c
src/modules/rlm_always/rlm_always.c
src/modules/rlm_attr_filter/rlm_attr_filter.c
src/modules/rlm_attr_rewrite/rlm_attr_rewrite.c
src/modules/rlm_chap/rlm_chap.c
src/modules/rlm_counter/rlm_counter.c
src/modules/rlm_cram/rlm_cram.c
src/modules/rlm_dbm/rlm_dbm.c
src/modules/rlm_detail/rlm_detail.c
src/modules/rlm_dictionary/rlm_dictionary.c
src/modules/rlm_digest/rlm_digest.c
src/modules/rlm_eap/rlm_eap.c
src/modules/rlm_example/rlm_example.c
src/modules/rlm_fastusers/rlm_fastusers.c
src/modules/rlm_ippool/rlm_ippool.c
src/modules/rlm_krb5/rlm_krb5.c
src/modules/rlm_ldap/rlm_ldap.c
src/modules/rlm_mschap/rlm_mschap.c
src/modules/rlm_ns_mta_md5/rlm_ns_mta_md5.c
src/modules/rlm_pam/rlm_pam.c
src/modules/rlm_pap/rlm_pap.c
src/modules/rlm_passwd/rlm_passwd.c
src/modules/rlm_perl/rlm_perl.c
src/modules/rlm_preprocess/rlm_preprocess.c
src/modules/rlm_python/rlm_python.c
src/modules/rlm_radutmp/rlm_radutmp.c
src/modules/rlm_realm/rlm_realm.c
src/modules/rlm_smb/rlm_smb.c
src/modules/rlm_sql/rlm_sql.c
src/modules/rlm_sqlcounter/rlm_sqlcounter.c
src/modules/rlm_unix/rlm_unix.c
src/modules/rlm_x99_token/x99_rlm.c

index a141306..fe22330 100644 (file)
@@ -233,7 +233,10 @@ module_t rlm_acct_unique = {
          NULL,                 /* authorization */
          NULL,                 /* preaccounting */
          unique_accounting,    /* accounting */
-         NULL                  /* checksimul */
+         NULL,                 /* checksimul */
+         NULL,                 /* pre-proxy */
+         NULL,                 /* post-proxy */
+         NULL                  /* post-auth */
   },
   unique_detach,               /* detach */
   NULL,                                /* destroy */
index 4525a9e..c1f3a10 100644 (file)
@@ -164,7 +164,10 @@ module_t rlm_always = {
                always_return,          /* authorization */
                always_return,          /* preaccounting */
                always_return,          /* accounting */
-               always_checksimul       /* checksimul */
+               always_checksimul,      /* checksimul */
+               NULL,                   /* pre-proxy */
+               NULL,                   /* post-proxy */
+               NULL                    /* post-auth */
        },
        always_detach,                  /* detach */
        NULL,                           /* destroy */
index 58962f8..015d731 100644 (file)
@@ -426,7 +426,10 @@ module_t rlm_attr_filter = {
                attr_filter_authorize,  /* authorization */
                NULL,                   /* preaccounting */
                NULL,                   /* accounting */
-               NULL                    /* checksimul */
+               NULL,                   /* checksimul */
+               NULL,                   /* pre-proxy */
+               NULL,                   /* post-proxy */
+               NULL                    /* post-auth */
        },
        attr_filter_detach,             /* detach */
        NULL                            /* destroy */
index de8b88c..552f522 100644 (file)
@@ -361,7 +361,10 @@ module_t rlm_attr_rewrite = {
                attr_rewrite_authorize,         /* authorization */
                attr_rewrite_preacct,           /* preaccounting */
                attr_rewrite_accounting,        /* accounting */
-               attr_rewrite_ismul              /* checksimul */
+               attr_rewrite_ismul,             /* checksimul */
+               NULL,                           /* pre-proxy */
+               NULL,                           /* post-proxy */
+               NULL                            /* post-auth */
        },
        attr_rewrite_detach,                    /* detach */
        NULL,                           /* destroy */
index 4b715b0..70b0a01 100644 (file)
@@ -143,7 +143,10 @@ module_t rlm_chap = {
                chap_authorize,         /* authorization */
                NULL,                   /* preaccounting */
                NULL,                   /* accounting */
-               NULL                    /* checksimul */
+               NULL,                   /* checksimul */
+               NULL,                   /* pre-proxy */
+               NULL,                   /* post-proxy */
+               NULL                    /* post-auth */
        },
        NULL,                           /* detach */
        NULL,                           /* destroy */
index 748dd1c..1a8c1b4 100644 (file)
@@ -759,7 +759,10 @@ module_t rlm_counter = {
                counter_authorize,      /* authorization */
                NULL,                   /* preaccounting */
                counter_accounting,     /* accounting */
-               NULL                    /* checksimul */
+               NULL,                   /* checksimul */
+               NULL,                   /* pre-proxy */
+               NULL,                   /* post-proxy */
+               NULL                    /* post-auth */
        },
        counter_detach,                 /* detach */
        NULL,                           /* destroy */
index 9f5d467..6f38162 100644 (file)
@@ -208,7 +208,10 @@ module_t rlm_cram = {
          NULL,                 /* authorize */
          NULL,                 /* pre-accounting */
          NULL,                 /* accounting */
-         NULL                  /* checksimul */
+         NULL,                 /* checksimul */
+         NULL,                 /* pre-proxy */
+         NULL,                 /* post-proxy */
+         NULL                  /* post-auth */
   },
   NULL,                                /* detach */
   NULL,                                /* destroy */
index 99c723e..82d7a6e 100644 (file)
@@ -368,8 +368,11 @@ module_t rlm_dbm = {
                 rlm_dbm_authorize,      /* authorization */
                 NULL,                  /* preaccounting */
                 NULL,                   /* accounting */
-                NULL                    /* checksimul */
-        },
+                NULL,                    /* checksimul */
+                NULL,                  /* pre-proxy */
+                NULL,                  /* post-proxy */
+                NULL                   /* post-auth */
+       },
         rlm_dbm_detach,                 /* detach */
-        NULL                            /* destroy */
+       NULL                            /* destroy */
 };
index b1ee753..e52f512 100644 (file)
@@ -298,7 +298,10 @@ module_t rlm_detail = {
                NULL,                   /* authorization */
                NULL,                   /* preaccounting */
                detail_accounting,      /* accounting */
-               NULL                    /* checksimul */
+               NULL,                   /* checksimul */
+               NULL,                   /* pre-proxy */
+               NULL,                   /* post-proxy */
+               NULL                    /* post-auth */
        },
        detail_detach,                  /* detach */
        NULL                            /* destroy */
index 774a4d4..f49efba 100644 (file)
@@ -63,7 +63,10 @@ module_t rlm_dictionary = {
                NULL,                   /* authorization */
                NULL,                   /* preaccounting */
                NULL,                   /* accounting */
-               NULL                    /* checksimul */
+               NULL,                   /* checksimul */
+               NULL,                   /* pre-proxy */
+               NULL,                   /* post-proxy */
+               NULL                    /* post-auth */
        },
        NULL,                           /* detach */
        NULL                            /* destroy */
index 04e8d63..b70f2ad 100644 (file)
@@ -497,7 +497,10 @@ module_t rlm_digest = {
                digest_authorize,       /* authorization */
                NULL,                   /* preaccounting */
                NULL,                   /* accounting */
-               NULL                    /* checksimul */
+               NULL,                   /* checksimul */
+               NULL,                   /* pre-proxy */
+               NULL,                   /* post-proxy */
+               NULL                    /* post-auth */
        },
        NULL,                           /* detach */
        NULL,                           /* destroy */
index 9595b61..23b33a9 100644 (file)
@@ -344,7 +344,10 @@ module_t rlm_eap = {
                eap_authorize,          /* authorization */
                NULL,                   /* preaccounting */
                NULL,                   /* accounting */
-               NULL                    /* checksimul */
+               NULL,                   /* checksimul */
+               NULL,                   /* pre-proxy */
+               NULL,                   /* post-proxy */
+               NULL                    /* post-auth */
        },
        eap_detach,                     /* detach */
        NULL,                           /* destroy */
index c6ec873..59c28a8 100644 (file)
@@ -238,7 +238,10 @@ module_t rlm_example = {
                example_authorize,      /* authorization */
                example_preacct,        /* preaccounting */
                example_accounting,     /* accounting */
-               example_checksimul      /* checksimul */
+               example_checksimul,     /* checksimul */
+               NULL,                   /* pre-proxy */
+               NULL,                   /* post-proxy */
+               NULL                    /* post-auth */
        },
        example_detach,                 /* detach */
        NULL,                           /* destroy */
index 0aa2eaa..eed99a4 100644 (file)
@@ -823,7 +823,10 @@ module_t rlm_fastusers = {
                fastuser_authorize,     /* authorization */
                fastuser_preacct,       /* preaccounting */
                fastuser_accounting,    /* accounting */
-               NULL                    /* checksimul */
+               NULL,                   /* checksimul */
+               NULL,                   /* pre-proxy */
+               NULL,                   /* post-proxy */
+               NULL                    /* post-auth */
        },
        fastuser_detach,                /* detach */
        NULL                            /* destroy */
index 41903d1..004215d 100644 (file)
@@ -663,7 +663,10 @@ module_t rlm_ippool = {
                ippool_authorize,       /* authorization */
                NULL,                   /* preaccounting */
                ippool_accounting,      /* accounting */
-               NULL                    /* checksimul */
+               NULL,                   /* checksimul */
+               NULL,                   /* pre-proxy */
+               NULL,                   /* post-proxy */
+               NULL                    /* post-auth */
        },
        ippool_detach,                  /* detach */
        NULL,                           /* destroy */
index e647fc1..2ab9b2f 100644 (file)
@@ -158,7 +158,10 @@ module_t rlm_krb5 = {
          NULL,                 /* authorize */
          NULL,                 /* pre-accounting */
          NULL,                 /* accounting */
-         NULL                  /* checksimul */
+         NULL,                 /* checksimul */
+         NULL,                 /* pre-proxy */
+         NULL,                 /* post-proxy */
+         NULL                  /* post-auth */
   },
   krb5_detach,                 /* detach */
   NULL,                                /* destroy */
index 204f02c..ae6dcef 100644 (file)
@@ -1603,7 +1603,10 @@ module_t        rlm_ldap = {
                ldap_authorize,         /* authorization         */
                NULL,                   /* preaccounting         */
                NULL,                   /* accounting            */
-               NULL                    /* checksimul            */
+               NULL,                   /* checksimul            */
+               NULL,                   /* pre-proxy             */
+               NULL,                   /* post-proxy            */
+               NULL                    /* post-auth             */
        },
        ldap_detach,            /* detach                */
        NULL,                   /* destroy               */
index 6783fdb..1241553 100644 (file)
@@ -938,7 +938,10 @@ module_t rlm_mschap = {
          mschap_authorize,     /* authorize */
          NULL,                 /* pre-accounting */
          NULL,                 /* accounting */
-         NULL                  /* checksimul */
+         NULL,                 /* checksimul */
+         NULL,                 /* pre-proxy */
+         NULL,                 /* post-proxy */
+         NULL                  /* post-auth */
   },
   mschap_detach,               /* detach */
   NULL,                                /* destroy */
index 4bd369a..0fb8514 100644 (file)
@@ -170,7 +170,10 @@ module_t rlm_ns_mta_md5 = {
          NULL,                 /* authorize */
          NULL,                 /* pre-accounting */
          NULL,                 /* accounting */
-         NULL                  /* checksimul */
+         NULL,                 /* checksimul */
+         NULL,                 /* pre-proxy */
+         NULL,                 /* post-proxy */
+         NULL                  /* post-auth */
   },
   NULL,                                /* detach */
   NULL,                                /* destroy */
index 381349e..bff1b6d 100644 (file)
@@ -282,7 +282,10 @@ module_t rlm_pam = {
          NULL,                 /* authorize */
          NULL,                 /* pre-accounting */
          NULL,                 /* accounting */
-         NULL                  /* checksimul */
+         NULL,                 /* checksimul */
+         NULL,                 /* pre-proxy */
+         NULL,                 /* post-proxy */
+         NULL                  /* post-auth */
   },
   pam_detach,                  /* detach */
   NULL,                                /* destroy */
index 6a70a8b..2c5d924 100644 (file)
@@ -310,7 +310,10 @@ module_t rlm_pap = {
                NULL,                   /* authorization */
                NULL,                   /* preaccounting */
                NULL,                   /* accounting */
-               NULL                    /* checksimul */
+               NULL,                   /* checksimul */
+               NULL,                   /* pre-proxy */
+               NULL,                   /* post-proxy */
+               NULL                    /* post-auth */
        },
        pap_detach,                     /* detach */
        NULL,                           /* destroy */
index 87e0aa3..1b5ef5d 100644 (file)
@@ -472,7 +472,10 @@ module_t rlm_passwd = {
                passwd_authorize,       /* authorization */
                NULL,                   /* pre-accounting */
                NULL,                   /* accounting */
-               NULL                    /* checksimul */
+               NULL,                   /* checksimul */
+               NULL,                   /* pre-proxy */
+               NULL,                   /* post-proxy */
+               NULL                    /* post-auth */
        },
        passwd_detach,                  /* detach */
        NULL                            /* destroy */
index d11cce0..37646e7 100644 (file)
@@ -488,7 +488,11 @@ module_t rlm_perl = {
                perl_authenticate,
                perl_authorize,
                perl_preacct,
-               perl_accounting
+               perl_accounting,
+               NULL,
+               NULL,                   /* pre-proxy */
+               NULL,                   /* post-proxy */
+               NULL                    /* post-auth */
        },
        perl_detach,                    /* detach */
        NULL,                           /* destroy */
index 87f3000..f386f53 100644 (file)
@@ -756,7 +756,10 @@ module_t rlm_preprocess = {
                preprocess_authorize,   /* authorization */
                preprocess_preaccounting, /* pre-accounting */
                NULL,                   /* accounting */
-               NULL                    /* checksimul */
+               NULL,                   /* checksimul */
+               NULL,                   /* pre-proxy */
+               NULL,                   /* post-proxy */
+               NULL                    /* post-auth */
        },
        preprocess_detach,      /* detach */
        NULL,                   /* destroy */
index af64a77..a8c0159 100644 (file)
@@ -934,7 +934,10 @@ module_t rlm_python = {
                python_authorize,       /* authorization */
                python_preacct,         /* preaccounting */
                python_accounting,      /* accounting */
-               python_checksimul       /* checksimul */
+               python_checksimul,      /* checksimul */
+               NULL,                   /* pre-proxy */
+               NULL,                   /* post-proxy */
+               NULL                    /* post-auth */
        },
        python_detach,                  /* detach */
        NULL,                           /* destroy */
index 4f00b1d..178f89b 100644 (file)
@@ -634,7 +634,10 @@ module_t rlm_radutmp = {
          NULL,                 /* authorization */
          NULL,                 /* preaccounting */
          radutmp_accounting,   /* accounting */
-         radutmp_checksimul    /* checksimul */
+         radutmp_checksimul,   /* checksimul */
+         NULL,                 /* pre-proxy */
+         NULL,                 /* post-proxy */
+         NULL                  /* post-auth */
   },
   radutmp_detach,               /* detach */
   NULL,                        /* destroy */
index 31302e7..11d4a60 100644 (file)
@@ -420,7 +420,10 @@ module_t rlm_realm = {
          realm_authorize,      /* authorization */
          realm_preacct,        /* preaccounting */
          NULL,                 /* accounting */
-         NULL                  /* checksimul */
+         NULL,                 /* checksimul */
+         NULL,                 /* pre-proxy */
+         NULL,                 /* post-proxy */
+         NULL                  /* post-auth */
   },
   realm_detach,                        /* detach */
   NULL,                                /* destroy */
index 2ef2212..9235027 100644 (file)
@@ -191,7 +191,10 @@ module_t rlm_smb = {
                NULL,                   /* authorization */
                NULL,                   /* preaccounting */
                NULL,                   /* accounting */
-               NULL                    /* checksimul */
+               NULL,                   /* checksimul */
+               NULL,                   /* pre-proxy */
+               NULL,                   /* post-proxy */
+               NULL                    /* post-auth */
        },
        smb_detach,                     /* detach */
        NULL,                           /* destroy */
index a849ba0..7b70ab1 100644 (file)
@@ -898,7 +898,10 @@ module_t rlm_sql = {
                rlm_sql_authorize,      /* authorization */
                NULL,                   /* preaccounting */
                rlm_sql_accounting,     /* accounting */
-               rlm_sql_checksimul      /* checksimul */
+               rlm_sql_checksimul,     /* checksimul */
+               NULL,                   /* pre-proxy */
+               NULL,                   /* post-proxy */
+               NULL                    /* post-auth */
        },
        rlm_sql_detach,         /* detach */
        rlm_sql_destroy,        /* destroy */
index d5efee1..ba5535c 100644 (file)
@@ -656,7 +656,10 @@ module_t rlm_sqlcounter = {
                sqlcounter_authorize,   /* authorization */
                NULL,                   /* preaccounting */
                NULL,                   /* accounting */
-               NULL                    /* checksimul */
+               NULL,                   /* checksimul */
+               NULL,                   /* pre-proxy */
+               NULL,                   /* post-proxy */
+               NULL                    /* post-auth */
        },
        sqlcounter_detach,              /* detach */
        NULL,                           /* destroy */
index 255604a..56e4b83 100644 (file)
@@ -805,7 +805,10 @@ module_t rlm_unix = {
          NULL,                 /* authorization */
          NULL,                 /* preaccounting */
          unix_accounting,      /* accounting */
-         NULL                  /* checksimul */
+         NULL,                  /* checksimul */
+         NULL,                 /* pre-proxy */
+         NULL,                 /* post-proxy */
+         NULL                  /* post-auth */
   },
   unix_detach,                         /* detach */
   unix_destroy,                  /* destroy */
index a2870ef..74574b2 100644 (file)
@@ -737,7 +737,10 @@ module_t rlm_x99_token = {
                x99_token_authorize,    /* authorization */
                NULL,                   /* preaccounting */
                NULL,                   /* accounting */
-               NULL                    /* checksimul */
+               NULL,                   /* checksimul */
+               NULL,                   /* pre-proxy */
+               NULL,                   /* post-proxy */
+               NULL                    /* post-auth */
        },
        x99_token_detach,               /* detach */
        x99_token_destroy,              /* destroy */