Win32 test batch file going again.
Changes between 0.9.1c and 0.9.2
+ *) Comment out two functions in bio.h that aren't implemented. Fix up the
+ Win32 test batch file so it (might) work again. The Win32 test batch file
+ is horrible: I feel ill....
+ [Steve Henson]
+
*) Move various #ifdefs around so NO_SYSLOG, NO_DIRENT etc are now selected
in e_os.h. Audit of header files to check ANSI and non ANSI
sections: 10 functions were absent from non ANSI section and not exported
from Windows DLLs. Fixed up libeay.num for new functions.
+ [Steve Henson]
*) Make `openssl version' output lines consistent.
[Ralf S. Engelschall]
*) Permit extensions to be added to CRLs using crl_section in openssl.cnf.
Currently only issuerAltName and AuthorityKeyIdentifier make any sense
in CRLs.
+ [Steve Henson]
*) Add a useful kludge to allow package maintainers to specify compiler and
other platforms details on the command line without having to patch the
nmake -f ms\ntdll.mak
you may get a warning about too many rules but if all is well it should all
-compile and you will have some DLLs and executables in out32dll.
+compile and you will have some DLLs and executables in out32dll. If you want
+to try the tests then cd to out32dll and run ..\ms\test
Troubleshooting.
in and fix it. Alternatively you can turn off the halt on warnings by editing
the CFLAG line in the Makefile and deleting the /WX option.
-Finally you might get compilation errors. Again you will have to fix these or
+You might get compilation errors. Again you will have to fix these or
report them.
+One final comment about compiling applications linked to the OpenSSL library.
+If you don't use the multithreaded DLL runtime library (/MD option) your
+program will almost certainly crash: see the original SSLeay description below
+for more details.
+
Tweaks.
There are various changes you can make to the Win32 compile environment. If you
have the MASM assembler 'ml' then you can try the assembly language code. To
-do this remove the 'no-asm' part from do_ms.bat.
+do this remove the 'no-asm' part from do_ms.bat. You can also add 'debug' here
+to make a debugging version of the library.
If you want to enable the NT specific features of OpenSSL (currently only
the logging BIO) follow the instructions above but call the batch file
OpenSSL STATUS Last modified at
- ______________ $Date: 1999/03/08 21:56:46 $
+ ______________ $Date: 1999/03/09 03:01:42 $
DEVELOPMENT STATE
o FreeBSD 2.2.7 Ben Laurie OK
o FreeBSD 3.1 Ralf S. Engelschall all silent
o Solaris 2.6 Ralf S. Engelschall ctype-related warnings, test fails
+ o Linux RH 5.1 Steve Henson OK
Proposed release time: Monday, March 15th 1999
# endif /* FP_API */
#else
-int BIO_get_ex_num();
+/* These two aren't currently implemented */
+/*int BIO_get_ex_num();*/
+/*void BIO_set_ex_free_func();*/
int BIO_set_ex_data();
char *BIO_get_ex_data();
-void BIO_set_ex_free_func();
int BIO_get_ex_new_index();
# if defined(WIN16) && defined(_WINDLL)
-rem called by testenc
-
-echo test %1 %2 %3 %4 %5 %6
-%ssleay% %1 %2 %3 %4 %5 %6 -e -bufsize 113 -k test -in %input% -out %tmp1%
-%ssleay% %1 %2 %3 %4 %5 %6 -d -bufsize 157 -k test -in %tmp1% -out %out1%
-%cmp% %input% %out1%
-if errorlevel 1 goto err
-
-echo test base64 %1 %2 %3 %4 %5 %6
-%ssleay% %1 %2 %3 %4 %5 %6 -a -e -bufsize 113 -k test -in %input% -out %tmp1%
-%ssleay% %1 %2 %3 %4 %5 %6 -a -d -bufsize 157 -k test -in %tmp1% -out %out1%
-%cmp% %input% %out1%
-
-:err
+rem called by testenc\r
+\r
+echo test %1 %2 %3 %4 %5 %6 \r
+%ssleay% %1 %2 %3 %4 %5 %6 -e -bufsize 113 -k test -in %input% -out %tmp1%\r
+%ssleay% %1 %2 %3 %4 %5 %6 -d -bufsize 157 -k test -in %tmp1% -out %out1%\r
+%cmp% %input% %out1%\r
+if errorlevel 1 goto err\r
+\r
+echo test base64 %1 %2 %3 %4 %5 %6 \r
+%ssleay% %1 %2 %3 %4 %5 %6 -a -e -bufsize 113 -k test -in %input% -out %tmp1%\r
+%ssleay% %1 %2 %3 %4 %5 %6 -a -d -bufsize 157 -k test -in %tmp1% -out %out1%\r
+%cmp% %input% %out1%\r
+\r
+:err\r
@echo=off\r
\r
-set test=p:\work\ssleay\ms\r
+set test=..\ms\r
set opath=%PATH%\r
-PATH=%1;%PATH%\r
+PATH=..\ms;%PATH%\r
+set OPENSSL_CONF=..\apps\openssl.cnf\r
\r
rem run this from inside the bin directory\r
\r
if errorlevel 1 goto done\r
\r
echo testenc\r
-call %test%\testenc ssleay\r
+call %test%\testenc openssl\r
if errorlevel 1 goto done\r
\r
echo testpem\r
-call %test%\testpem ssleay\r
+call %test%\testpem openssl\r
if errorlevel 1 goto done\r
\r
echo verify\r
copy ..\certs\*.pem cert.tmp >nul\r
-ssleay verify -CAfile cert.tmp ..\certs\*.pem\r
+openssl verify -CAfile cert.tmp ..\certs\*.pem\r
\r
echo testss\r
-call %test%\testss ssleay\r
+call %test%\testss openssl\r
if errorlevel 1 goto done\r
\r
echo test sslv2\r
\r
echo start testenc\r
-path=p:\work\ssleay\ms;%path%\r
+echo=off\r
+path=d:\openssl\ms;%path%\r
set ssleay=%1%\r
-set input=p:\work\ssleay\ms\testenc.bat\r
-set tmp1=p:\work\ssleay\ms\cipher.out\r
-set out1=p:\work\ssleay\ms\clear.out\r
-set cmp=perl p:\work\ssleay\ms\cmp.pl\r
+set input=d:\openssl\ms\testenc.bat\r
+set tmp1=d:\openssl\ms\cipher.out\r
+set out1=d:\openssl\ms\clear.out\r
+set cmp=perl d:\openssl\ms\cmp.pl\r
\r
cd\r
call tenc.bat enc\r
-echo=off
-set ssleay=%1%
-set tmp1=pem.out
-set cmp=perl ..\ms\cmp.pl
-
-call tpem.bat crl ..\test\testcrl.pem
-if errorlevel 1 goto err
-
-call tpem.bat pkcs7 ..\test\testp7.pem
-if errorlevel 1 goto err
-
-call tpem.bat req ..\test\testreq.pem
-if errorlevel 1 goto err
-
-call tpem.bat req ..\test\testreq2.pem
-if errorlevel 1 goto err
-
-call tpem.bat rsa ..\test\testrsa.pem
-if errorlevel 1 goto err
-
-call tpem.bat x509 ..\test\testx509.pem
-if errorlevel 1 goto err
-
-call tpem.bat x509 ..\test\v3-cert1.pem
-if errorlevel 1 goto err
-
-call tpem.bat x509 ..\test\v3-cert1.pem
-if errorlevel 1 goto err
-
-call tpem.bat sess_id ..\test\testsid.pem
-if errorlevel 1 goto err
-
-echo OK
-del %tmp1%
-:err
-
+echo=off\r
+set ssleay=%1%\r
+set tmp1=pem.out\r
+set cmp=perl ..\ms\cmp.pl\r
+\r
+call tpem.bat crl ..\test\testcrl.pem\r
+if errorlevel 1 goto err\r
+\r
+call tpem.bat pkcs7 ..\test\testp7.pem\r
+if errorlevel 1 goto err\r
+\r
+call tpem.bat req ..\test\testreq.pem\r
+if errorlevel 1 goto err\r
+\r
+call tpem.bat req ..\test\testreq2.pem\r
+if errorlevel 1 goto err\r
+\r
+call tpem.bat rsa ..\test\testrsa.pem\r
+if errorlevel 1 goto err\r
+\r
+call tpem.bat x509 ..\test\testx509.pem\r
+if errorlevel 1 goto err\r
+\r
+call tpem.bat x509 ..\test\v3-cert1.pem\r
+if errorlevel 1 goto err\r
+\r
+call tpem.bat x509 ..\test\v3-cert1.pem\r
+if errorlevel 1 goto err\r
+\r
+call tpem.bat sess_id ..\test\testsid.pem\r
+if errorlevel 1 goto err\r
+\r
+echo OK\r
+del %tmp1%\r
+:err\r
-echo=off
-
-rem set ssleay=..\out\ssleay
-set ssleay=%1
-
-set reqcmd=%ssleay% req
-set x509cmd=%ssleay% x509
-set verifycmd=%ssleay% verify
-
-set CAkey=keyCA.ss
-set CAcert=certCA.ss
-set CAserial=certCA.srl
-set CAreq=reqCA.ss
-set CAconf=..\test\CAss.cnf
-set CAreq2=req2CA.ss
-
-set Uconf=..\test\Uss.cnf
-set Ukey=keyU.ss
-set Ureq=reqU.ss
-set Ucert=certU.ss
-
-echo make a certificate request using 'req'
-%reqcmd% -config %CAconf% -out %CAreq% -keyout %CAkey% -new
-if errorlevel 1 goto err_req
-
-echo convert the certificate request into a self signed certificate using 'x509'
-%x509cmd% -CAcreateserial -in %CAreq% -days 30 -req -out %CAcert% -signkey %CAkey% >err.ss
-if errorlevel 1 goto err_x509
-
-echo --
-echo convert a certificate into a certificate request using 'x509'
-%x509cmd% -in %CAcert% -x509toreq -signkey %CAkey% -out %CAreq2% >err.ss
-if errorlevel 1 goto err_x509_2
-
-%reqcmd% -verify -in %CAreq% -noout
-if errorlevel 1 goto err_verify_1
-
-%reqcmd% -verify -in %CAreq2% -noout
-if errorlevel 1 goto err_verify_2
-
-%verifycmd% -CAfile %CAcert% %CAcert%
-if errorlevel 1 goto err_verify_3
-
-echo --
-echo make another certificate request using 'req'
-%reqcmd% -config %Uconf% -out %Ureq% -keyout %Ukey% -new >err.ss
-if errorlevel 1 goto err_req_gen
-
-echo --
-echo sign certificate request with the just created CA via 'x509'
-%x509cmd% -CAcreateserial -in %Ureq% -days 30 -req -out %Ucert% -CA %CAcert% -CAkey %CAkey% -CAserial %CAserial%
-if errorlevel 1 goto err_x509_sign
-
-%verifycmd% -CAfile %CAcert% %Ucert%
-echo --
-echo Certificate details
-%x509cmd% -subject -issuer -startdate -enddate -noout -in %Ucert%
-
-echo Everything appeared to work
-echo --
-echo The generated CA certificate is %CAcert%
-echo The generated CA private key is %CAkey%
-echo The current CA signing serial number is in %CAserial%
-
-echo The generated user certificate is %Ucert%
-echo The generated user private key is %Ukey%
-echo --
-
-del err.ss
-
-goto end
-
-:err_req
-echo error using 'req' to generate a certificate request
-goto end
-:err_x509
-echo error using 'x509' to self sign a certificate request
-goto end
-:err_x509_2
-echo error using 'x509' convert a certificate to a certificate request
-goto end
-:err_verify_1
-echo first generated request is invalid
-goto end
-:err_verify_2
-echo second generated request is invalid
-goto end
-:err_verify_3
-echo first generated cert is invalid
-goto end
-:err_req_gen
-echo error using 'req' to generate a certificate request
-goto end
-:err_x509_sign
-echo error using 'x509' to sign a certificate request
-goto end
-
-:end
+echo=on\r
+\r
+rem set ssleay=..\out\ssleay\r
+set ssleay=%1\r
+\r
+set reqcmd=%ssleay% req\r
+set x509cmd=%ssleay% x509\r
+set verifycmd=%ssleay% verify\r
+\r
+set CAkey=keyCA.ss\r
+set CAcert=certCA.ss\r
+set CAserial=certCA.srl\r
+set CAreq=reqCA.ss\r
+set CAconf=..\test\CAss.cnf\r
+set CAreq2=req2CA.ss \r
+\r
+set Uconf=..\test\Uss.cnf\r
+set Ukey=keyU.ss\r
+set Ureq=reqU.ss\r
+set Ucert=certU.ss\r
+\r
+echo make a certificate request using 'req'\r
+%reqcmd% -config %CAconf% -out %CAreq% -keyout %CAkey% -new\r
+if errorlevel 1 goto err_req\r
+\r
+echo convert the certificate request into a self signed certificate using 'x509'\r
+%x509cmd% -CAcreateserial -in %CAreq% -days 30 -req -out %CAcert% -signkey %CAkey% >err.ss\r
+if errorlevel 1 goto err_x509\r
+\r
+echo --\r
+echo convert a certificate into a certificate request using 'x509'\r
+%x509cmd% -in %CAcert% -x509toreq -signkey %CAkey% -out %CAreq2% >err.ss\r
+if errorlevel 1 goto err_x509_2\r
+\r
+%reqcmd% -verify -in %CAreq% -noout\r
+if errorlevel 1 goto err_verify_1\r
+\r
+%reqcmd% -verify -in %CAreq2% -noout\r
+if errorlevel 1 goto err_verify_2\r
+\r
+%verifycmd% -CAfile %CAcert% %CAcert%\r
+if errorlevel 1 goto err_verify_3\r
+\r
+echo --\r
+echo make another certificate request using 'req'\r
+%reqcmd% -config %Uconf% -out %Ureq% -keyout %Ukey% -new >err.ss\r
+if errorlevel 1 goto err_req_gen\r
+\r
+echo --\r
+echo sign certificate request with the just created CA via 'x509'\r
+%x509cmd% -CAcreateserial -in %Ureq% -days 30 -req -out %Ucert% -CA %CAcert% -CAkey %CAkey% -CAserial %CAserial%\r
+if errorlevel 1 goto err_x509_sign\r
+\r
+%verifycmd% -CAfile %CAcert% %Ucert%\r
+echo --\r
+echo Certificate details\r
+%x509cmd% -subject -issuer -startdate -enddate -noout -in %Ucert%\r
+\r
+echo Everything appeared to work\r
+echo --\r
+echo The generated CA certificate is %CAcert%\r
+echo The generated CA private key is %CAkey%\r
+echo The current CA signing serial number is in %CAserial%\r
+\r
+echo The generated user certificate is %Ucert%\r
+echo The generated user private key is %Ukey%\r
+echo --\r
+\r
+del err.ss\r
+\r
+goto end\r
+\r
+:err_req\r
+echo error using 'req' to generate a certificate request\r
+goto end\r
+:err_x509\r
+echo error using 'x509' to self sign a certificate request\r
+goto end\r
+:err_x509_2\r
+echo error using 'x509' convert a certificate to a certificate request\r
+goto end\r
+:err_verify_1\r
+echo first generated request is invalid\r
+goto end\r
+:err_verify_2\r
+echo second generated request is invalid\r
+goto end\r
+:err_verify_3\r
+echo first generated cert is invalid\r
+goto end\r
+:err_req_gen\r
+echo error using 'req' to generate a certificate request\r
+goto end\r
+:err_x509_sign\r
+echo error using 'x509' to sign a certificate request\r
+goto end\r
+\r
+:end\r
-rem called by testpem
-
-echo test %1 %2
-%ssleay% %1 -in %2 -out %tmp1%
-%cmp% %2 %tmp1%
-
+rem called by testpem\r
+\r
+echo test %1 %2\r
+%ssleay% %1 -in %2 -out %tmp1%\r
+%cmp% %2 %tmp1%\r
+\r
--- /dev/null
+-----BEGIN CERTIFICATE REQUEST-----
+MIIBQjCB7QIBADCBhzELMAkGA1UEBhMCQVUxEzARBgNVBAgTClF1ZWVuc2xhbmQx
+ETAPBgNVBAcTCEJyaXNiYW5lMRowGAYDVQQKExFDcnlwdFNvZnQgUHR5IEx0ZDET
+MBEGA1UEAxMKRXJpYyBZb3VuZzEfMB0GCSqGSIb3DQEJARYQZWF5QG1pbmNvbS5v
+ei5hdTBcMA0GCSqGSIb3DQEBAQUAA0sAMEgCQQDCLwdDF7Fu4DSiae/+3045nf73
+V5OdRnICMXq4M0td4upwgC/ve7w+3q1OzObOpFgpuP1PEOsHGO48GrolDu4lAgMB
+AAGgADANBgkqhkiG9w0BAQQFAANBAItCGg8qCPSoASvm3QUx/6PpreQclDO0bM2l
+eacLlzSHBUvaSqapR/pHfHG2r9l6PuEr/rrYHo+ZrAraSyPhEBc=
+-----END CERTIFICATE REQUEST-----