Merge from the main trunk and a 'make update'.

This commit is contained in:
Richard Levitte
2000-09-17 15:56:27 +00:00
parent 8de7587e02
commit ebcdd0c43e
10 changed files with 51 additions and 25 deletions

View File

@@ -4,6 +4,9 @@
Changes between 0.9.5a and 0.9.6 [xx XXX 2000] Changes between 0.9.5a and 0.9.6 [xx XXX 2000]
*) New BIO_shutdown_wr macro, which invokes the BIO_C_SHUTDOWN_WR
BIO_ctrl (for BIO pairs).
*) Add DSO method for VMS. *) Add DSO method for VMS.
[Richard Levitte] [Richard Levitte]

View File

@@ -82,12 +82,17 @@ directory. The syntax is trhe following:
RSAREF compile using the RSAREF Library RSAREF compile using the RSAREF Library
NORSAREF compile without using RSAREF NORSAREF compile without using RSAREF
Note 1: The RSAREF libraries are NOT INCLUDED and you have to Note 0: The RASREF library IS NO LONGER NEEDED. The RSA patent
download it from "ftp://ftp.rsa.com/rsaref". You have to expires September 20, 2000, and RSA Security chose to make
get the ".tar-Z" file as the ".zip" file doesn't have the the algorithm public domain two weeks before that.
directory structure stored. You have to extract the file
into the [.RSAREF] directory as that is where the scripts Note 1: If you still want to use RSAREF, the library is NOT INCLUDED
will look for the files. and you have to download it. RSA Security doesn't carry it
any more, but there are a number of places where you can find
it. You have to get the ".tar-Z" file as the ".zip" file
doesn't have the directory structure stored. You have to
extract the file into the [.RSAREF] directory as that is where
the scripts will look for the files.
Note 2: I have never done this, so I've no idea if it works or not. Note 2: I have never done this, so I've no idea if it works or not.
@@ -129,7 +134,7 @@ Currently, the logical names supported are:
used. This is good to try if something doesn't work. used. This is good to try if something doesn't work.
OPENSSL_NO_'alg' with value YES, the corresponding crypto algorithm OPENSSL_NO_'alg' with value YES, the corresponding crypto algorithm
will not be implemented. Supported algorithms to will not be implemented. Supported algorithms to
do this with are: RSA, DSA, DH, MD2, MD5, RIPEMD, do this with are: RSA, DSA, DH, MD2, MD4, MD5, RIPEMD,
SHA, DES, MDC2, CR2, RC4, RC5, IDEA, BF, CAST, HMAC, SHA, DES, MDC2, CR2, RC4, RC5, IDEA, BF, CAST, HMAC,
SSL2. So, for example, having the logical name SSL2. So, for example, having the logical name
OPENSSL_NO_RSA with the value YES means that the OPENSSL_NO_RSA with the value YES means that the

4
STATUS
View File

@@ -1,6 +1,6 @@
OpenSSL STATUS Last modified at OpenSSL STATUS Last modified at
______________ $Date: 2000/09/13 21:20:43 $ ______________ $Date: 2000/09/17 15:56:27 $
DEVELOPMENT STATE DEVELOPMENT STATE
@@ -35,6 +35,8 @@
MingW32 - failed MingW32 - failed
thelp32.h thelp32.h
aix-gcc (AIX 4.3.2) - passed aix-gcc (AIX 4.3.2) - passed
VMS/Alpha - failed
Some things were missing [FIXED]
o OpenSSL 0.9.5a: Released on April 1st, 2000 o OpenSSL 0.9.5a: Released on April 1st, 2000
o OpenSSL 0.9.5: Released on February 28th, 2000 o OpenSSL 0.9.5: Released on February 28th, 2000
o OpenSSL 0.9.4: Released on August 09th, 1999 o OpenSSL 0.9.4: Released on August 09th, 1999

View File

@@ -474,7 +474,7 @@ size_t BIO_ctrl_wpending(BIO *b);
#define BIO_get_write_buf_size(b,size) (size_t)BIO_ctrl(b,BIO_C_GET_WRITE_BUF_SIZE,size,NULL) #define BIO_get_write_buf_size(b,size) (size_t)BIO_ctrl(b,BIO_C_GET_WRITE_BUF_SIZE,size,NULL)
#define BIO_make_bio_pair(b1,b2) (int)BIO_ctrl(b1,BIO_C_MAKE_BIO_PAIR,0,b2) #define BIO_make_bio_pair(b1,b2) (int)BIO_ctrl(b1,BIO_C_MAKE_BIO_PAIR,0,b2)
#define BIO_destroy_bio_pair(b) (int)BIO_ctrl(b,BIO_C_DESTROY_BIO_PAIR,0,NULL) #define BIO_destroy_bio_pair(b) (int)BIO_ctrl(b,BIO_C_DESTROY_BIO_PAIR,0,NULL)
#define BIO_set_shutdown_wr(b) (int)BIO_ctrl(b, BIO_C_SHUTDOWN_WR, 0, NULL) #define BIO_shutdown_wr(b) (int)BIO_ctrl(b, BIO_C_SHUTDOWN_WR, 0, NULL)
/* macros with inappropriate type -- but ...pending macros use int too: */ /* macros with inappropriate type -- but ...pending macros use int too: */
#define BIO_get_write_guarantee(b) (int)BIO_ctrl(b,BIO_C_GET_WRITE_GUARANTEE,0,NULL) #define BIO_get_write_guarantee(b) (int)BIO_ctrl(b,BIO_C_GET_WRITE_GUARANTEE,0,NULL)
#define BIO_get_read_request(b) (int)BIO_ctrl(b,BIO_C_GET_READ_REQUEST,0,NULL) #define BIO_get_read_request(b) (int)BIO_ctrl(b,BIO_C_GET_READ_REQUEST,0,NULL)

View File

@@ -60,6 +60,7 @@
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#ifdef VMS #ifdef VMS
#pragma message disable DOLLARID
#include <lib$routines.h> #include <lib$routines.h>
#include <libfisdef.h> #include <libfisdef.h>
#include <stsdef.h> #include <stsdef.h>
@@ -255,13 +256,13 @@ static int do_find_symbol(DSO_VMS_INTERNAL *ptr,
0, flags); 0, flags);
} }
static void *vms_bind_sym(DSO *dso, const char *symname) void vms_bind_sym(DSO *dso, const char *symname, void **sym)
{ {
DSO_VMS_INTERNAL *ptr; DSO_VMS_INTERNAL *ptr;
void *sym = 0;
int status; int status;
int flags = LIB$M_FIS_MIXEDCASE; int flags = LIB$M_FIS_MIXEDCASE;
struct dsc$descriptor_s symname_dsc; struct dsc$descriptor_s symname_dsc;
*sym = NULL;
symname_dsc.dsc$w_length = strlen(symname); symname_dsc.dsc$w_length = strlen(symname);
symname_dsc.dsc$b_dtype = DSC$K_DTYPE_T; symname_dsc.dsc$b_dtype = DSC$K_DTYPE_T;
@@ -271,24 +272,24 @@ static void *vms_bind_sym(DSO *dso, const char *symname)
if((dso == NULL) || (symname == NULL)) if((dso == NULL) || (symname == NULL))
{ {
DSOerr(DSO_F_VMS_BIND_VAR,ERR_R_PASSED_NULL_PARAMETER); DSOerr(DSO_F_VMS_BIND_VAR,ERR_R_PASSED_NULL_PARAMETER);
return(NULL); return;
} }
if(sk_num(dso->meth_data) < 1) if(sk_num(dso->meth_data) < 1)
{ {
DSOerr(DSO_F_VMS_BIND_VAR,DSO_R_STACK_ERROR); DSOerr(DSO_F_VMS_BIND_VAR,DSO_R_STACK_ERROR);
return(NULL); return;
} }
ptr = (DSO_VMS_INTERNAL *)sk_value(dso->meth_data, ptr = (DSO_VMS_INTERNAL *)sk_value(dso->meth_data,
sk_num(dso->meth_data) - 1); sk_num(dso->meth_data) - 1);
if(ptr == NULL) if(ptr == NULL)
{ {
DSOerr(DSO_F_VMS_BIND_VAR,DSO_R_NULL_HANDLE); DSOerr(DSO_F_VMS_BIND_VAR,DSO_R_NULL_HANDLE);
return(NULL); return;
} }
if(dso->flags & DSO_FLAG_UPCASE_SYMBOL) flags = 0; if(dso->flags & DSO_FLAG_UPCASE_SYMBOL) flags = 0;
status = do_find_symbol(ptr, &symname_dsc, &sym, flags); status = do_find_symbol(ptr, &symname_dsc, sym, flags);
if(!$VMS_STATUS_SUCCESS(status)) if(!$VMS_STATUS_SUCCESS(status))
{ {
@@ -301,6 +302,8 @@ static void *vms_bind_sym(DSO *dso, const char *symname)
errstring_dsc.dsc$b_class = DSC$K_CLASS_S; errstring_dsc.dsc$b_class = DSC$K_CLASS_S;
errstring_dsc.dsc$a_pointer = errstring; errstring_dsc.dsc$a_pointer = errstring;
*sym = NULL;
status = sys$getmsg(status, &length, &errstring_dsc, 1, 0); status = sys$getmsg(status, &length, &errstring_dsc, 1, 0);
if (!$VMS_STATUS_SUCCESS(status)) if (!$VMS_STATUS_SUCCESS(status))
@@ -322,19 +325,23 @@ static void *vms_bind_sym(DSO *dso, const char *symname)
" in ", ptr->filename, " in ", ptr->filename,
": ", errstring); ": ", errstring);
} }
return(NULL); return;
} }
return(sym); return;
} }
static void *vms_bind_var(DSO *dso, const char *symname) static void *vms_bind_var(DSO *dso, const char *symname)
{ {
return vms_bind_sym(dso, symname); void *sym = 0;
vms_bind_sym(dso, symname, &sym);
return sym;
} }
static DSO_FUNC_TYPE vms_bind_func(DSO *dso, const char *symname) static DSO_FUNC_TYPE vms_bind_func(DSO *dso, const char *symname)
{ {
return (DSO_FUNC_TYPE)vms_bind_sym(dso, symname); DSO_FUNC_TYPE sym = 0;
vms_bind_sym(dso, symname, &sym);
return sym;
} }
static long vms_ctrl(DSO *dso, int cmd, long larg, void *parg) static long vms_ctrl(DSO *dso, int cmd, long larg, void *parg)

View File

@@ -111,7 +111,7 @@ err:
STACK *sk_new_null(void) STACK *sk_new_null(void)
{ {
return sk_new((int (*)(const char * const *, const char * const *))NULL); return sk_new((int (*)(const char * const *, const char * const *))0);
} }
STACK *sk_new(int (*c)(const char * const *, const char * const *)) STACK *sk_new(int (*c)(const char * const *, const char * const *))

View File

@@ -137,6 +137,10 @@
#define SSL_CTX_set_cert_verify_callback SSL_CTX_set_cert_verify_cb #define SSL_CTX_set_cert_verify_callback SSL_CTX_set_cert_verify_cb
#define SSL_CTX_set_default_passwd_cb_userdata SSL_CTX_set_def_passwd_cb_ud #define SSL_CTX_set_default_passwd_cb_userdata SSL_CTX_set_def_passwd_cb_ud
/* Hack some long ENGINE names */
#define ENGINE_get_default_BN_mod_exp_crt ENGINE_get_def_BN_mod_exp_crt
#define ENGINE_set_default_BN_mod_exp_crt ENGINE_set_def_BN_mod_exp_crt
#endif /* defined VMS */ #endif /* defined VMS */

View File

@@ -2,7 +2,7 @@
=head1 NAME =head1 NAME
BIO_s_bio, BIO_make_bio_pair, BIO_destroy_bio_pair, BIO_set_shutdown_wr, BIO_s_bio, BIO_make_bio_pair, BIO_destroy_bio_pair, BIO_shutdown_wr,
BIO_set_write_buf_size, BIO_get_write_buf_size, BIO_new_bio_pair, BIO_set_write_buf_size, BIO_get_write_buf_size, BIO_new_bio_pair,
BIO_get_write_guarantee, BIO_ctrl_get_write_guarantee, BIO_get_read_request, BIO_get_write_guarantee, BIO_ctrl_get_write_guarantee, BIO_get_read_request,
BIO_ctrl_get_read_request, BIO_ctrl_reset_read_request - BIO pair BIO BIO_ctrl_get_read_request, BIO_ctrl_reset_read_request - BIO pair BIO
@@ -16,7 +16,7 @@ BIO_ctrl_get_read_request, BIO_ctrl_reset_read_request - BIO pair BIO
#define BIO_make_bio_pair(b1,b2) (int)BIO_ctrl(b1,BIO_C_MAKE_BIO_PAIR,0,b2) #define BIO_make_bio_pair(b1,b2) (int)BIO_ctrl(b1,BIO_C_MAKE_BIO_PAIR,0,b2)
#define BIO_destroy_bio_pair(b) (int)BIO_ctrl(b,BIO_C_DESTROY_BIO_PAIR,0,NULL) #define BIO_destroy_bio_pair(b) (int)BIO_ctrl(b,BIO_C_DESTROY_BIO_PAIR,0,NULL)
#define BIO_set_shutdown_wr(b) (int)BIO_ctrl(b, BIO_C_SHUTDOWN_WR, 0, NULL) #define BIO_shutdown_wr(b) (int)BIO_ctrl(b, BIO_C_SHUTDOWN_WR, 0, NULL)
#define BIO_set_write_buf_size(b,size) (int)BIO_ctrl(b,BIO_C_SET_WRITE_BUF_SIZE,size,NULL) #define BIO_set_write_buf_size(b,size) (int)BIO_ctrl(b,BIO_C_SET_WRITE_BUF_SIZE,size,NULL)
#define BIO_get_write_buf_size(b,size) (size_t)BIO_ctrl(b,BIO_C_GET_WRITE_BUF_SIZE,size,NULL) #define BIO_get_write_buf_size(b,size) (size_t)BIO_ctrl(b,BIO_C_GET_WRITE_BUF_SIZE,size,NULL)
@@ -62,7 +62,7 @@ BIO_make_bio_pair() joins two separate BIOs into a connected pair.
BIO_destroy_pair() destroys the association between two connected BIOs. Freeing BIO_destroy_pair() destroys the association between two connected BIOs. Freeing
up any half of the pair will automatically destroy the association. up any half of the pair will automatically destroy the association.
BIO_set_shutdown_wr() is used to close down a BIO B<b>. After this call no further BIO_shutdown_wr() is used to close down a BIO B<b>. After this call no further
writes on BIO B<b> are allowed (they will return an error). Reads on the other writes on BIO B<b> are allowed (they will return an error). Reads on the other
half of the pair will return any pending data or EOF when all pending data has half of the pair will return any pending data or EOF when all pending data has
been read. been read.

View File

@@ -1876,7 +1876,8 @@ ENGINE_get_default_RSA 2466 EXIST::FUNCTION:
ENGINE_get_BN_mod_exp 2467 EXIST::FUNCTION: ENGINE_get_BN_mod_exp 2467 EXIST::FUNCTION:
DSA_get_default_openssl_method 2468 EXIST::FUNCTION:DSA DSA_get_default_openssl_method 2468 EXIST::FUNCTION:DSA
ENGINE_set_DH 2469 EXIST::FUNCTION: ENGINE_set_DH 2469 EXIST::FUNCTION:
ENGINE_set_default_BN_mod_exp_crt 2470 EXIST::FUNCTION: ENGINE_set_default_BN_mod_exp_crt 2470 EXIST:!VMS:FUNCTION:
ENGINE_set_def_BN_mod_exp_crt 2470 EXIST:VMS:FUNCTION:
ENGINE_init 2471 EXIST::FUNCTION: ENGINE_init 2471 EXIST::FUNCTION:
DH_get_default_openssl_method 2472 EXIST::FUNCTION:DH DH_get_default_openssl_method 2472 EXIST::FUNCTION:DH
RSA_set_default_openssl_method 2473 EXIST::FUNCTION:RSA RSA_set_default_openssl_method 2473 EXIST::FUNCTION:RSA
@@ -1897,7 +1898,8 @@ ENGINE_get_RAND 2487 EXIST::FUNCTION:
ENGINE_get_first 2488 EXIST::FUNCTION: ENGINE_get_first 2488 EXIST::FUNCTION:
ENGINE_by_id 2489 EXIST::FUNCTION: ENGINE_by_id 2489 EXIST::FUNCTION:
ENGINE_set_finish_function 2490 EXIST::FUNCTION: ENGINE_set_finish_function 2490 EXIST::FUNCTION:
ENGINE_get_default_BN_mod_exp_crt 2491 EXIST::FUNCTION: ENGINE_get_default_BN_mod_exp_crt 2491 EXIST:!VMS:FUNCTION:
ENGINE_get_def_BN_mod_exp_crt 2491 EXIST:VMS:FUNCTION:
RSA_get_default_openssl_method 2492 EXIST::FUNCTION:RSA RSA_get_default_openssl_method 2492 EXIST::FUNCTION:RSA
ENGINE_set_RSA 2493 EXIST::FUNCTION: ENGINE_set_RSA 2493 EXIST::FUNCTION:
ENGINE_load_private_key 2494 EXIST::FUNCTION: ENGINE_load_private_key 2494 EXIST::FUNCTION:

View File

@@ -623,6 +623,9 @@ sub maybe_add_info {
} }
if ($new_info) { if ($new_info) {
print STDERR "$new_info old symbols got an info update\n"; print STDERR "$new_info old symbols got an info update\n";
if (!$do_rewrite) {
print STDERR "You should do a rewrite to fix this.\n";
}
} else { } else {
print STDERR "No old symbols needed info update\n"; print STDERR "No old symbols needed info update\n";
} }