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:
@@ -1,12 +1,8 @@
|
|||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#include "asn1_locl.h"
|
||||||
#include <config.h>
|
|
||||||
#endif
|
RCSID("$Id$");
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include "der.h"
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* All encoding functions take a pointer `p' to first position in
|
* 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;
|
ret += l;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
fix_dce(int reallen, int *len)
|
||||||
|
{
|
||||||
|
if(reallen == 0)
|
||||||
|
return 1;
|
||||||
|
if(*len < reallen)
|
||||||
|
return -1;
|
||||||
|
*len = reallen;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user