Vanilla List Maling List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [VANILLA-LIST:2160] Server de-coupled from mp and gmp



On Wed, Mar 17, 1999 at 11:31:52PM -0600, Bob Tanner wrote:
> Dave,
> 
> With the changes to us-rsa have be complete de-coupled from mp and/or gmp in
> the server?

Uh, I don't quite understand the question.  In U.S. res-rsa 2.9, the default
setup does not require Berkeley MP or GNU MP.  I have successfully compiled
and tested the server without any references to MP/GMP in include and link
flags.

I did include rsa_utilmp.c and rsa_utilgmp.c for those who prefer MP/GMP for
whatever reason, but they are not needed if rsa_util.c is used.

I should probably mention that Kurt's GMP 2.x compat define "assignItom"
results in mismatched mpz_init/mpz_clear calls.  This may lead to a memory
leak, because the GMP documentation states that mpz variables be initialized
once, or cleared out between additional inits.  If rsa_utilmp.c (and the
Euro RSA) is used with MP or GMP 1.3.2, there is no leak.

> >From my local checkout I removed the gmp stuff in ntserv and it all compiled
> fine, I just wanted verbal confirmation that we can dump the mp/gmp stuff.
> 
> I'll make the appropriate changes to the configure scripts.

Don't forget to add the -DRSA define for the compile.  Last I checked, it
wasn't being done.

BTW, the Euro RSA does require MP/GMP, so we can't completely toss it yet.

-- 
Dave Ahn <ahn@vec.wfubmc.edu>        |  "When you were born, you cried and the
                                     |  world rejoiced.  Try to live your life
Virtual Endoscopy Center             |  so that when you die, you will rejoice
Wake Forest Univ. School of Medicine |  and the world will cry."  -1/2 jj^2