List Info

Thread: OpenSSL: openssl/crypto/conf/ conf.h conf_mod.c conf_sap.c




OpenSSL: openssl/crypto/conf/ conf.h conf_mod.c conf_sap.c
country flaguser name
Germany
2007-04-09 06:45:55
  OpenSSL CVS Repository
  http://cvs.openssl.org/
 
____________________________________________________________
________________

  Server: cvs.openssl.org                  Name:   Dr.
Stephen Henson
  Root:   /v/openssl/cvs                   Email:  steveopenssl.org
  Module: openssl                          Date:  
09-Apr-2007 13:45:55
  Branch: HEAD                             Handle:
2007040912455400

  Modified files:
    openssl/crypto/conf     conf.h conf_mod.c conf_sap.c

  Log:
    Don't ignore config_name parameter passed to
OPENSSL_config(). Use
    "openssl_conf" in config file if config_name
variable is missing.

  Summary:
    Revision    Changes     Path
    1.39        +1  -0      openssl/crypto/conf/conf.h
    1.19        +5  -4      openssl/crypto/conf/conf_mod.c
    1.3         +2  -2      openssl/crypto/conf/conf_sap.c
 
____________________________________________________________
________________

  patch -p0 <<' .'
  Index: openssl/crypto/conf/conf.h
 
============================================================
================
  $ cvs diff -u -r1.38 -r1.39 conf.h
  --- openssl/crypto/conf/conf.h	1 Apr 2007 18:00:51
-0000	1.38
  +++ openssl/crypto/conf/conf.h	9 Apr 2007 11:45:54
-0000	1.39
   -115,6 +115,7 
   #define CONF_MFLAGS_SILENT		0x4
   #define CONF_MFLAGS_NO_DSO		0x8
   #define CONF_MFLAGS_IGNORE_MISSING_FILE	0x10
  +#define CONF_MFLAGS_DEFAULT_SECTION	0x20
   
   int CONF_set_default_method(CONF_METHOD *meth);
   void CONF_set_nconf(CONF *conf,LHASH *hash);
   .
  patch -p0 <<' .'
  Index: openssl/crypto/conf/conf_mod.c
 
============================================================
================
  $ cvs diff -u -r1.18 -r1.19 conf_mod.c
  --- openssl/crypto/conf/conf_mod.c	1 Apr 2007 18:00:52
-0000	1.18
  +++ openssl/crypto/conf/conf_mod.c	9 Apr 2007 11:45:54
-0000	1.19
   -126,17 +126,18 
   	{
   	STACK_OF(CONF_VALUE) *values;
   	CONF_VALUE *vl;
  -	char *vsection;
  +	char *vsection = NULL;
   
   	int ret, i;
   
   	if (!cnf)
   		return 1;
   
  -	if (appname == NULL)
  -		appname = "openssl_conf";
  +	if (appname)
  +		vsection = NCONF_get_string(cnf, NULL, appname);
   
  -	vsection = NCONF_get_string(cnf, NULL, appname); 
  +	if (!appname || (!vsection && (flags &
CONF_MFLAGS_DEFAULT_SECTION)))
  +		vsection = NCONF_get_string(cnf, NULL,
"openssl_conf");
   
   	if (!vsection)
   		{
   .
  patch -p0 <<' .'
  Index: openssl/crypto/conf/conf_sap.c
 
============================================================
================
  $ cvs diff -u -r1.2 -r1.3 conf_sap.c
  --- openssl/crypto/conf/conf_sap.c	30 Jan 2003 17:39:17
-0000	1.2
  +++ openssl/crypto/conf/conf_sap.c	9 Apr 2007 11:45:54
-0000	1.3
   -88,8 +88,8 
   
   
   	ERR_clear_error();
  -	if (CONF_modules_load_file(NULL, NULL,
  -					CONF_MFLAGS_IGNORE_MISSING_FILE) <= 0)
  +	if (CONF_modules_load_file(NULL, config_name,
 
+	CONF_MFLAGS_DEFAULT_SECTION|CONF_MFLAGS_IGNORE_MISSING_FIL
E) <= 0)
   		{
   		BIO *bio_err;
   		ERR_load_crypto_strings();
   .
____________________________________________________________
__________
OpenSSL Project                                 http://www.openssl.org
CVS Repository Commit List                    
openssl-cvsopenssl.org
Automated List Manager                          
majordomoopenssl.org

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )