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$ */
|
||||
|
||||
#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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user