]> err.no Git - linux-2.6/blobdiff - net/xfrm/xfrm_user.c
[IPSEC]: Add compatibility algorithm name support
[linux-2.6] / net / xfrm / xfrm_user.c
index 3e6a722d072ed8b75c0561b82617abd5a2d3adcd..fa79ddc4239e071c2d524c76285631c26005e65e 100644 (file)
@@ -10,6 +10,7 @@
  *
  */
 
+#include <linux/crypto.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/types.h>
@@ -212,6 +213,7 @@ static int attach_one_algo(struct xfrm_algo **algpp, u8 *props,
                return -ENOMEM;
 
        memcpy(p, ualg, len);
+       strcpy(p->alg_name, algo->name);
        *algpp = p;
        return 0;
 }