[CRYPTO] api: Do not remove users unless new algorithm matches
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 8 Apr 2007 11:31:36 +0000 (21:31 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 2 May 2007 04:38:32 +0000 (14:38 +1000)
commita73e69965fa2647faa36caf40f4132b9c99d61fd
tree8c138eaeb2daeb58d5634961607d37d258729349
parentcf02f5da9437201d57d93f529839dd40aac8b5f9
[CRYPTO] api: Do not remove users unless new algorithm matches

As it is whenever a new algorithm with the same name is registered
users of the old algorithm will be removed so that they can take
advantage of the new algorithm.  This presents a problem when the
new algorithm is not equivalent to the old algorithm.  In particular,
the new algorithm might only function on top of the existing one.

Hence we should not remove users unless they can make use of the
new algorithm.

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