fixed error in mapping of prf algorithms
authorJan Hutter <jhutter@hsr.ch>
Tue, 22 Nov 2005 11:53:50 +0000 (11:53 -0000)
committerJan Hutter <jhutter@hsr.ch>
Tue, 22 Nov 2005 11:53:50 +0000 (11:53 -0000)
Source/charon/payloads/transform_substructure.c

index 207aafa..3160c38 100644 (file)
@@ -122,7 +122,7 @@ mapping_t encryption_algorithm_m[] = {
  */
 mapping_t pseudo_random_function_m[] = {
        {PRF_UNDEFINED, "PRF_UNDEFINED"},
-       {PRF_HMAC_MD5, "PRF_HMAC_SHA1"},
+       {PRF_HMAC_MD5, "PRF_HMAC_MD5"},
        {PRF_HMAC_SHA1, "PRF_HMAC_SHA1"},
        {PRF_HMAC_TIGER, "PRF_HMAC_TIGER"},
        {PRF_AES128_CBC, "PRF_AES128_CBC"},
@@ -497,7 +497,7 @@ static status_t clone(private_transform_substructure_t *this,transform_substruct
        
        attributes->destroy(attributes);        
        
-       *clone = new_clone;
+       *clone = &(new_clone->public);
        return SUCCESS;
 }