shishi-commit
[Top][All Lists]
Advanced

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

[SCM] GNU shishi branch, master, updated. shishi-0-0-41-4-g3a8a460


From: Simon Josefsson
Subject: [SCM] GNU shishi branch, master, updated. shishi-0-0-41-4-g3a8a460
Date: Wed, 03 Feb 2010 09:30:12 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU shishi".

http://git.savannah.gnu.org/cgit/shishi.git/commit/?id=3a8a460080202925a53cd996b5683b6d4870cd3b

The branch, master has been updated
       via  3a8a460080202925a53cd996b5683b6d4870cd3b (commit)
      from  9d4de54a9444a5dc0a7494f650f96f641761e149 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 3a8a460080202925a53cd996b5683b6d4870cd3b
Author: Simon Josefsson <address@hidden>
Date:   Wed Feb 3 10:30:01 2010 +0100

    Don't use gettime where gettimeofday will do.

-----------------------------------------------------------------------

Summary of changes:
 lib/kdcreq.c |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/lib/kdcreq.c b/lib/kdcreq.c
index d22250e..2929809 100644
--- a/lib/kdcreq.c
+++ b/lib/kdcreq.c
@@ -1,5 +1,5 @@
 /* kdcreq.c --- Key distribution (AS/TGS) request functions.
- * Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008  Simon Josefsson
+ * Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010  Simon 
Josefsson
  *
  * This file is part of Shishi.
  *
@@ -1305,7 +1305,7 @@ shishi_kdcreq_add_padata_preauth (Shishi * handle,
   char *der, *data;
   size_t derlen, datalen;
   Shishi_asn1 pa;
-  struct timespec ts;
+  struct timeval tv;
   int rc;
   Shishi_asn1 ed;
 
@@ -1313,15 +1313,17 @@ shishi_kdcreq_add_padata_preauth (Shishi * handle,
   if (!pa)
     return SHISHI_ASN1_ERROR;
 
-  gettime (&ts);
+  rc = gettimeofday (&tv, NULL);
+  if (rc != 0)
+    return SHISHI_GETTIMEOFDAY_ERROR;
 
   rc = shishi_asn1_write (handle, pa, "patimestamp",
-                         shishi_generalize_time (handle, ts.tv_sec),
+                         shishi_generalize_time (handle, tv.tv_sec),
                          SHISHI_GENERALIZEDTIME_LENGTH);
   if (rc != SHISHI_OK)
     return rc;
 
-  rc = shishi_asn1_write_integer (handle, pa, "pausec", ts.tv_nsec / 1000);
+  rc = shishi_asn1_write_integer (handle, pa, "pausec", tv.tv_usec);
   if (rc != SHISHI_OK)
     return rc;
 


hooks/post-receive
-- 
GNU shishi




reply via email to

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