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 17325dc..61cba57 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);