Browse Source

drbd: Following the hmac change to SHASH (see linux commit 8bd1209cfff)

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Philipp Reisner 16 years ago
parent
commit
8b43aebdaa
1 changed files with 1 additions and 2 deletions
  1. 1 2
      drivers/block/drbd/drbd_nl.c

+ 1 - 2
drivers/block/drbd/drbd_nl.c

@@ -1271,8 +1271,7 @@ static int drbd_nl_net_conf(struct drbd_conf *mdev, struct drbd_nl_cfg_req *nlp,
 			goto fail;
 		}
 
-		if (crypto_tfm_alg_type(crypto_hash_tfm(tfm))
-						!= CRYPTO_ALG_TYPE_HASH) {
+		if (crypto_tfm_alg_type(crypto_hash_tfm(tfm)) != CRYPTO_ALG_TYPE_SHASH) {
 			retcode = ERR_AUTH_ALG_ND;
 			goto fail;
 		}