On Sat, Jul 19, 2014 at 1:39 PM, Jeff Trawick <[email protected]> wrote:

> On Jul 19, 2014 12:43 PM, "Salz, Rich" <[email protected]> wrote:
> >
> > We’re going to address the larger issues, in time.  For now:  does
> removing MSDOS fix the problem?
>
> I will try it and report my results.  It seems simple, but...
>
>
Yes, removing OPENSSL_SYS_MSDOS references in s_client.c should* fix this
issue for Windows.

s_client.c currently thinks that OPENSSL_SYS_WINDOWS and OPENSSL_SYS_MSDOS
are distinct platforms whereas e_os2.h does not.  (It define
OPENSSL_SYS_MSDOS whenever OPENSSL_SYS_WINDOWS is defined.)

I would like to see something like this patch committed to the 1.0.1 branch
though:

http://openssl.6102.n7.nabble.com/attachment/46787/0/s_client_USE_STD_INPUT_HANDLE.txt

--/--

*I would test, but I'm having trouble getting master building on Windows.
 Does anyone know if build instructions have changed?  (There aren't any
updates to INSTALL.W32/INSTAL.W64 recently.)

perl Configure no-asm --prefix=whatever VC-WIN64A
ms\do_win64a.bat
nmake /f ms\ntdll.mak

The first issue was that eng_rsax wasn't included in the generated
ntdll.mak but was referenced in the .def file.  So I edited the .mak to add
it.  Now the build runs until this error:

        link /nologo /subsystem:console /opt:ref /debug /dll
/out:out32dll\sslea
y32.dll /def:ms/SSLEAY32.def @C:\Users\Trawick\AppData\Local\Temp\nm2E9F.tmp
   Creating library out32dll\ssleay32.lib and object out32dll\ssleay32.exp
s3_srvr.obj : error LNK2019: unresolved external symbol DH_security_bits
referen
ced in function ssl3_send_server_key_exchange
s3_clnt.obj : error LNK2001: unresolved external symbol DH_security_bits
s3_lib.obj : error LNK2001: unresolved external symbol DH_security_bits
t1_lib.obj : error LNK2019: unresolved external symbol
EVP_PKEY_security_bits re
ferenced in function ssl_get_auto_dh
ssl_algs.obj : error LNK2019: unresolved external symbol
EVP_aes_128_cbc_hmac_sh
a256 referenced in function SSL_library_init
ssl_algs.obj : error LNK2019: unresolved external symbol
EVP_aes_256_cbc_hmac_sh
a256 referenced in function SSL_library_init
out32dll\ssleay32.dll : fatal error LNK1120: 4 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
11.0
\VC\BIN\amd64\link.EXE"' : return code '0x460'
Stop.

There were a number of warnings during do_win64a.bat that might have
something to do with this (bad def file?)

C:\Users\Trawick\git\openssl-july-19>perl util\mkdef.pl 32 libeay
 1>ms\libeay32
.def
Warning: ASN1_TIME_diff does not have a number assigned
Warning: ASN1_add_stable_module does not have a number assigned
Warning: ASN1_str2mask does not have a number assigned
Warning: BIO_hex_string does not have a number assigned
Warning: BN_generate_dsa_nonce does not have a number assigned
Warning: BN_security_bits does not have a number assigned
Warning: BUF_strnlen does not have a number assigned
Warning: CMS_RecipientEncryptedKey_cert_cmp does not have a number assigned
Warning: CMS_RecipientEncryptedKey_get0_id does not have a number assigned
Warning: CMS_RecipientInfo_encrypt does not have a number assigned
Warning: CMS_RecipientInfo_get0_pkey_ctx does not have a number assigned
Warning: CMS_RecipientInfo_kari_decrypt does not have a number assigned
Warning: CMS_RecipientInfo_kari_get0_alg does not have a number assigned
Warning: CMS_RecipientInfo_kari_get0_ctx does not have a number assigned
Warning: CMS_RecipientInfo_kari_get0_orig_id does not have a number assigned
Warning: CMS_RecipientInfo_kari_get0_reks does not have a number assigned
Warning: CMS_RecipientInfo_kari_orig_id_cmp does not have a number assigned
Warning: CMS_RecipientInfo_kari_set0_pkey does not have a number assigned
Warning: CMS_SharedInfo_encode does not have a number assigned
Warning: CMS_SignerInfo_get0_md_ctx does not have a number assigned
Warning: CMS_SignerInfo_get0_pkey_ctx does not have a number assigned
Warning: CMS_SignerInfo_get0_signature does not have a number assigned
Warning: CRYPTO_128_unwrap does not have a number assigned
Warning: CRYPTO_128_unwrap_pad does not have a number assigned
Warning: CRYPTO_128_wrap does not have a number assigned
Warning: CRYPTO_128_wrap_pad does not have a number assigned
Warning: DH_KDF_X9_42 does not have a number assigned
Warning: DH_security_bits does not have a number assigned
Warning: DSA_security_bits does not have a number assigned
...


>
> >
> >
> > --
> >
> > Principal Security Engineer
> >
> > Akamai Technologies, Cambridge, MA
> >
> > IM: [email protected]; Twitter: RichSalz
>
>


-- 
Born in Roswell... married an alien...
http://emptyhammock.com/
http://edjective.org/

Reply via email to