chiark / gitweb /
server/keymgmt.c (km_samealgsp): Make sure the bulk transforms match.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 17 Feb 2015 21:20:12 +0000 (21:20 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 17 Feb 2015 21:20:12 +0000 (21:20 +0000)
Getting this wrong would cause a communication failure which is
annoyingly difficult to debug.

server/keymgmt.c

index 17325dce2d96e7ca78f029a4fd126d6344c865d9..61cba579896432c16f1ba69caaa4fb2a065a6e4c 100644 (file)
@@ -374,6 +374,7 @@ int km_samealgsp(const kdata *kdx, const kdata *kdy)
   const algswitch *a = &kdx->algs, *aa = &kdy->algs;
 
   return (group_samep(kdx->g, kdy->g) &&
+         a->bulk == aa->bulk &&
          a->c == aa->c && a->b == aa->b &&
          a->mgf == aa->mgf && a->h == aa->h &&
          a->m == aa->m && a->tagsz == aa->tagsz);