FreeBSD Bugzilla – Attachment 42379 Details for
Bug 66099
[PATCH]: security/libtomcrypt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 6.35 KB, created by
Wesley Shields
on 2004-04-30 03:20:22 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Wesley Shields
Created:
2004-04-30 03:20:22 UTC
Size:
6.35 KB
patch
obsolete
>diff -ruN security/libtomcrypt.orig/Makefile security/libtomcrypt/Makefile >--- security/libtomcrypt.orig/Makefile Sat Apr 10 18:16:07 2004 >+++ security/libtomcrypt/Makefile Tue Apr 27 22:04:39 2004 >@@ -6,7 +6,7 @@ > # > > PORTNAME= libtomcrypt >-PORTVERSION= 0.92 >+PORTVERSION= 0.94 > CATEGORIES= security > MASTER_SITES= http://libtomcrypt.org/files/ > DISTNAME= crypt-${PORTVERSION} >diff -ruN security/libtomcrypt.orig/distinfo security/libtomcrypt/distinfo >--- security/libtomcrypt.orig/distinfo Sat Apr 10 18:16:07 2004 >+++ security/libtomcrypt/distinfo Tue Apr 27 21:04:50 2004 >@@ -1,2 +1,2 @@ >-MD5 (crypt-0.92.tar.bz2) = 12fd407c6678e072446323aaf41c0719 >-SIZE (crypt-0.92.tar.bz2) = 783233 >+MD5 (crypt-0.94.tar.bz2) = f53f3977e74d63e4733e388bffc69087 >+SIZE (crypt-0.94.tar.bz2) = 820131 >diff -ruN security/libtomcrypt.orig/files/patch-dsa.c security/libtomcrypt/files/patch-dsa.c >--- security/libtomcrypt.orig/files/patch-dsa.c Sat Apr 10 18:16:07 2004 >+++ security/libtomcrypt/files/patch-dsa.c Wed Dec 31 19:00:00 1969 >@@ -1,88 +0,0 @@ >---- dsa.c.orig Tue Jan 13 14:52:15 2004 >-+++ dsa.c Tue Jan 13 14:53:54 2004 >-@@ -297,15 +297,15 @@ >- return err; >- } >- >--#define OUTPUT_BIGNUM(num, buf2, y, z) \ >--{ \ >-- z = (unsigned long)mp_unsigned_bin_size(num); \ >-- if ((y + 4 + z) > *outlen) { return CRYPT_BUFFER_OVERFLOW; } \ >-- STORE32L(z, out+y); \ >-- y += 4; \ >-- if (mp_to_unsigned_bin(num, out+y) != MP_OKAY) { return CRYPT_MEM; } \ >-- y += z; \ >--} >-+#define OUTPUT_BIGNUM(num, buf2, y, z) \ >-+{ \ >-+ z = (unsigned long)mp_unsigned_bin_size(num); \ >-+ if ((y + 4 + z) > *outlen) { return CRYPT_BUFFER_OVERFLOW; } \ >-+ STORE32L(z, out+y); \ >-+ y += 4; \ >-+ if (mp_to_unsigned_bin(num, out+y) != MP_OKAY) { return CRYPT_MEM; } \ >-+ y += z; \ >-+} >- >- int dsa_export(unsigned char *out, unsigned long *outlen, int type, dsa_key *key) >- { >-@@ -352,33 +352,33 @@ >- return CRYPT_OK; >- } >- >--#define INPUT_BIGNUM(num, in, x, y) \ >--{ \ >-- /* load value */ \ >-- if (y+4 > inlen) { \ >-- err = CRYPT_INVALID_PACKET; \ >-- goto error; \ >-- } \ >-- LOAD32L(x, in+y); \ >-- y += 4; \ >-- \ >-- /* sanity check... */ \ >-- if (y+x > inlen) { \ >-- err = CRYPT_INVALID_PACKET; \ >-- goto error; \ >-- } \ >-- \ >-- /* load it */ \ >-- if (mp_read_unsigned_bin(num, (unsigned char *)in+y, (int)x) != MP_OKAY) {\ >-- err = CRYPT_MEM; \ >-- goto error; \ >-- } \ >-- y += x; \ >-- if (mp_shrink(num) != MP_OKAY) { \ >-- err = CRYPT_MEM; \ >-- goto error; \ >-- } \ >--} >-+#define INPUT_BIGNUM(num, in, x, y) \ >-+{ \ >-+ /* load value */ \ >-+ if (y+4 > inlen) { \ >-+ err = CRYPT_INVALID_PACKET; \ >-+ goto error; \ >-+ } \ >-+ LOAD32L(x, in+y); \ >-+ y += 4; \ >-+ \ >-+ /* sanity check... */ \ >-+ if (y+x > inlen) { \ >-+ err = CRYPT_INVALID_PACKET; \ >-+ goto error; \ >-+ } \ >-+ \ >-+ /* load it */ \ >-+ if (mp_read_unsigned_bin(num, (unsigned char *)in+y, (int)x) != MP_OKAY) {\ >-+ err = CRYPT_MEM; \ >-+ goto error; \ >-+ } \ >-+ y += x; \ >-+ if (mp_shrink(num) != MP_OKAY) { \ >-+ err = CRYPT_MEM; \ >-+ goto error; \ >-+ } \ >-+} >- >- int dsa_import(const unsigned char *in, unsigned long inlen, dsa_key *key) >- { >diff -ruN security/libtomcrypt.orig/pkg-plist security/libtomcrypt/pkg-plist >--- security/libtomcrypt.orig/pkg-plist Sat Apr 10 18:16:07 2004 >+++ security/libtomcrypt/pkg-plist Tue Apr 27 21:43:48 2004 >@@ -18,12 +18,9 @@ > %%EXAMPLESDIR%%/ch2-01.c > %%EXAMPLESDIR%%/encrypt.c > %%EXAMPLESDIR%%/small.c >-%%EXAMPLESDIR%%/timer.asm >-%%EXAMPLESDIR%%/timer.h > %%EXAMPLESDIR%%/x86_prof.c > %%EXAMPLESDIR%%/hashsum.c > %%EXAMPLESDIR%%/test.c >-%%EXAMPLESDIR%%/timer.c > %%EXAMPLESDIR%%/tv_gen.c > %%PORTDOCS%%%%DOCSDIR%%/crypt.pdf > %%PORTDOCS%%%%DOCSDIR%%/cipher_tv.txt
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 66099
: 42379