[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openssl-cvs
Subject:    cvs commit: openssl/crypto/dh dh_lib.c
From:       geoff () openssl ! org
Date:       2000-04-20 7:58:13
[Download RAW message or body]

geoff       20-Apr-2000 09:58:12

  Modified:    crypto/dsa dsa_lib.c
               crypto/dh dh_lib.c
  Log:
  The handling of DSA_METHOD and DH_METHOD wasn't quite as problematic as
  with RSA_METHOD (the **_get_default_methods do set the default value if
  it's not set). However, the code had some duplication and was a bit
  conter-intuitive.
  
  Revision  Changes    Path
  1.15      +1 -2      openssl/crypto/dsa/dsa_lib.c
  
  Index: dsa_lib.c
  ===================================================================
  RCS file: /e/openssl/cvs/openssl/crypto/dsa/dsa_lib.c,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- dsa_lib.c	2000/01/23 23:41:03	1.14
  +++ dsa_lib.c	2000/04/20 07:58:10	1.15
  @@ -107,9 +107,8 @@
   		DSAerr(DSA_F_DSA_NEW,ERR_R_MALLOC_FAILURE);
   		return(NULL);
   		}
  -	if(!default_DSA_method) default_DSA_method = DSA_OpenSSL();
   	if(meth) ret->meth = meth;
  -	else ret->meth = default_DSA_method;
  +	else ret->meth = DSA_get_default_method();
   	ret->pad=0;
   	ret->version=0;
   	ret->write_params=1;
  
  
  1.15      +1 -2      openssl/crypto/dh/dh_lib.c
  
  Index: dh_lib.c
  ===================================================================
  RCS file: /e/openssl/cvs/openssl/crypto/dh/dh_lib.c,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- dh_lib.c	2000/01/28 01:35:31	1.14
  +++ dh_lib.c	2000/04/20 07:58:11	1.15
  @@ -103,9 +103,8 @@
   		DHerr(DH_F_DH_NEW,ERR_R_MALLOC_FAILURE);
   		return(NULL);
   		}
  -	if(!default_DH_method) default_DH_method = DH_OpenSSL();
   	if(meth) ret->meth = meth;
  -	else ret->meth = default_DH_method;
  +	else ret->meth = DH_get_default_method();
   	ret->pad=0;
   	ret->version=0;
   	ret->p=NULL;
  
  
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
CVS Repository Commit List                     openssl-cvs@openssl.org
Automated List Manager                           majordomo@openssl.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic