Module Name:    src
Committed By:   agc
Date:           Mon Dec  3 18:02:22 UTC 2012

Modified Files:
        src/crypto/external/bsd/netpgp/dist/src/libbn: bn.h

Log Message:
Make the mp_digit type an "unsigned long" so that it works for ILP32 and
LP64.

Fixes problems showing up on regression tests on i386 (which work fine on
amd64) i.e. turn:

        t_netpgpverify (1/1): 2 test cases
            netpgpverify_dsa: [0.309746s] Failed: atf-check failed; see the 
output of the test for details
            netpgpverify_rsa: [0.183148s] Passed.
        [0.495102s]

        Failed test cases:
            t_netpgpverify:netpgpverify_dsa

        Summary for 1 test programs:
            1 passed test cases.
            1 failed test cases.
            0 expected failed test cases.
            0 skipped test cases.

into:

        t_netpgpverify (1/1): 2 test cases
            netpgpverify_dsa: [0.236076s] Passed.
            netpgpverify_rsa: [0.154680s] Passed.
        [0.393034s]

        Summary for 1 test programs:
            2 passed test cases.
            0 failed test cases.
            0 expected failed test cases.
            0 skipped test cases.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/crypto/external/bsd/netpgp/dist/src/libbn/bn.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/crypto/external/bsd/netpgp/dist/src/libbn/bn.h
diff -u src/crypto/external/bsd/netpgp/dist/src/libbn/bn.h:1.3 src/crypto/external/bsd/netpgp/dist/src/libbn/bn.h:1.4
--- src/crypto/external/bsd/netpgp/dist/src/libbn/bn.h:1.3	Tue Nov 20 17:57:40 2012
+++ src/crypto/external/bsd/netpgp/dist/src/libbn/bn.h	Mon Dec  3 18:02:22 2012
@@ -44,7 +44,8 @@
 
 __BEGIN_DECLS
 
-typedef uint64_t	mp_digit;
+/* should be 32bit on ILP32, 64bit on LP64 */
+typedef unsigned long	mp_digit;
 typedef uint64_t	mp_word;
 
 /* multi-precision integer */

Reply via email to