]> err.no Git - linux-2.6/blobdiff - net/xfrm/xfrm_algo.c
[IPSEC]: Add compatibility algorithm name support
[linux-2.6] / net / xfrm / xfrm_algo.c
index 04e1aea58bc947b8bbef38a5bb39246228aa7910..b68974b387416c31e00b986e397e50b01e722b97 100644 (file)
@@ -359,7 +359,8 @@ static struct xfrm_algo_desc *xfrm_get_byname(struct xfrm_algo_desc *list,
                return NULL;
 
        for (i = 0; i < entries; i++) {
-               if (strcmp(name, list[i].name))
+               if (strcmp(name, list[i].name) &&
+                   (!list[i].compat || strcmp(name, list[i].compat)))
                        continue;
 
                if (list[i].available)