Fix CVE-2017-6891 in minitasn1 code
[platform/upstream/gnutls.git] / tests / sign-md5-rep.c
index 72616dc..72869fa 100644 (file)
@@ -51,8 +51,7 @@ int main()
 
 static void terminate(void);
 
-/* This program tests whether MD5 is rejected by a client as a
- * signature algorithm for the ServerKeyExchange.
+/* This program tests whether EtM is negotiated as expected.
  */
 
 static void server_log_func(int level, const char *str)
@@ -108,7 +107,7 @@ const gnutls_datum_t server_key = { server_key_pem,
 
 
 static int handshake_callback(gnutls_session_t session, unsigned int htype,
-       unsigned post, unsigned int incoming, const gnutls_datum_t *msg)
+       unsigned post, unsigned int incoming)
 {
        gnutls_priority_set_direct(session, "NORMAL:-KX-ALL:+ECDHE-RSA", NULL);
        return 0;