[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS shishi/lib
From: |
shishi-commit |
Subject: |
CVS shishi/lib |
Date: |
Fri, 10 Sep 2004 11:32:30 +0200 |
Update of /home/cvs/shishi/lib
In directory dopio:/tmp/cvs-serv19985/lib
Modified Files:
authenticator.c encapreppart.c enckdcreppart.c encticketpart.c
gztime.c internal.h kdcreq.c krberror.c shishi.h.in tkt.c
Log Message:
SHISHI_GENERALIZEDTIME_LENGTH: New public definition.
--- /home/cvs/shishi/lib/authenticator.c 2004/09/10 09:28:18 1.65
+++ /home/cvs/shishi/lib/authenticator.c 2004/09/10 09:32:29 1.66
@@ -413,7 +413,7 @@
int res;
res = shishi_asn1_write (handle, authenticator, "ctime",
- t, GENERALIZEDTIME_TIME_LEN);
+ t, SHISHI_GENERALIZEDTIME_LENGTH);
if (res != SHISHI_OK)
return res;
--- /home/cvs/shishi/lib/encapreppart.c 2004/09/10 09:19:57 1.36
+++ /home/cvs/shishi/lib/encapreppart.c 2004/09/10 09:32:29 1.37
@@ -335,7 +335,7 @@
int res;
res = shishi_asn1_write (handle, encapreppart, "ctime",
- t, GENERALIZEDTIME_TIME_LEN);
+ t, SHISHI_GENERALIZEDTIME_LENGTH);
if (res != SHISHI_OK)
return res;
--- /home/cvs/shishi/lib/enckdcreppart.c 2004/07/11 15:01:05 1.31
+++ /home/cvs/shishi/lib/enckdcreppart.c 2004/09/10 09:32:29 1.32
@@ -201,7 +201,7 @@
int res;
res = shishi_asn1_write (handle, enckdcreppart, "endtime",
- endtime, GENERALIZEDTIME_TIME_LEN);
+ endtime, SHISHI_GENERALIZEDTIME_LENGTH);
if (res != SHISHI_OK)
return res;
--- /home/cvs/shishi/lib/encticketpart.c 2004/04/18 09:47:04 1.29
+++ /home/cvs/shishi/lib/encticketpart.c 2004/09/10 09:32:30 1.30
@@ -309,7 +309,7 @@
int res;
res = shishi_asn1_write (handle, encticketpart, "authtime",
- authtime, GENERALIZEDTIME_TIME_LEN);
+ authtime, SHISHI_GENERALIZEDTIME_LENGTH);
if (res != SHISHI_OK)
return SHISHI_ASN1_ERROR;
@@ -334,7 +334,7 @@
int res;
res = shishi_asn1_write (handle, encticketpart, "endtime",
- endtime, GENERALIZEDTIME_TIME_LEN);
+ endtime, SHISHI_GENERALIZEDTIME_LENGTH);
if (res != SHISHI_OK)
return res;
@@ -353,7 +353,7 @@
time_t
shishi_encticketpart_authctime (Shishi * handle, Shishi_asn1 encticketpart)
{
- char authtime[GENERALIZEDTIME_TIME_LEN + 1];
+ char authtime[SHISHI_GENERALIZEDTIME_LENGTH + 1];
size_t authtimelen;
time_t t;
int res;
@@ -364,7 +364,7 @@
if (res != SHISHI_OK)
return (time_t) - 1;
- authtime[GENERALIZEDTIME_TIME_LEN] = '\0';
+ authtime[SHISHI_GENERALIZEDTIME_LENGTH] = '\0';
t = shishi_generalize_ctime (handle, authtime);
--- /home/cvs/shishi/lib/gztime.c 2004/04/18 08:42:44 1.13
+++ /home/cvs/shishi/lib/gztime.c 2004/09/10 09:32:30 1.14
@@ -113,20 +113,20 @@
size_t len;
int res;
- len = GENERALIZEDTIME_TIME_LEN + 1;
+ len = SHISHI_GENERALIZEDTIME_LENGTH + 1;
*t = xmalloc (len);
res = shishi_asn1_read (handle, node, field, *t, &len);
if (res != SHISHI_OK)
return res;
- if (len <= GENERALIZEDTIME_TIME_LEN)
+ if (len <= SHISHI_GENERALIZEDTIME_LENGTH)
{
shishi_error_printf (handle, "Read time too short (%s)", *t);
return SHISHI_ASN1_ERROR;
}
- (*t)[GENERALIZEDTIME_TIME_LEN] = '\0';
+ (*t)[SHISHI_GENERALIZEDTIME_LENGTH] = '\0';
return SHISHI_OK;
}
--- /home/cvs/shishi/lib/internal.h 2004/04/21 16:55:33 1.83
+++ /home/cvs/shishi/lib/internal.h 2004/09/10 09:32:30 1.84
@@ -134,7 +134,6 @@
#define gettext_noop(String) String
#define N_(String) gettext_noop (String)
-#define GENERALIZEDTIME_TIME_LEN 15
#define MAX_KEY_LEN 32
#define MAX_RANDOM_LEN 32
#define MAX_HASH_LEN 32
--- /home/cvs/shishi/lib/kdcreq.c 2004/09/10 09:04:16 1.66
+++ /home/cvs/shishi/lib/kdcreq.c 2004/09/10 09:32:30 1.67
@@ -638,7 +638,7 @@
if (res != SHISHI_OK)
return t;
- if (tilllen == GENERALIZEDTIME_TIME_LEN + 1) /* XXX why +1 ? */
+ if (tilllen == SHISHI_GENERALIZEDTIME_LENGTH + 1) /* XXX why +1 ? */
t = shishi_generalize_ctime (handle, till);
free (till);
--- /home/cvs/shishi/lib/krberror.c 2004/09/10 09:04:16 1.33
+++ /home/cvs/shishi/lib/krberror.c 2004/09/10 09:32:30 1.34
@@ -743,7 +743,7 @@
if (t)
res = shishi_asn1_write (handle, krberror, "ctime",
- t, GENERALIZEDTIME_TIME_LEN);
+ t, SHISHI_GENERALIZEDTIME_LENGTH);
else
res = shishi_asn1_write (handle, krberror, "ctime", NULL, 0);
if (res != SHISHI_OK)
@@ -873,7 +873,7 @@
int res;
res = shishi_asn1_write (handle, krberror, "stime",
- t, GENERALIZEDTIME_TIME_LEN);
+ t, SHISHI_GENERALIZEDTIME_LENGTH);
if (res != SHISHI_OK)
return res;
--- /home/cvs/shishi/lib/shishi.h.in 2004/09/10 09:19:57 1.236
+++ /home/cvs/shishi/lib/shishi.h.in 2004/09/10 09:32:30 1.237
@@ -579,6 +579,9 @@
typedef ASN1_TYPE Shishi_asn1;
typedef struct Shishi_crypto Shishi_crypto;
+#define SHISHI_GENERALIZEDTIME_LENGTH 15
+#define SHISHI_GENERALIZEDTIMEZ_LENGTH (SHISHI_GENERALIZEDTIME_LENGTH + 1)
+
/* init.c */
extern Shishi *shishi (void);
extern Shishi *shishi_server (void);
--- /home/cvs/shishi/lib/tkt.c 2004/08/01 17:35:39 1.41
+++ /home/cvs/shishi/lib/tkt.c 2004/09/10 09:32:30 1.42
@@ -1095,7 +1095,7 @@
if (res != SHISHI_OK)
return t;
- if (lrtimelen == GENERALIZEDTIME_TIME_LEN)
+ if (lrtimelen == SHISHI_GENERALIZEDTIME_LENGTH)
t = shishi_generalize_ctime (tkt->handle, lrtime);
free (lrtime);
@@ -1132,7 +1132,7 @@
if (res != SHISHI_OK)
return t;
- if (authtimelen == GENERALIZEDTIME_TIME_LEN + 1) /* XXX why +1 ? */
+ if (authtimelen == SHISHI_GENERALIZEDTIME_LENGTH + 1) /* XXX why +1 ? */
t = shishi_generalize_ctime (tkt->handle, authtime);
free (authtime);
@@ -1171,7 +1171,7 @@
if (res != SHISHI_OK || starttimelen == 0)
return t;
- if (starttimelen == GENERALIZEDTIME_TIME_LEN + 1) /* XXX why +1 ? */
+ if (starttimelen == SHISHI_GENERALIZEDTIME_LENGTH + 1) /* XXX why +1 ? */
t = shishi_generalize_ctime (tkt->handle, starttime);
free (starttime);
@@ -1207,7 +1207,7 @@
if (res != SHISHI_OK)
return t;
- if (endtimelen == GENERALIZEDTIME_TIME_LEN + 1) /* XXX why +1 ? */
+ if (endtimelen == SHISHI_GENERALIZEDTIME_LENGTH + 1) /* XXX why +1 ? */
t = shishi_generalize_ctime (tkt->handle, endtime);
free (endtime);
@@ -1245,7 +1245,7 @@
if (res != SHISHI_OK || renewtilllen == 0)
return t;
- if (renewtilllen == GENERALIZEDTIME_TIME_LEN + 1) /* XXX why +1 ? */
+ if (renewtilllen == SHISHI_GENERALIZEDTIME_LENGTH + 1) /* XXX why +1 ? */
t = shishi_generalize_ctime (tkt->handle, renewtill);
free (renewtill);
- CVS shishi/lib, shishi-commit, 2004/09/02
- CVS shishi/lib, shishi-commit, 2004/09/02
- CVS shishi/lib, shishi-commit, 2004/09/02
- CVS shishi/lib, shishi-commit, 2004/09/06
- CVS shishi/lib, shishi-commit, 2004/09/08
- CVS shishi/lib, shishi-commit, 2004/09/08
- CVS shishi/lib, shishi-commit, 2004/09/10
- CVS shishi/lib, shishi-commit, 2004/09/10
- CVS shishi/lib,
shishi-commit <=
- CVS shishi/lib, shishi-commit, 2004/09/10
- CVS shishi/lib, shishi-commit, 2004/09/10
- CVS shishi/lib, shishi-commit, 2004/09/10
- CVS shishi/lib, shishi-commit, 2004/09/10
- CVS shishi/lib, shishi-commit, 2004/09/17
- CVS shishi/lib, shishi-commit, 2004/09/17
- CVS shishi/lib, shishi-commit, 2004/09/17
- CVS shishi/lib, shishi-commit, 2004/09/17
- CVS shishi/lib, shishi-commit, 2004/09/17
- CVS shishi/lib, shishi-commit, 2004/09/17