lots of new stuff

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@299 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-03-17 00:51:52 +00:00
parent 81cbbf7820
commit e40b97b423
21 changed files with 2152 additions and 3 deletions

29
der.c Normal file
View File

@@ -0,0 +1,29 @@
#include <stdlib.h>
#include <string.h>
#include <der.h>
/*
* Type functions
*/
krb5_data
string_make_n (int n, char *s)
{
krb5_data ret;
ret.len = n;
ret.data = s;
return ret;
}
krb5_data
string_make (char *s)
{
return string_make_n (strlen (s), s);
}
void
string_free (krb5_data s)
{
free (s.data);
}