]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: af_alg - Allow arbitrarily long algorithm names
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 6 Apr 2017 08:16:09 +0000 (16:16 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 10 Apr 2017 11:17:26 +0000 (19:17 +0800)
commit732c0ebd2ed24b0465f1ae41251d36a2bc5ebaa5
tree1f2750b1d97702c3678d95c717ed86e3c756f805
parent8a6f62aec5649c475c4fd184f57096a7ec7a1202
crypto: af_alg - Allow arbitrarily long algorithm names

This patch removes the hard-coded 64-byte limit on the length
of the algorithm name through bind(2).  The address length can
now exceed that.  The user-space structure remains unchanged.
In order to use a longer name simply extend the salg_name array
beyond its defined 64 bytes length.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/af_alg.c