Lots of random changes.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1107 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include "der.h"
|
||||
|
||||
@@ -209,7 +210,7 @@ generalizedtime2time (char *s, time_t *t)
|
||||
tm.tm_isdst = 0;
|
||||
|
||||
*t = mktime(&tm);
|
||||
#if 0 /* XXX */
|
||||
#if 1 /* XXX */
|
||||
*t -= timezone;
|
||||
#endif
|
||||
}
|
||||
@@ -219,6 +220,7 @@ decode_generalized_time (unsigned char *p, int len, void *data)
|
||||
{
|
||||
time_t *t = (time_t *)data;
|
||||
krb5_data k;
|
||||
char times[32]; /* XXX */
|
||||
int ret = 0;
|
||||
int l;
|
||||
|
||||
@@ -234,7 +236,9 @@ decode_generalized_time (unsigned char *p, int len, void *data)
|
||||
p += l;
|
||||
len -= l;
|
||||
ret += l;
|
||||
generalizedtime2time (k.data, t);
|
||||
strncpy(times, (char*)k.data, k.len);
|
||||
times[k.len] = 0;
|
||||
generalizedtime2time (times, t);
|
||||
free (k.data);
|
||||
return ret;
|
||||
}
|
||||
|
@@ -6,6 +6,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <time.h>
|
||||
#include <string.h>
|
||||
#include "der.h"
|
||||
|
||||
/*
|
||||
|
@@ -40,7 +40,7 @@ close_generate ()
|
||||
void
|
||||
generate_constant (Symbol *s)
|
||||
{
|
||||
fprintf (headerfile, "static const int %s = %d;\n\n",
|
||||
fprintf (headerfile, "enum { %s = %d };\n\n",
|
||||
s->gen_name, s->constant);
|
||||
}
|
||||
|
||||
|
@@ -324,5 +324,15 @@ krb-priv INTEGER ::= 21 -- Private (encrypted) application message
|
||||
krb-cred INTEGER ::= 22 -- Private (encrypted) message to forward credentials
|
||||
krb-error INTEGER ::= 30 -- Error response
|
||||
|
||||
-- pa-data types
|
||||
|
||||
pa-tgs-req INTEGER ::= 1 --
|
||||
|
||||
-- checksumtypes
|
||||
|
||||
CRC32 INTEGER ::= 1 --
|
||||
rsa-md4 INTEGER ::= 2 --
|
||||
|
||||
|
||||
|
||||
END
|
||||
|
@@ -4,6 +4,7 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include "symbol.h"
|
||||
#include "hash.h"
|
||||
|
||||
|
Reference in New Issue
Block a user