[gnutls-dev] [PATCH] incredibly large RSA modulus not handled

Ian Peters itp@ximian.com
Wed Mar 12 03:52:01 2003


--=-uoPMZpgb81kf6oz7Gwpe
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Tue, 2003-03-11 at 16:46, Ian Peters wrote:
> This patch bumps that define up to 2400, which allows the successful
> parsing of the Thawte cert.

And, this patch actually applies (tip: never edit your patches by hand).

Ian

--=-uoPMZpgb81kf6oz7Gwpe
Content-Disposition: attachment; filename=gnutls-0.8.4-thawte-cert.patch
Content-Type: text/x-patch; name=gnutls-0.8.4-thawte-cert.patch; charset=UTF-8
Content-Transfer-Encoding: 7bit

diff -Nru -x '*~' -x '*.o' -x '*.orig' -x '*.rej' gnutls-0.8.4.orig/lib/gnutls_cert.h gnutls-0.8.4/lib/gnutls_cert.h
--- gnutls-0.8.4.orig/lib/gnutls_cert.h	2002-11-20 16:54:03.000000000 -0500
+++ gnutls-0.8.4/lib/gnutls_cert.h	2003-03-11 17:25:25.000000000 -0500
@@ -8,7 +8,7 @@
 #define MAX_PARAMS_SIZE 6 /* ok for RSA and DSA */
 
 /* parameters should not be larger than this limit */
-#define MAX_PARAMETER_SIZE 1200
+#define MAX_PARAMETER_SIZE 2400
 #define DSA_PRIVATE_PARAMS 5
 #define DSA_PUBLIC_PARAMS 4
 #define RSA_PRIVATE_PARAMS 6

--=-uoPMZpgb81kf6oz7Gwpe--