]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
pk_hash_data() will fail unless DSA or RSA are specified.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 12 Dec 2010 08:26:34 +0000 (09:26 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 12 Dec 2010 08:26:34 +0000 (09:26 +0100)
lib/x509/sign.c

index 3da98ed778ff25b422d9a33cf93cc9db252fc292..29dbc6656f7178c596a12f13ac162236700a5100 100644 (file)
@@ -154,6 +154,9 @@ int pk_hash_data(gnutls_pk_algorithm_t pk, gnutls_digest_algorithm_t hash,
           return GNUTLS_E_INVALID_REQUEST;
         }
       break;
+    default:
+      gnutls_assert();
+      return GNUTLS_E_INVALID_REQUEST;
     }
 
   digest->size = _gnutls_hash_get_algo_len (hash);