shishi-commit
[Top][All Lists]
Advanced

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

CVS shishi/lib


From: shishi-commit
Subject: CVS shishi/lib
Date: Tue, 7 Feb 2006 13:39:08 +0100

Update of /home/cvs/shishi/lib
In directory dopio:/tmp/cvs-serv26573

Modified Files:
        authenticator.c 
Log Message:
Avoid use of timezone.
Check return value.


--- /home/cvs/shishi/lib/authenticator.c        2005/05/26 15:12:34     1.72
+++ /home/cvs/shishi/lib/authenticator.c        2006/02/07 12:39:08     1.73
@@ -1,5 +1,5 @@
 /* authenticator.c --- Functions for authenticators.
- * Copyright (C) 2002, 2003, 2004  Simon Josefsson
+ * Copyright (C) 2002, 2003, 2004, 2006  Simon Josefsson
  *
  * This file is part of Shishi.
  *
@@ -41,9 +41,12 @@
   int res;
   Shishi_asn1 node = NULL;
   struct timeval tv;
-  struct timezone tz;
   uint32_t seqnr;
 
+  res = gettimeofday (&tv, NULL);
+  if (res != 0)
+    return NULL;
+
   node = shishi_asn1_authenticator (handle);
   if (!node)
     return NULL;
@@ -62,7 +65,6 @@
   if (res != SHISHI_OK)
     goto error;
 
-  gettimeofday (&tv, &tz);
   res = shishi_authenticator_cusec_set (handle, node, tv.tv_usec % 1000000);
   if (res != SHISHI_OK)
     goto error;





reply via email to

[Prev in Thread] Current Thread [Next in Thread]