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:
29
der.c
Normal file
29
der.c
Normal 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);
|
||||
}
|
Reference in New Issue
Block a user