
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2328 ec53bebd-3082-4978-b11e-865c3cabbd6b
19 lines
363 B
C
19 lines
363 B
C
#include "der_locl.h"
|
|
|
|
RCSID("$Id$");
|
|
|
|
void
|
|
copy_general_string (const general_string *from, general_string *to)
|
|
{
|
|
*to = malloc(strlen(*from) + 1);
|
|
strcpy(*to, *from);
|
|
}
|
|
|
|
void
|
|
copy_octet_string (const octet_string *from, octet_string *to)
|
|
{
|
|
to->length = from->length;
|
|
to->data = malloc(to->length);
|
|
memcpy(to->data, from->data, to->length);
|
|
}
|