remove 'now' arg from cardops maxtwin() method
authorfcusack <fcusack>
Sat, 5 Nov 2005 01:07:13 +0000 (01:07 +0000)
committerfcusack <fcusack>
Sat, 5 Nov 2005 01:07:13 +0000 (01:07 +0000)
src/modules/rlm_otp/cardops/cryptocard.c
src/modules/rlm_otp/cardops/cryptocard.h
src/modules/rlm_otp/otp_cardops.c
src/modules/rlm_otp/otp_cardops.h

index 9dcbfd7..fa61c94 100644 (file)
@@ -323,11 +323,7 @@ __attribute__ ((unused))
 #ifdef __GNUC__
 __attribute__ ((unused))
 #endif
-                    const char csd[OTP_MAX_CSD_LEN + 1],
-#ifdef __GNUC__
-__attribute__ ((unused))
-#endif
-                    time_t when)
+                    const char csd[OTP_MAX_CSD_LEN + 1])
 {
   return 0;
 }
index 674eabd..79b9157 100644 (file)
@@ -63,7 +63,7 @@ static int cryptocard_isconsecutive(const otp_user_info_t *,
                                     const otp_user_state_t *, int, int,
                                     const char *);
 static int cryptocard_maxtwin(const otp_user_info_t *,
-                              const char [OTP_MAX_CSD_LEN + 1], time_t);
+                              const char [OTP_MAX_CSD_LEN + 1]);
 
 #ifdef __GNUC__
 __attribute__ ((constructor))
index 78eb723..ac16e51 100644 (file)
@@ -352,7 +352,7 @@ sync_response:
     (void) strcpy(challenge, user_state.challenge);
 
     /* Test each sync response in the window. */
-    tend = user_info.cardops->maxtwin(&user_info, user_state.csd, now);
+    tend = user_info.cardops->maxtwin(&user_info, user_state.csd);
     for (t = 0; t <= tend; ++t) {
       for (e = 0; e <= end; ++e) {
         /* Get next challenge. */
index 6dea8e6..196ae91 100644 (file)
@@ -84,8 +84,7 @@ typedef struct cardops_t {
                  const char [OTP_MAX_CHALLENGE_LEN + 1], const char *);
   int (*isconsecutive)(const otp_user_info_t *, const otp_user_state_t *, int,
                        int, const char *);
-  int (*maxtwin)(const otp_user_info_t *, const char [OTP_MAX_CSD_LEN + 1],
-                 time_t);
+  int (*maxtwin)(const otp_user_info_t *, const char [OTP_MAX_CSD_LEN + 1]);
 } cardops_t;
 #define OTP_MAX_VENDORS 16
 extern cardops_t otp_cardops[OTP_MAX_VENDORS];