git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1882 ec53bebd-3082-4978-b11e-865c3cabbd6b
		
			
				
	
	
		
			19 lines
		
	
	
		
			362 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			362 B
		
	
	
	
		
			C
		
	
	
	
	
	
#include "libasn1.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);
 | 
						|
}
 |