Fix include files. Add fix_dce().

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1450 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-03-17 10:37:01 +00:00
parent e2653a19af
commit 1caf3885e6

View File

@@ -1,12 +1,8 @@
/* $Id$ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "der.h"
#include "asn1_locl.h"
RCSID("$Id$");
/*
* All encoding functions take a pointer `p' to first position in
@@ -232,3 +228,14 @@ encode_generalized_time (unsigned char *p, int len, time_t *t)
ret += l;
return ret;
}
int
fix_dce(int reallen, int *len)
{
if(reallen == 0)
return 1;
if(*len < reallen)
return -1;
*len = reallen;
return 0;
}