esp6.c (4ba24fef3eb3b142197135223b90ced2f319cd53) esp6.c (63159f29be1df7f93563a8a0f78c5e65fc844ed6)
1/*
2 * Copyright (C)2002 USAGI/WIDE Project
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *

--- 481 unchanged lines hidden (view full) ---

490 struct rtattr *rta;
491 char *key;
492 char *p;
493 char authenc_name[CRYPTO_MAX_ALG_NAME];
494 unsigned int keylen;
495 int err;
496
497 err = -EINVAL;
1/*
2 * Copyright (C)2002 USAGI/WIDE Project
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *

--- 481 unchanged lines hidden (view full) ---

490 struct rtattr *rta;
491 char *key;
492 char *p;
493 char authenc_name[CRYPTO_MAX_ALG_NAME];
494 unsigned int keylen;
495 int err;
496
497 err = -EINVAL;
498 if (x->ealg == NULL)
498 if (!x->ealg)
499 goto error;
500
501 err = -ENAMETOOLONG;
502
503 if ((x->props.flags & XFRM_STATE_ESN)) {
504 if (snprintf(authenc_name, CRYPTO_MAX_ALG_NAME,
505 "authencesn(%s,%s)",
506 x->aalg ? x->aalg->alg_name : "digest_null",

--- 166 unchanged lines hidden ---
499 goto error;
500
501 err = -ENAMETOOLONG;
502
503 if ((x->props.flags & XFRM_STATE_ESN)) {
504 if (snprintf(authenc_name, CRYPTO_MAX_ALG_NAME,
505 "authencesn(%s,%s)",
506 x->aalg ? x->aalg->alg_name : "digest_null",

--- 166 unchanged lines hidden ---