Loading CHANGES +1 −0 Changes for CHANGES: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ *) Start cleaning up OPENSSL_NO_xxx #define's OPENSSL_NO_RIPEMD160, OPENSSL_NO_RIPEMD merged into OPENSSL_NO_RMD160 OPENSSL_NO_FP_API merged into OPENSSL_NO_STDIO Use setbuf() and remove OPENSSL_NO_SETVBUF_IONBF [Rich Salz] *) Experimental support for a new, fast, unbiased prime candidate generator, Loading apps/apps.c +3 −15 Changes for apps/apps.c: 3 added lines, 15 removed lines. Original line number Diff line number Diff line Loading @@ -852,11 +852,7 @@ X509 *load_cert(BIO *err, const char *file, int format, } if (file == NULL) { #ifdef _IONBF # ifndef OPENSSL_NO_SETVBUF_IONBF setvbuf(stdin, NULL, _IONBF, 0); # endif /* ndef OPENSSL_NO_SETVBUF_IONBF */ #endif setbuf(stdin, NULL); /* don't do buffered reads */ BIO_set_fp(cert, stdin, BIO_NOCLOSE); } else { if (BIO_read_filename(cert, file) <= 0) { Loading Loading @@ -980,11 +976,7 @@ EVP_PKEY *load_key(BIO *err, const char *file, int format, int maybe_stdin, goto end; } if (file == NULL && maybe_stdin) { #ifdef _IONBF # ifndef OPENSSL_NO_SETVBUF_IONBF setvbuf(stdin, NULL, _IONBF, 0); # endif /* ndef OPENSSL_NO_SETVBUF_IONBF */ #endif setbuf(stdin, NULL); /* don't do buffered reads */ BIO_set_fp(key, stdin, BIO_NOCLOSE); } else if (BIO_read_filename(key, file) <= 0) { BIO_printf(err, "Error opening %s %s\n", key_descrip, file); Loading Loading @@ -1058,11 +1050,7 @@ EVP_PKEY *load_pubkey(BIO *err, const char *file, int format, int maybe_stdin, goto end; } if (file == NULL && maybe_stdin) { #ifdef _IONBF # ifndef OPENSSL_NO_SETVBUF_IONBF setvbuf(stdin, NULL, _IONBF, 0); # endif /* ndef OPENSSL_NO_SETVBUF_IONBF */ #endif setbuf(stdin, NULL); /* don't do buffered reads */ BIO_set_fp(key, stdin, BIO_NOCLOSE); } else if (BIO_read_filename(key, file) <= 0) { BIO_printf(err, "Error opening %s %s\n", key_descrip, file); Loading apps/enc.c +2 −6 Changes for apps/enc.c: 2 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -396,10 +396,8 @@ int MAIN(int argc, char **argv) } if (inf == NULL) { #ifndef OPENSSL_NO_SETVBUF_IONBF if (bufsize != NULL) setvbuf(stdin, (char *)NULL, _IONBF, 0); #endif /* ndef OPENSSL_NO_SETVBUF_IONBF */ setbuf(stdin, NULL); BIO_set_fp(in, stdin, BIO_NOCLOSE); } else { if (BIO_read_filename(in, inf) <= 0) { Loading Loading @@ -442,10 +440,8 @@ int MAIN(int argc, char **argv) if (outf == NULL) { BIO_set_fp(out, stdout, BIO_NOCLOSE); #ifndef OPENSSL_NO_SETVBUF_IONBF if (bufsize != NULL) setvbuf(stdout, (char *)NULL, _IONBF, 0); #endif /* ndef OPENSSL_NO_SETVBUF_IONBF */ setbuf(stdin, NULL); /* don't do buffered reads */ #ifdef OPENSSL_SYS_VMS { BIO *tmpbio = BIO_new(BIO_f_linebuffer()); Loading crypto/rand/randfile.c +1 −3 Changes for crypto/rand/randfile.c: 1 added line, 3 removed lines. Original line number Diff line number Diff line Loading @@ -160,9 +160,7 @@ int RAND_load_file(const char *file, long bytes) * because we will waste system entropy. */ bytes = (bytes == -1) ? 2048 : bytes; /* ok, is 2048 enough? */ # ifndef OPENSSL_NO_SETVBUF_IONBF setvbuf(in, NULL, _IONBF, 0); /* don't do buffered reads */ # endif /* ndef OPENSSL_NO_SETVBUF_IONBF */ setbuf(stdin, NULL); /* don't do buffered reads */ } #endif for (;;) { Loading makevms.com +0 −8 Changes for makevms.com: 0 added lines, 8 removed lines. Original line number Diff line number Diff line Loading @@ -493,14 +493,6 @@ $ GOTO CONFIG_LOG_LOOP2 $ CONFIG_LOG_LOOP2_END: $! $ WRITE H_FILE "" $ WRITE H_FILE "/* 2011-02-23 SMS." $ WRITE H_FILE " * On VMS (V8.3), setvbuf() doesn't support a 64-bit" $ WRITE H_FILE " * ""in"" pointer, and the help says:" $ WRITE H_FILE " * Please note that the previously documented" $ WRITE H_FILE " * value _IONBF is not supported." $ WRITE H_FILE " * So, skip it on VMS." $ WRITE H_FILE " */" $ WRITE H_FILE "#define OPENSSL_NO_SETVBUF_IONBF" $ WRITE H_FILE "/* STCP support comes with TCPIP 5.7 ECO 2 " $ WRITE H_FILE " * enable on newer systems / 2012-02-24 arpadffy */" $ WRITE H_FILE "#define OPENSSL_NO_SCTP" Loading Loading
CHANGES +1 −0 Changes for CHANGES: 1 added line, 0 removed lines. Original line number Diff line number Diff line Loading @@ -43,6 +43,7 @@ *) Start cleaning up OPENSSL_NO_xxx #define's OPENSSL_NO_RIPEMD160, OPENSSL_NO_RIPEMD merged into OPENSSL_NO_RMD160 OPENSSL_NO_FP_API merged into OPENSSL_NO_STDIO Use setbuf() and remove OPENSSL_NO_SETVBUF_IONBF [Rich Salz] *) Experimental support for a new, fast, unbiased prime candidate generator, Loading
apps/apps.c +3 −15 Changes for apps/apps.c: 3 added lines, 15 removed lines. Original line number Diff line number Diff line Loading @@ -852,11 +852,7 @@ X509 *load_cert(BIO *err, const char *file, int format, } if (file == NULL) { #ifdef _IONBF # ifndef OPENSSL_NO_SETVBUF_IONBF setvbuf(stdin, NULL, _IONBF, 0); # endif /* ndef OPENSSL_NO_SETVBUF_IONBF */ #endif setbuf(stdin, NULL); /* don't do buffered reads */ BIO_set_fp(cert, stdin, BIO_NOCLOSE); } else { if (BIO_read_filename(cert, file) <= 0) { Loading Loading @@ -980,11 +976,7 @@ EVP_PKEY *load_key(BIO *err, const char *file, int format, int maybe_stdin, goto end; } if (file == NULL && maybe_stdin) { #ifdef _IONBF # ifndef OPENSSL_NO_SETVBUF_IONBF setvbuf(stdin, NULL, _IONBF, 0); # endif /* ndef OPENSSL_NO_SETVBUF_IONBF */ #endif setbuf(stdin, NULL); /* don't do buffered reads */ BIO_set_fp(key, stdin, BIO_NOCLOSE); } else if (BIO_read_filename(key, file) <= 0) { BIO_printf(err, "Error opening %s %s\n", key_descrip, file); Loading Loading @@ -1058,11 +1050,7 @@ EVP_PKEY *load_pubkey(BIO *err, const char *file, int format, int maybe_stdin, goto end; } if (file == NULL && maybe_stdin) { #ifdef _IONBF # ifndef OPENSSL_NO_SETVBUF_IONBF setvbuf(stdin, NULL, _IONBF, 0); # endif /* ndef OPENSSL_NO_SETVBUF_IONBF */ #endif setbuf(stdin, NULL); /* don't do buffered reads */ BIO_set_fp(key, stdin, BIO_NOCLOSE); } else if (BIO_read_filename(key, file) <= 0) { BIO_printf(err, "Error opening %s %s\n", key_descrip, file); Loading
apps/enc.c +2 −6 Changes for apps/enc.c: 2 added lines, 6 removed lines. Original line number Diff line number Diff line Loading @@ -396,10 +396,8 @@ int MAIN(int argc, char **argv) } if (inf == NULL) { #ifndef OPENSSL_NO_SETVBUF_IONBF if (bufsize != NULL) setvbuf(stdin, (char *)NULL, _IONBF, 0); #endif /* ndef OPENSSL_NO_SETVBUF_IONBF */ setbuf(stdin, NULL); BIO_set_fp(in, stdin, BIO_NOCLOSE); } else { if (BIO_read_filename(in, inf) <= 0) { Loading Loading @@ -442,10 +440,8 @@ int MAIN(int argc, char **argv) if (outf == NULL) { BIO_set_fp(out, stdout, BIO_NOCLOSE); #ifndef OPENSSL_NO_SETVBUF_IONBF if (bufsize != NULL) setvbuf(stdout, (char *)NULL, _IONBF, 0); #endif /* ndef OPENSSL_NO_SETVBUF_IONBF */ setbuf(stdin, NULL); /* don't do buffered reads */ #ifdef OPENSSL_SYS_VMS { BIO *tmpbio = BIO_new(BIO_f_linebuffer()); Loading
crypto/rand/randfile.c +1 −3 Changes for crypto/rand/randfile.c: 1 added line, 3 removed lines. Original line number Diff line number Diff line Loading @@ -160,9 +160,7 @@ int RAND_load_file(const char *file, long bytes) * because we will waste system entropy. */ bytes = (bytes == -1) ? 2048 : bytes; /* ok, is 2048 enough? */ # ifndef OPENSSL_NO_SETVBUF_IONBF setvbuf(in, NULL, _IONBF, 0); /* don't do buffered reads */ # endif /* ndef OPENSSL_NO_SETVBUF_IONBF */ setbuf(stdin, NULL); /* don't do buffered reads */ } #endif for (;;) { Loading
makevms.com +0 −8 Changes for makevms.com: 0 added lines, 8 removed lines. Original line number Diff line number Diff line Loading @@ -493,14 +493,6 @@ $ GOTO CONFIG_LOG_LOOP2 $ CONFIG_LOG_LOOP2_END: $! $ WRITE H_FILE "" $ WRITE H_FILE "/* 2011-02-23 SMS." $ WRITE H_FILE " * On VMS (V8.3), setvbuf() doesn't support a 64-bit" $ WRITE H_FILE " * ""in"" pointer, and the help says:" $ WRITE H_FILE " * Please note that the previously documented" $ WRITE H_FILE " * value _IONBF is not supported." $ WRITE H_FILE " * So, skip it on VMS." $ WRITE H_FILE " */" $ WRITE H_FILE "#define OPENSSL_NO_SETVBUF_IONBF" $ WRITE H_FILE "/* STCP support comes with TCPIP 5.7 ECO 2 " $ WRITE H_FILE " * enable on newer systems / 2012-02-24 arpadffy */" $ WRITE H_FILE "#define OPENSSL_NO_SCTP" Loading