Files
heimdal/lib/asn1/der_copy.c
Assar Westerlund c1439d2cd8 changed asn1_locl.h to gen_locl.h and der_locl.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2328 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-07-15 20:02:05 +00:00

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);
}