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: Thu, 30 Mar 2006 17:29:08 +0200

Update of /home/jas/self/public-cvs/shishi/lib
In directory latte:/home/jas/self/src/shishi/lib

Modified Files:
        kdcreq.c 
Log Message:
Clear padata if not set.


--- /home/jas/self/public-cvs/shishi/lib/kdcreq.c       2005/05/26 15:12:34     
1.75
+++ /home/jas/self/public-cvs/shishi/lib/kdcreq.c       2006/03/30 15:29:00     
1.76
@@ -1,5 +1,5 @@
 /* kdcreq.c --- Key distribution (AS/TGS) request functions.
- * Copyright (C) 2002, 2003, 2004, 2005  Simon Josefsson
+ * Copyright (C) 2002, 2003, 2004, 2005, 2006  Simon Josefsson
  *
  * This file is part of Shishi.
  *
@@ -1292,6 +1292,7 @@
 shishi_kdcreq_build (Shishi * handle, Shishi_asn1 kdcreq)
 {
   int res;
+  size_t n;
 
   if (VERBOSE (handle))
     printf ("Building KDC-REQ...\n");
@@ -1316,5 +1317,16 @@
        }
     }
 
+  res = shishi_asn1_number_of_elements (handle, kdcreq, "padata", &n);
+  if (res == SHISHI_OK && n == 0)
+    {
+      res = shishi_kdcreq_clear_padata (handle, kdcreq);
+      if (res != SHISHI_OK)
+       {
+         shishi_error_printf (handle, "Could not write padata\n");
+         return res;
+       }
+    }
+
   return SHISHI_OK;
 }





reply via email to

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