kinit now builds and works on some machines

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@302 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-03-17 14:59:05 +00:00
parent 2968019168
commit e2475934ac
33 changed files with 781 additions and 432 deletions

9
d.c
View File

@@ -1,6 +1,4 @@
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <krb5_locl.h>
#include <d.h>
int
@@ -160,8 +158,8 @@ der_get_octetstring (Buffer *b, void *val)
char *p;
len = buf_bytesleft (b);
str->len = len;
str->data = p = malloc (len + 1);
str->length = len;
str->data = p = malloc (len + 1);
while (len && (c = buf_getbyte (b)) != EOF) {
*p++ = c;
--len;
@@ -177,6 +175,7 @@ der_get_generalizedtime (Buffer *b, void *val)
int len;
krb5_data str;
struct tm tm;
extern long timezone;
len = der_get_octetstring (b, &str);
sscanf (str.data, "%04d%02d%02d%02d%02d%02dZ",