"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mk/make-config.sh" between
s-nail-14.9.18.tar.xz and s-nail-14.9.19.tar.xz

About: S-nail is a mail processing system intended to provide the functionality of the POSIX mailx command and offers extensions for line editing, IDNA, MIME, S/MIME, SMTP and POP3 (and IMAP). It is usable as a mail batch language.

make-config.sh  (s-nail-14.9.18.tar.xz):make-config.sh  (s-nail-14.9.19.tar.xz)
skipping to change at line 2527 skipping to change at line 2527
return 0; return 0;
} }
! !
VAL_TLS_FEATURES= VAL_TLS_FEATURES=
if feat_yes TLS; then # {{{ if feat_yes TLS; then # {{{
# {{{ LibreSSL decided to define OPENSSL_VERSION_NUMBER with a useless value # {{{ LibreSSL decided to define OPENSSL_VERSION_NUMBER with a useless value
# instead of keeping it at the one that corresponds to the OpenSSL at fork # instead of keeping it at the one that corresponds to the OpenSSL at fork
# time: we need to test it first in order to get things right # time: we need to test it first in order to get things right
if compile_check _xtls 'TLS (LibreSSL)' \ if compile_check _xtls 'TLS (LibreSSL)' \
'#define mx_HAVE_TLS '#define mx_HAVE_TLS mx_TLS_IMPL_RESSL
#define mx_HAVE_XTLS #define mx_HAVE_XTLS 0 /* 0 for LibreSSL */' << \!
#define mx_HAVE_XTLS_RESSL
#define mx_HAVE_XTLS_OPENSSL 0' << \!
#include <openssl/opensslv.h> #include <openssl/opensslv.h>
#ifdef LIBRESSL_VERSION_NUMBER #ifdef LIBRESSL_VERSION_NUMBER
#else #else
# error nope # error nope
#endif #endif
int nonempty;
! !
then then
ossl_v1_1= ossl_v1_1=
VAL_TLS_FEATURES=libressl,-tls-rand-file VAL_TLS_FEATURES=libressl,-tls-rand-file
# TODO OPENSSL_IS_BORINGSSL, but never tried that one! # TODO BORINGSSL, generalize this mess!
elif compile_check _xtls 'TLS (OpenSSL >= v3.0.0)' \
'#define mx_HAVE_TLS mx_TLS_IMPL_OPENSSL
#define mx_HAVE_XTLS 0x30000' << \!
#include <openssl/opensslv.h>
#if OPENSSL_VERSION_NUMBER + 0 >= 0x30000000L
#else
# error nope
#endif
int nonempty;
!
then
ossl_v1_1=1
VAL_TLS_FEATURES=libssl-0x30000,-tls-rand-file
elif compile_check _xtls 'TLS (OpenSSL >= v1.1.1)' \ elif compile_check _xtls 'TLS (OpenSSL >= v1.1.1)' \
'#define mx_HAVE_TLS '#define mx_HAVE_TLS mx_TLS_IMPL_OPENSSL
#define mx_HAVE_XTLS #define mx_HAVE_XTLS 0x10101' << \!
#define mx_HAVE_XTLS_OPENSSL 0x10101' << \!
#include <openssl/opensslv.h> #include <openssl/opensslv.h>
#if OPENSSL_VERSION_NUMBER + 0 >= 0x1010100fL #if OPENSSL_VERSION_NUMBER + 0 >= 0x1010100fL
#else #else
# error nope # error nope
#endif #endif
int nonempty;
! !
then then
ossl_v1_1=1 ossl_v1_1=1
VAL_TLS_FEATURES=libssl-0x10100,-tls-rand-file VAL_TLS_FEATURES=libssl-0x10100,-tls-rand-file
elif compile_check _xtls 'TLS (OpenSSL >= v1.1.0)' \ elif compile_check _xtls 'TLS (OpenSSL >= v1.1.0)' \
'#define mx_HAVE_TLS '#define mx_HAVE_TLS mx_TLS_IMPL_OPENSSL
#define mx_HAVE_XTLS #define mx_HAVE_XTLS 0x10100
#define mx_HAVE_XTLS_OPENSSL 0x10100 #define mx_XTLS_HAVE_RAND_FILE' << \!
#define mx_HAVE_TLS_RAND_FILE' << \!
#include <openssl/opensslv.h> #include <openssl/opensslv.h>
#if OPENSSL_VERSION_NUMBER + 0 >= 0x10100000L #if OPENSSL_VERSION_NUMBER + 0 >= 0x10100000L
#else #else
# error nope # error nope
#endif #endif
int nonempty;
! !
then then
ossl_v1_1=1 ossl_v1_1=1
VAL_TLS_FEATURES=libssl-0x10100,+tls-rand-file VAL_TLS_FEATURES=libssl-0x10100,+tls-rand-file
elif compile_check _xtls 'TLS (OpenSSL)' \ elif compile_check _xtls 'TLS (OpenSSL)' \
'#define mx_HAVE_TLS '#define mx_HAVE_TLS mx_TLS_IMPL_OPENSSL
#define mx_HAVE_XTLS #define mx_HAVE_XTLS 0x10000
#define mx_HAVE_XTLS_OPENSSL 0x10000 #define mx_XTLS_HAVE_RAND_FILE' << \!
#define mx_HAVE_TLS_RAND_FILE' << \!
#include <openssl/opensslv.h> #include <openssl/opensslv.h>
#ifdef OPENSSL_VERSION_NUMBER #ifdef OPENSSL_VERSION_NUMBER
#else #else
# error nope # error nope
#endif #endif
int nonempty;
! !
then then
ossl_v1_1= ossl_v1_1=
VAL_TLS_FEATURES=libssl-0x10000,+tls-rand-file VAL_TLS_FEATURES=libssl-0x10000,+tls-rand-file
else else
feat_bail_required TLS feat_bail_required TLS
fi # }}} fi # }}}
if feat_yes TLS; then # {{{ if feat_yes TLS; then # {{{
if [ -n "${ossl_v1_1}" ]; then if [ -n "${ossl_v1_1}" ]; then
without_check 1 xtls 'TLS new style TLS_client_method(3ssl)' \ without_check 1 xtls 'TLS new style TLS_client_method(3ssl)' \
'#define n_XTLS_CLIENT_METHOD TLS_client_method' \ '#define mx_XTLS_CLIENT_METHOD TLS_client_method' \
'-lssl -lcrypto' '-lssl -lcrypto'
elif link_check xtls 'TLS new style TLS_client_method(3ssl)' \ elif link_check xtls 'TLS new style TLS_client_method(3ssl)' \
'#define n_XTLS_CLIENT_METHOD TLS_client_method' \ '#define mx_XTLS_CLIENT_METHOD TLS_client_method' \
'-lssl -lcrypto' << \! '-lssl -lcrypto' << \!
#include <openssl/ssl.h> #include <openssl/ssl.h>
#include <openssl/err.h> #include <openssl/err.h>
#include <openssl/x509v3.h> #include <openssl/x509v3.h>
#include <openssl/x509.h> #include <openssl/x509.h>
#include <openssl/rand.h> #include <openssl/rand.h>
#ifdef OPENSSL_NO_TLS1 /* TODO only deduced from OPENSSL_NO_SSL[23]! */ #ifdef OPENSSL_NO_TLS1 /* TODO only deduced from OPENSSL_NO_SSL[23]! */
# error We need TLSv1. # error We need TLSv1.
#endif #endif
int main(void){ int main(void){
SSL_CTX *ctx = SSL_CTX_new(TLS_client_method()); SSL_CTX *ctx = SSL_CTX_new(TLS_client_method());
SSL_CTX_free(ctx); SSL_CTX_free(ctx);
PEM_read_PrivateKey(0, 0, 0, 0); PEM_read_PrivateKey(0, 0, 0, 0);
return 0; return 0;
} }
! !
then then
: :
elif link_check xtls 'TLS old style SSLv23_client_method(3ssl)' \ elif link_check xtls 'TLS old style SSLv23_client_method(3ssl)' \
'#define n_XTLS_CLIENT_METHOD SSLv23_client_method' \ '#define mx_XTLS_CLIENT_METHOD SSLv23_client_method' \
'-lssl -lcrypto' << \! '-lssl -lcrypto' << \!
#include <openssl/ssl.h> #include <openssl/ssl.h>
#include <openssl/err.h> #include <openssl/err.h>
#include <openssl/x509v3.h> #include <openssl/x509v3.h>
#include <openssl/x509.h> #include <openssl/x509.h>
#include <openssl/rand.h> #include <openssl/rand.h>
#if defined OPENSSL_NO_SSL3 &&\ #if defined OPENSSL_NO_SSL3 &&\
defined OPENSSL_NO_TLS1 /* TODO only deduced from OPENSSL_NO_SSL[23]! */ defined OPENSSL_NO_TLS1 /* TODO only deduced from OPENSSL_NO_SSL[23]! */
# error We need one of SSLv3 and TLSv1. # error We need one of SSLv3 and TLSv1.
#endif #endif
skipping to change at line 2641 skipping to change at line 2653
! !
then then
: :
else else
feat_bail_required TLS feat_bail_required TLS
fi fi
fi # }}} fi # }}}
if feat_yes TLS; then # {{{ if feat_yes TLS; then # {{{
if [ -n "${ossl_v1_1}" ]; then if [ -n "${ossl_v1_1}" ]; then
without_check 1 xtls_stack_of 'TLS STACK_OF()' \ without_check 1 xtls_stack_of '*SSL STACK_OF()' \
'#define mx_HAVE_XTLS_STACK_OF' '#define mx_XTLS_HAVE_STACK_OF'
elif compile_check xtls_stack_of 'TLS STACK_OF()' \ elif compile_check xtls_stack_of '*SSL STACK_OF()' \
'#define mx_HAVE_XTLS_STACK_OF' << \! '#define mx_XTLS_HAVE_STACK_OF' << \!
#include <stdio.h> /* For C89 NULL */ #include <stdio.h> /* For C89 NULL */
#include <openssl/ssl.h> #include <openssl/ssl.h>
#include <openssl/err.h> #include <openssl/err.h>
#include <openssl/x509v3.h> #include <openssl/x509v3.h>
#include <openssl/x509.h> #include <openssl/x509.h>
#include <openssl/rand.h> #include <openssl/rand.h>
int main(void){ int main(void){
STACK_OF(GENERAL_NAME) *gens = NULL; STACK_OF(GENERAL_NAME) *gens = NULL;
printf("%p", gens); /* to use it */ printf("%p", gens); /* to use it */
return 0; return 0;
} }
! !
then then
: :
fi fi
if [ -n "${ossl_v1_1}" ]; then if [ -n "${ossl_v1_1}" ]; then
without_check 1 xtls_conf 'TLS OpenSSL_modules_load_file(3ssl)' \ without_check 1 xtls_conf 'TLS OpenSSL_modules_load_file(3ssl)' \
'#define mx_HAVE_XTLS_CONFIG' '#define mx_XTLS_HAVE_CONFIG'
VAL_TLS_FEATURES="${VAL_TLS_FEATURES},+modules-load-file" VAL_TLS_FEATURES="${VAL_TLS_FEATURES},+modules-load-file"
elif link_check xtls_conf \ elif link_check xtls_conf \
'TLS OpenSSL_modules_load_file(3ssl) support' \ 'TLS OpenSSL_modules_load_file(3ssl) support' \
'#define mx_HAVE_XTLS_CONFIG' << \! '#define mx_XTLS_HAVE_CONFIG' << \!
#include <stdio.h> /* For C89 NULL */ #include <stdio.h> /* For C89 NULL */
#include <openssl/conf.h> #include <openssl/conf.h>
int main(void){ int main(void){
CONF_modules_load_file(NULL, NULL, CONF_MFLAGS_IGNORE_MISSING_FILE); CONF_modules_load_file(NULL, NULL, CONF_MFLAGS_IGNORE_MISSING_FILE);
#if mx_HAVE_XTLS < 0x10100
CONF_modules_free(); CONF_modules_free();
#endif
return 0; return 0;
} }
! !
then then
VAL_TLS_FEATURES="${VAL_TLS_FEATURES},+modules-load-file" VAL_TLS_FEATURES="${VAL_TLS_FEATURES},+modules-load-file"
else else
VAL_TLS_FEATURES="${VAL_TLS_FEATURES},-modules-load-file" VAL_TLS_FEATURES="${VAL_TLS_FEATURES},-modules-load-file"
fi fi
if [ -n "${ossl_v1_1}" ]; then if [ -n "${ossl_v1_1}" ]; then
without_check 1 xtls_conf_ctx 'TLS SSL_CONF_CTX support' \ without_check 1 xtls_conf_ctx 'TLS SSL_CONF_CTX support' \
'#define mx_HAVE_XTLS_CONF_CTX' '#define mx_XTLS_HAVE_CONF_CTX'
VAL_TLS_FEATURES="${VAL_TLS_FEATURES},+conf-ctx" VAL_TLS_FEATURES="${VAL_TLS_FEATURES},+conf-ctx"
elif link_check xtls_conf_ctx 'TLS SSL_CONF_CTX support' \ elif link_check xtls_conf_ctx 'TLS SSL_CONF_CTX support' \
'#define mx_HAVE_XTLS_CONF_CTX' << \! '#define mx_XTLS_HAVE_CONF_CTX' << \!
#include <openssl/ssl.h> #include <openssl/ssl.h>
#include <openssl/err.h> #include <openssl/err.h>
int main(void){ int main(void){
SSL_CTX *ctx = SSL_CTX_new(n_XSSL_CLIENT_METHOD()); SSL_CTX *ctx = SSL_CTX_new(mx_XTLS_CLIENT_METHOD());
SSL_CONF_CTX *cctx = SSL_CONF_CTX_new(); SSL_CONF_CTX *cctx = SSL_CONF_CTX_new();
SSL_CONF_CTX_set_flags(cctx, SSL_CONF_CTX_set_flags(cctx,
SSL_CONF_FLAG_FILE | SSL_CONF_FLAG_CLIENT | SSL_CONF_FLAG_FILE | SSL_CONF_FLAG_CLIENT |
SSL_CONF_FLAG_CERTIFICATE | SSL_CONF_FLAG_SHOW_ERRORS); SSL_CONF_FLAG_CERTIFICATE | SSL_CONF_FLAG_SHOW_ERRORS);
SSL_CONF_CTX_set_ssl_ctx(cctx, ctx); SSL_CONF_CTX_set_ssl_ctx(cctx, ctx);
SSL_CONF_cmd(cctx, "Protocol", "ALL"); SSL_CONF_cmd(cctx, "Protocol", "ALL");
SSL_CONF_CTX_finish(cctx); SSL_CONF_CTX_finish(cctx);
SSL_CONF_CTX_free(cctx); SSL_CONF_CTX_free(cctx);
SSL_CTX_free(ctx); SSL_CTX_free(ctx);
skipping to change at line 2714 skipping to change at line 2728
} }
! !
then then
VAL_TLS_FEATURES="${VAL_TLS_FEATURES},+conf-ctx" VAL_TLS_FEATURES="${VAL_TLS_FEATURES},+conf-ctx"
else else
VAL_TLS_FEATURES="${VAL_TLS_FEATURES},-conf-ctx" VAL_TLS_FEATURES="${VAL_TLS_FEATURES},-conf-ctx"
fi fi
if [ -n "${ossl_v1_1}" ]; then if [ -n "${ossl_v1_1}" ]; then
without_check 1 xtls_ctx_config 'TLS SSL_CTX_config(3ssl)' \ without_check 1 xtls_ctx_config 'TLS SSL_CTX_config(3ssl)' \
'#define mx_HAVE_XTLS_CTX_CONFIG' '#define mx_XTLS_HAVE_CTX_CONFIG'
VAL_TLS_FEATURES="${VAL_TLS_FEATURES},+ctx-config" VAL_TLS_FEATURES="${VAL_TLS_FEATURES},+ctx-config"
elif [ -n "${have_xtls_conf}" ] && [ -n "${have_xtls_conf_ctx}" ] && elif [ -n "${have_xtls_conf}" ] && [ -n "${have_xtls_conf_ctx}" ] &&
link_check xtls_ctx_config 'TLS SSL_CTX_config(3ssl)' \ link_check xtls_ctx_config 'TLS SSL_CTX_config(3ssl)' \
'#define mx_HAVE_XTLS_CTX_CONFIG' << \! '#define mx_XTLS_HAVE_CTX_CONFIG' << \!
#include <stdio.h> /* For C89 NULL */ #include <stdio.h> /* For C89 NULL */
#include <openssl/ssl.h> #include <openssl/ssl.h>
int main(void){ int main(void){
SSL_CTX_config(NULL, "SOMEVAL"); SSL_CTX_config(NULL, "SOMEVAL");
return 0; return 0;
} }
! !
then then
VAL_TLS_FEATURES="${VAL_TLS_FEATURES},+ctx-config" VAL_TLS_FEATURES="${VAL_TLS_FEATURES},+ctx-config"
else else
VAL_TLS_FEATURES="${VAL_TLS_FEATURES},-ctx-config" VAL_TLS_FEATURES="${VAL_TLS_FEATURES},-ctx-config"
fi fi
if [ -n "${ossl_v1_1}" ] && [ -n "${have_xtls_conf_ctx}" ]; then if [ -n "${ossl_v1_1}" ] && [ -n "${have_xtls_conf_ctx}" ]; then
without_check 1 xtls_set_maxmin_proto \ without_check 1 xtls_set_maxmin_proto \
'TLS SSL_CTX_set_min_proto_version(3ssl)' \ 'TLS SSL_CTX_set_min_proto_version(3ssl)' \
'#define mx_HAVE_XTLS_SET_MIN_PROTO_VERSION' '#define mx_XTLS_HAVE_SET_MIN_PROTO_VERSION'
VAL_TLS_FEATURES="${VAL_TLS_FEATURES},+ctx-set-maxmin-proto" VAL_TLS_FEATURES="${VAL_TLS_FEATURES},+ctx-set-maxmin-proto"
elif link_check xtls_set_maxmin_proto \ elif link_check xtls_set_maxmin_proto \
'TLS SSL_CTX_set_min_proto_version(3ssl)' \ 'TLS SSL_CTX_set_min_proto_version(3ssl)' \
'#define mx_HAVE_XTLS_SET_MIN_PROTO_VERSION' << \! '#define mx_XTLS_HAVE_SET_MIN_PROTO_VERSION' << \!
#include <stdio.h> /* For C89 NULL */ #include <stdio.h> /* For C89 NULL */
#include <openssl/ssl.h> #include <openssl/ssl.h>
int main(void){ int main(void){
SSL_CTX_set_min_proto_version(NULL, 0); SSL_CTX_set_min_proto_version(NULL, 0);
SSL_CTX_set_max_proto_version(NULL, 10); SSL_CTX_set_max_proto_version(NULL, 10);
return 0; return 0;
} }
! !
then then
VAL_TLS_FEATURES="${VAL_TLS_FEATURES},+ctx-set-maxmin-proto" VAL_TLS_FEATURES="${VAL_TLS_FEATURES},+ctx-set-maxmin-proto"
else else
VAL_TLS_FEATURES="${VAL_TLS_FEATURES},-ctx-set-maxmin-proto" VAL_TLS_FEATURES="${VAL_TLS_FEATURES},-ctx-set-maxmin-proto"
fi fi
if [ -n "${ossl_v1_1}" ] && [ -n "${have_xtls_conf_ctx}" ]; then if [ -n "${ossl_v1_1}" ] && [ -n "${have_xtls_conf_ctx}" ]; then
without_check 1 xtls_set_ciphersuites \ without_check 1 xtls_set_ciphersuites \
'TLSv1.3 SSL_CTX_set_ciphersuites(3ssl)' \ 'TLSv1.3 SSL_CTX_set_ciphersuites(3ssl)' \
'#define mx_HAVE_XTLS_SET_CIPHERSUITES' '#define mx_XTLS_HAVE_SET_CIPHERSUITES'
VAL_TLS_FEATURES="${VAL_TLS_FEATURES},+ctx-set-ciphersuites" VAL_TLS_FEATURES="${VAL_TLS_FEATURES},+ctx-set-ciphersuites"
elif link_check xtls_set_ciphersuites \ elif link_check xtls_set_ciphersuites \
'TLSv1.3 SSL_CTX_set_ciphersuites(3ssl)' \ 'TLSv1.3 SSL_CTX_set_ciphersuites(3ssl)' \
'#define mx_HAVE_XTLS_SET_CIPHERSUITES' << \! '#define mx_XTLS_HAVE_SET_CIPHERSUITES' << \!
#include <stdio.h> /* For C89 NULL */ #include <stdio.h> /* For C89 NULL */
#include <openssl/ssl.h> #include <openssl/ssl.h>
int main(void){ int main(void){
SSL_CTX_set_ciphersuites(NULL, NULL); SSL_CTX_set_ciphersuites(NULL, NULL);
return 0; return 0;
} }
! !
then then
VAL_TLS_FEATURES="${VAL_TLS_FEATURES},+ctx-set-ciphersuites" VAL_TLS_FEATURES="${VAL_TLS_FEATURES},+ctx-set-ciphersuites"
else else
VAL_TLS_FEATURES="${VAL_TLS_FEATURES},-ctx-set-ciphersuites" VAL_TLS_FEATURES="${VAL_TLS_FEATURES},-ctx-set-ciphersuites"
fi fi
fi # feat_yes SSL }}} fi # feat_yes TLS }}}
if feat_yes TLS; then # digest etc algorithms {{{ if feat_yes TLS; then # digest etc algorithms {{{
if feat_yes TLS_ALL_ALGORITHMS; then if feat_yes TLS_ALL_ALGORITHMS; then
if [ -n "${ossl_v1_1}" ]; then if [ -n "${ossl_v1_1}" ]; then
without_check 1 tls_all_algo 'TLS_ALL_ALGORITHMS support' \ without_check 1 tls_all_algo 'TLS_ALL_ALGORITHMS support' \
'#define mx_HAVE_TLS_ALL_ALGORITHMS' '#define mx_HAVE_TLS_ALL_ALGORITHMS'
elif link_check tls_all_algo 'TLS all-algorithms support' \ elif link_check tls_all_algo 'TLS all-algorithms support' \
'#define mx_HAVE_TLS_ALL_ALGORITHMS' << \! '#define mx_HAVE_TLS_ALL_ALGORITHMS' << \!
#include <openssl/evp.h> #include <openssl/evp.h>
int main(void){ int main(void){
OpenSSL_add_all_algorithms(); OpenSSL_add_all_algorithms();
EVP_get_cipherbyname("two cents i never exist"); EVP_get_cipherbyname("two cents i never exist");
#if mx_HAVE_XTLS < 0x10100
EVP_cleanup(); EVP_cleanup();
#endif
return 0; return 0;
} }
! !
then then
: :
else else
feat_bail_required TLS_ALL_ALGORITHMS feat_bail_required TLS_ALL_ALGORITHMS
fi fi
elif [ -n "${ossl_v1_1}" ]; then elif [ -n "${ossl_v1_1}" ]; then
without_check 1 tls_all_algo \ without_check 1 tls_all_algo \
'TLS all-algorithms (always available in v1.1.0+)' \ 'TLS all-algorithms (always available in v1.1.0+)' \
'#define mx_HAVE_TLS_ALL_ALGORITHMS' '#define mx_HAVE_TLS_ALL_ALGORITHMS'
fi fi
# Blake # Blake
link_check tls_blake2 'TLS: BLAKE2 digests' \ link_check tls_blake2 'TLS: BLAKE2 digests' \
'#define mx_HAVE_XTLS_BLAKE2' << \! '#define mx_XTLS_HAVE_BLAKE2' << \!
#include <openssl/evp.h> #include <openssl/evp.h>
int main(void){ int main(void){
EVP_blake2b512(); EVP_blake2b512();
EVP_blake2s256(); EVP_blake2s256();
return 0; return 0;
} }
! !
# SHA-3 # SHA-3
link_check tls_sha3 'TLS: SHA-3 digests' '#define mx_HAVE_XTLS_SHA3' << \! link_check tls_sha3 'TLS: SHA-3 digests' \
'#define mx_XTLS_HAVE_SHA3' << \!
#include <openssl/evp.h> #include <openssl/evp.h>
int main(void){ int main(void){
EVP_sha3_512(); EVP_sha3_512();
EVP_sha3_384(); EVP_sha3_384();
EVP_sha3_256(); EVP_sha3_256();
EVP_sha3_224(); EVP_sha3_224();
return 0; return 0;
} }
! !
if feat_yes MD5 && feat_no NOEXTMD5; then if feat_yes MD5 && feat_no NOEXTMD5; then
run_check tls_md5 'TLS: MD5 digest' '#define mx_HAVE_XTLS_MD5' << \! run_check tls_md5 'TLS: MD5 digest' '#define mx_XTLS_HAVE_MD5' << \!
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <openssl/md5.h> #include <openssl/md5.h>
int main(void){ int main(void){
char const dat[] = "abrakadabrafidibus"; char const dat[] = "abrakadabrafidibus";
char dig[16], hex[16 * 2]; char dig[16], hex[16 * 2];
MD5_CTX ctx; MD5_CTX ctx;
size_t i, j; size_t i, j;
memset(dig, 0, sizeof(dig)); memset(dig, 0, sizeof(dig));
skipping to change at line 2898 skipping to change at line 2915
! !
} }
val_random_tls() { val_random_tls() {
if feat_yes TLS; then if feat_yes TLS; then
msg ' . VAL_RANDOM: tls ... yes' msg ' . VAL_RANDOM: tls ... yes'
echo '#define mx_HAVE_RANDOM mx_RANDOM_IMPL_TLS' >> ${h} echo '#define mx_HAVE_RANDOM mx_RANDOM_IMPL_TLS' >> ${h}
# Avoid reseeding, all we need is a streamy random producer # Avoid reseeding, all we need is a streamy random producer
link_check xtls_rand_drbg_set_reseed_defaults \ link_check xtls_rand_drbg_set_reseed_defaults \
'RAND_DRBG_set_reseed_defaults(3ssl)' \ 'RAND_DRBG_set_reseed_defaults(3ssl)' \
'#define mx_HAVE_XTLS_SET_RESEED_DEFAULTS' << \! '#define mx_XTLS_HAVE_SET_RESEED_DEFAULTS' << \!
#include <openssl/rand_drbg.h> #include <openssl/rand_drbg.h>
int main(void){ int main(void){
return (RAND_DRBG_set_reseed_defaults(0, 0, 0, 0) != 0); return (RAND_DRBG_set_reseed_defaults(0, 0, 0, 0) != 0);
} }
! !
return 0 return 0
else else
msg ' . VAL_RANDOM: tls ... no' msg ' . VAL_RANDOM: tls ... no'
return 1 return 1
fi fi
 End of changes. 33 change blocks. 
39 lines changed or deleted 56 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)