X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2Fpages%2FVerify.java;fp=src%2Forg%2Fcacert%2Fgigi%2Fpages%2FVerify.java;h=bc4639810cd591dcc5cf7a53e4117d3cb12f3fed;hp=2b4cd82605cfe2ffc62fa76b2cde50e489717ad0;hb=34daecdb56cd063819e3e2913b9b17a6dc0229d2;hpb=23e2727d841afbae173cf3cfa4d8784a10db25df diff --git a/src/org/cacert/gigi/pages/Verify.java b/src/org/cacert/gigi/pages/Verify.java index 2b4cd826..bc463981 100644 --- a/src/org/cacert/gigi/pages/Verify.java +++ b/src/org/cacert/gigi/pages/Verify.java @@ -52,6 +52,13 @@ public class Verify extends Page { } else { throw new IllegalArgumentException(); } + try { + if ( !target.isVerifyable(hash)) { + throw new IllegalArgumentException(); + } + } catch (GigiApiException e) { + throw new IllegalArgumentException(e); + } } @Override