Actually skip certificate if we do not understand hash type
diff --git a/library/x509parse.c b/library/x509parse.c
index dca53066..08dc4d0 100644
--- a/library/x509parse.c
+++ b/library/x509parse.c
@@ -3461,6 +3461,7 @@
             /*
              * Cannot check 'unknown' hash
              */
+            trust_ca = trust_ca->next;
             continue;
         }