aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/dh/dh_lib.c
diff options
context:
space:
mode:
authorRalf S. Engelschall <rse@openssl.org>1998-12-21 11:00:56 +0000
committerRalf S. Engelschall <rse@openssl.org>1998-12-21 11:00:56 +0000
commit31b8d8684441e6cd5138832bb1b2ddb10acd6ba6 (patch)
treebd2486e342980b19b92cff888ae6206d906a089d /crypto/dh/dh_lib.c
parent7dfb0b774e6592dcbfe47015168a0ac8b44e2a17 (diff)
parentdfeab0689f69c0b4bd3480ffd37a9cacc2f17d9c (diff)
downloadopenssl-31b8d8684441e6cd5138832bb1b2ddb10acd6ba6.tar.gz
This commit was generated by cvs2svn to track changes on a CVS vendor
branch.
Diffstat (limited to 'crypto/dh/dh_lib.c')
-rw-r--r--crypto/dh/dh_lib.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/dh/dh_lib.c b/crypto/dh/dh_lib.c
index a300b38396..1b4bb4ea2b 100644
--- a/crypto/dh/dh_lib.c
+++ b/crypto/dh/dh_lib.c
@@ -61,7 +61,7 @@
#include "bn.h"
#include "dh.h"
-char *DH_version="Diffie-Hellman part of SSLeay 0.9.0b 29-Jun-1998";
+char *DH_version="Diffie-Hellman part of SSLeay 0.9.1a 06-Jul-1998";
DH *DH_new()
{
@@ -80,6 +80,8 @@ DH *DH_new()
ret->length=0;
ret->pub_key=NULL;
ret->priv_key=NULL;
+ ret->flags=DH_FLAG_CACHE_MONT_P;
+ ret->method_mont_p=NULL;
return(ret);
}
@@ -90,6 +92,8 @@ DH *r;
if (r->g != NULL) BN_clear_free(r->g);
if (r->pub_key != NULL) BN_clear_free(r->pub_key);
if (r->priv_key != NULL) BN_clear_free(r->priv_key);
+ if (r->method_mont_p != NULL)
+ BN_MONT_CTX_free((BN_MONT_CTX *)r->method_mont_p);
Free(r);
}