Latest update
This commit is contained in:
@@ -1732,10 +1732,15 @@ my %targets = (
|
|||||||
lflags => picker(default => "/MAP='F\$PARSE(\".MAP\",\"\$\@\")'",
|
lflags => picker(default => "/MAP='F\$PARSE(\".MAP\",\"\$\@\")'",
|
||||||
debug => "/DEBUG/TRACEBACK",
|
debug => "/DEBUG/TRACEBACK",
|
||||||
release => "/NODEBUG/NOTRACEBACK"),
|
release => "/NODEBUG/NOTRACEBACK"),
|
||||||
|
# Because of dso_cflags below, we can't set the generic |cflags| here,
|
||||||
|
# as it can't be overriden, so we set separate C flags for libraries
|
||||||
|
# and binaries instead.
|
||||||
|
bin_cflags => add("/NAMES=(AS_IS,SHORTENED)/EXTERN_MODEL=STRICT_REFDEF"),
|
||||||
lib_cflags => add("/NAMES=(AS_IS,SHORTENED)/EXTERN_MODEL=STRICT_REFDEF"),
|
lib_cflags => add("/NAMES=(AS_IS,SHORTENED)/EXTERN_MODEL=STRICT_REFDEF"),
|
||||||
# no_inst_lib_cflags is used instead of lib_cflags by descrip.mms.tmpl
|
# For modules specifically, we assume that they only use public
|
||||||
# for object files belonging to selected internal libraries
|
# OpenSSL symbols, and therefore don't need to mangle names on
|
||||||
no_inst_lib_cflags => "",
|
# their own.
|
||||||
|
dso_cflags => "",
|
||||||
ex_libs => add(sub { return vms_info()->{zlib} || (); }),
|
ex_libs => add(sub { return vms_info()->{zlib} || (); }),
|
||||||
shared_target => "vms-shared",
|
shared_target => "vms-shared",
|
||||||
dso_scheme => "vms",
|
dso_scheme => "vms",
|
||||||
|
|||||||
@@ -298,8 +298,8 @@ BIN_CPPFLAGS={- join('', "'qual_includes'",
|
|||||||
$target{bin_cppflags} || (),
|
$target{bin_cppflags} || (),
|
||||||
@{$config{bin_cppflag}},
|
@{$config{bin_cppflag}},
|
||||||
'$(CNF_CPPFLAGS)', '$(CPPFLAGS)') -}
|
'$(CNF_CPPFLAGS)', '$(CPPFLAGS)') -}
|
||||||
BIN_CFLAGS={- join('', $target{bin_cflag} || (),
|
BIN_CFLAGS={- join('', $target{bin_cflags} || (),
|
||||||
@{$config{bin_cflag}},
|
@{$config{bin_cflags}},
|
||||||
'$(CNF_CFLAGS)', '$(CFLAGS)') -}
|
'$(CNF_CFLAGS)', '$(CFLAGS)') -}
|
||||||
BIN_LDFLAGS={- join('', $target{bin_lflags} || (),
|
BIN_LDFLAGS={- join('', $target{bin_lflags} || (),
|
||||||
@{$config{bin_lflags}} || (),
|
@{$config{bin_lflags}} || (),
|
||||||
@@ -312,12 +312,14 @@ NO_INST_LIB_CFLAGS={- join('', $target{no_inst_lib_cflags}
|
|||||||
@{$config{lib_cflags}},
|
@{$config{lib_cflags}},
|
||||||
@{$config{shared_cflag}},
|
@{$config{shared_cflag}},
|
||||||
'$(CNF_CFLAGS)', '$(CFLAGS)') -}
|
'$(CNF_CFLAGS)', '$(CFLAGS)') -}
|
||||||
NO_INST_DSO_CFLAGS={- join('', $target{no_inst_lib_cflags}
|
NO_INST_DSO_CFLAGS={- join('', $target{no_inst_dso_cflags}
|
||||||
// $target{lib_cflags}
|
// $target{dso_cflags}
|
||||||
|
// (),
|
||||||
|
$target{no_inst_module_cflags}
|
||||||
|
// $target{module_cflags}
|
||||||
// (),
|
// (),
|
||||||
$target{dso_cflags} || (),
|
|
||||||
@{$config{lib_cflags}},
|
|
||||||
@{$config{dso_cflags}},
|
@{$config{dso_cflags}},
|
||||||
|
@{$config{module_cflags}},
|
||||||
'$(CNF_CFLAGS)', '$(CFLAGS)') -}
|
'$(CNF_CFLAGS)', '$(CFLAGS)') -}
|
||||||
NO_INST_BIN_CFLAGS={- join('', $target{no_inst_bin_cflags}
|
NO_INST_BIN_CFLAGS={- join('', $target{no_inst_bin_cflags}
|
||||||
// $target{bin_cflags}
|
// $target{bin_cflags}
|
||||||
@@ -1032,7 +1034,9 @@ EOF
|
|||||||
"\@ WRITE OPT_FILE \"$x" } @objs).
|
"\@ WRITE OPT_FILE \"$x" } @objs).
|
||||||
"\"";
|
"\"";
|
||||||
my $write_opt2 =
|
my $write_opt2 =
|
||||||
join("\n\t", map { my @lines = ();
|
join("\n\t", map { my @lines = (
|
||||||
|
"\ WRITE OPT_FILE \"CASE_SENSITIVE=YES\""
|
||||||
|
);
|
||||||
my $x = $_ =~ /\[/ ? $_ : "[]".$_;
|
my $x = $_ =~ /\[/ ? $_ : "[]".$_;
|
||||||
if ($x =~ m|\.EXE$|) {
|
if ($x =~ m|\.EXE$|) {
|
||||||
push @lines, "\@ WRITE OPT_FILE \"$x/SHARE\"";
|
push @lines, "\@ WRITE OPT_FILE \"$x/SHARE\"";
|
||||||
|
|||||||
@@ -478,13 +478,18 @@ int rand_pool_add_nonce_data(RAND_POOL *pool)
|
|||||||
} data = { 0 };
|
} data = { 0 };
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Add process id, thread id, and a high resolution timestamp to
|
* Add process id, thread id, and a high resolution timestamp
|
||||||
* ensure that the nonce is unique whith high probability for
|
* (where available, which is OpenVMS v8.4 and up) to ensure that
|
||||||
* different process instances.
|
* the nonce is unique whith high probability for different process
|
||||||
|
* instances.
|
||||||
*/
|
*/
|
||||||
data.pid = getpid();
|
data.pid = getpid();
|
||||||
data.tid = CRYPTO_THREAD_get_current_id();
|
data.tid = CRYPTO_THREAD_get_current_id();
|
||||||
|
#if __CRTL_VER >= 80400000
|
||||||
sys$gettim_prec(&data.time);
|
sys$gettim_prec(&data.time);
|
||||||
|
#else
|
||||||
|
sys$gettim((void*)&data.time);
|
||||||
|
#endif
|
||||||
|
|
||||||
return rand_pool_add(pool, (unsigned char *)&data, sizeof(data), 0);
|
return rand_pool_add(pool, (unsigned char *)&data, sizeof(data), 0);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -998,7 +998,9 @@ static int final_server_name(SSL *s, unsigned int context, int sent)
|
|||||||
|
|
||||||
switch (ret) {
|
switch (ret) {
|
||||||
case SSL_TLSEXT_ERR_ALERT_FATAL:
|
case SSL_TLSEXT_ERR_ALERT_FATAL:
|
||||||
SSLfatal(s, altmp, SSL_F_FINAL_SERVER_NAME, SSL_R_CALLBACK_FAILED);
|
s->statem.in_init = 1;
|
||||||
|
s->statem.state = MSG_FLOW_ERROR;
|
||||||
|
ssl3_send_alert(s, SSL3_AL_FATAL, SSL_F_FINAL_RENEGOTIATE);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
case SSL_TLSEXT_ERR_ALERT_WARNING:
|
case SSL_TLSEXT_ERR_ALERT_WARNING:
|
||||||
|
|||||||
+2
-2
@@ -17,10 +17,10 @@ IF[{- !$disabled{tests} -}]
|
|||||||
DEPEND[libtestutil.a]=../libcrypto
|
DEPEND[libtestutil.a]=../libcrypto
|
||||||
|
|
||||||
# Special hack for descrip.mms to include the MAIN object module
|
# Special hack for descrip.mms to include the MAIN object module
|
||||||
# explicitly. This will only be done if there isn't a MAIN in the
|
# explicitly. This will only be done if there isn't a 'main' in the
|
||||||
# program's object modules already.
|
# program's object modules already.
|
||||||
BEGINRAW[descrip.mms]
|
BEGINRAW[descrip.mms]
|
||||||
INCLUDE_MAIN___test_libtestutil_OLB = /INCLUDE=MAIN
|
INCLUDE_MAIN___test_libtestutil_OLB = /INCLUDE=main
|
||||||
ENDRAW[descrip.mms]
|
ENDRAW[descrip.mms]
|
||||||
|
|
||||||
PROGRAMS_NO_INST=\
|
PROGRAMS_NO_INST=\
|
||||||
|
|||||||
@@ -9,18 +9,8 @@
|
|||||||
|
|
||||||
#include "internal/nelem.h"
|
#include "internal/nelem.h"
|
||||||
#include "testutil.h"
|
#include "testutil.h"
|
||||||
|
|
||||||
#ifdef __VMS
|
|
||||||
# pragma names save
|
|
||||||
# pragma names as_is,shortened
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../ssl/ssl_locl.h"
|
#include "../ssl/ssl_locl.h"
|
||||||
|
|
||||||
#ifdef __VMS
|
|
||||||
# pragma names restore
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static int cipher_overhead(void)
|
static int cipher_overhead(void)
|
||||||
{
|
{
|
||||||
int ret = 1, i, n = ssl3_num_ciphers();
|
int ret = 1, i, n = ssl3_num_ciphers();
|
||||||
|
|||||||
@@ -10,18 +10,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <openssl/e_os2.h>
|
#include <openssl/e_os2.h>
|
||||||
#include <openssl/evp.h>
|
#include <openssl/evp.h>
|
||||||
|
|
||||||
#ifdef __VMS
|
|
||||||
# pragma names save
|
|
||||||
# pragma names as_is,shortened
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "curve448_lcl.h"
|
#include "curve448_lcl.h"
|
||||||
|
|
||||||
#ifdef __VMS
|
|
||||||
# pragma names restore
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "testutil.h"
|
#include "testutil.h"
|
||||||
|
|
||||||
static unsigned int max = 1000;
|
static unsigned int max = 1000;
|
||||||
|
|||||||
@@ -15,19 +15,9 @@
|
|||||||
#include <openssl/ssl.h>
|
#include <openssl/ssl.h>
|
||||||
#include "testutil.h"
|
#include "testutil.h"
|
||||||
#include "internal/nelem.h"
|
#include "internal/nelem.h"
|
||||||
|
|
||||||
#ifdef __VMS
|
|
||||||
# pragma names save
|
|
||||||
# pragma names as_is,shortened
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../ssl/ssl_locl.h"
|
#include "../ssl/ssl_locl.h"
|
||||||
#include "../ssl/ssl_cert_table.h"
|
#include "../ssl/ssl_cert_table.h"
|
||||||
|
|
||||||
#ifdef __VMS
|
|
||||||
# pragma names restore
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define test_cert_table(nid, amask, idx) \
|
#define test_cert_table(nid, amask, idx) \
|
||||||
do_test_cert_table(nid, amask, idx, #idx)
|
do_test_cert_table(nid, amask, idx, #idx)
|
||||||
|
|
||||||
|
|||||||
@@ -9,19 +9,8 @@
|
|||||||
|
|
||||||
#include <openssl/ssl.h>
|
#include <openssl/ssl.h>
|
||||||
#include <openssl/evp.h>
|
#include <openssl/evp.h>
|
||||||
|
|
||||||
#ifdef __VMS
|
|
||||||
# pragma names save
|
|
||||||
# pragma names as_is,shortened
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../ssl/ssl_locl.h"
|
#include "../ssl/ssl_locl.h"
|
||||||
#include "../ssl/record/record_locl.h"
|
#include "../ssl/record/record_locl.h"
|
||||||
|
|
||||||
#ifdef __VMS
|
|
||||||
# pragma names restore
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "internal/nelem.h"
|
#include "internal/nelem.h"
|
||||||
#include "testutil.h"
|
#include "testutil.h"
|
||||||
|
|
||||||
|
|||||||
@@ -10,17 +10,7 @@
|
|||||||
#include <openssl/ssl.h>
|
#include <openssl/ssl.h>
|
||||||
#include <openssl/evp.h>
|
#include <openssl/evp.h>
|
||||||
|
|
||||||
#ifdef __VMS
|
|
||||||
# pragma names save
|
|
||||||
# pragma names as_is,shortened
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../ssl/ssl_locl.h"
|
#include "../ssl/ssl_locl.h"
|
||||||
|
|
||||||
#ifdef __VMS
|
|
||||||
# pragma names restore
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "testutil.h"
|
#include "testutil.h"
|
||||||
|
|
||||||
#define IVLEN 12
|
#define IVLEN 12
|
||||||
|
|||||||
@@ -9,18 +9,7 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <openssl/buffer.h>
|
#include <openssl/buffer.h>
|
||||||
|
|
||||||
#ifdef __VMS
|
|
||||||
# pragma names save
|
|
||||||
# pragma names as_is,shortened
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../ssl/packet_locl.h"
|
#include "../ssl/packet_locl.h"
|
||||||
|
|
||||||
#ifdef __VMS
|
|
||||||
# pragma names restore
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "testutil.h"
|
#include "testutil.h"
|
||||||
|
|
||||||
static const unsigned char simple1[] = { 0xff };
|
static const unsigned char simple1[] = { 0xff };
|
||||||
|
|||||||
@@ -23,18 +23,9 @@
|
|||||||
*
|
*
|
||||||
***/
|
***/
|
||||||
|
|
||||||
#ifdef __VMS
|
|
||||||
# pragma names save
|
|
||||||
# pragma names as_is,shortened
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "../crypto/x509v3/ext_dat.h"
|
#include "../crypto/x509v3/ext_dat.h"
|
||||||
#include "../crypto/x509v3/standard_exts.h"
|
#include "../crypto/x509v3/standard_exts.h"
|
||||||
|
|
||||||
#ifdef __VMS
|
|
||||||
# pragma names restore
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static int test_standard_exts(void)
|
static int test_standard_exts(void)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|||||||
Reference in New Issue
Block a user