<html>
<head>
<meta http-equiv="content-type" content="text/html;
charset=windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">
<p><tt>"Unsafe for SAFESEH" is a completely different error:</tt></p>
<p><tt>It means that at least one file or library in your program
was either not compiled with the /SAFESEH switch or is an
assembler module without the magic incantation to tell the
linker it contains no Structured Exeption Handlers.</tt><tt>
In either case, it only occurs if you try to link with the
/SAFESEH linker switch despite the inclusion of such object
file(s).</tt></p>
On 27/06/2016 22:08, Tony Girgenti wrote:<br>
</div>
<blockquote class=" cite"
id="mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com"
cite="mid:002101d1d0af$a4d71bb0$ee855310$@lakesideos.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>#mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com p.MsoNormal,
#mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com li.MsoNormal,
#mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com div.MsoNormal { margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: "Calibri",sans-serif; }
#mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com a:link,
#mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com span.MsoHyperlink { color: rgb(5, 99, 193); text-decoration: underline; }
#mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com a:visited,
#mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com span.MsoHyperlinkFollowed { color: rgb(149, 79, 114); text-decoration: underline; }
#mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com p { margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman",serif; }
#mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com p.MsoListParagraph,
#mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com li.MsoListParagraph,
#mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com div.MsoListParagraph { margin: 0in 0in 0.0001pt 0.5in; font-size: 11pt; font-family: "Calibri",sans-serif; }
#mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com p.msonormal0,
#mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com li.msonormal0,
#mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com div.msonormal0 { margin-right: 0in; margin-left: 0in; font-size: 12pt; font-family: "Times New Roman",serif; }
#mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com span.codeChar { font-family: Consolas; color: black; }
#mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com p.code,
#mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com li.code,
#mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com div.code { margin: 0in 0in 0.0001pt; font-size: 10pt; font-family: Consolas; color: black; }
#mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com span.EmailStyle22 { font-family: "Arial",sans-serif; color: rgb(0, 112, 192); font-weight: normal; font-style: normal; }
#mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com span.EmailStyle23 { font-family: "Calibri",sans-serif; color: rgb(31, 73, 125); }
#mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com span.EmailStyle24 { font-family: "Arial",sans-serif; color: rgb(0, 112, 192); font-weight: normal; font-style: normal; }
#mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com .MsoChpDefault { font-size: 10pt; }
#mid_002101d1d0af_a4d71bb0_ee855310__lakesideos_com div.WordSection1 { }
</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#0070C0">Michael,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#0070C0"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#0070C0">Thank
you for your explanation of where my program is and what I
should do to continue using some kind of SSL.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#0070C0"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#0070C0">I
first need to figure out how this program uses SSL. Then I
can go ahead and try to use TLSv1.2.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#0070C0"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#0070C0">I
did try to use "SSLv23_client_method" and got the same
compile error “LNK2026 module unsafe for SAFESEH
image.”.<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#0070C0"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#0070C0"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> openssl-users [<a
class="moz-txt-link-freetext"
href="mailto:openssl-users-bounces@openssl.org"><a class="moz-txt-link-freetext" href="mailto:openssl-users-bounces@openssl.org">mailto:openssl-users-bounces@openssl.org</a></a>]
<b>On Behalf Of </b>Michael Wojcik<br>
<b>Sent:</b> Monday, June 27, 2016 3:50 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated"
href="mailto:openssl-users@openssl.org">openssl-users@openssl.org</a><br>
<b>Subject:</b> Re: [openssl-users] Getting error
'SSLv2_client_method': identifier not found<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">SSLv2 is no
longer supported, and neither are the SSLv2_*_method calls.
(And yes, this causes build problems when updating to newer
OpenSSL builds; and while that causes some pain, it was the
Right Thing to do.)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">As Rich said,
don't use SSLv2. Don't use SSLv3. If you can help it, don't
use anything older than TLSv1.2.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">The simplest
fix is to change "SSLv2_client_method" to
"SSLv23_client_method". (Inserting a single character; can't
get much simpler than that.) But since you really don't want
to talk to a server that only supports SSLv3, you might as
well use TLSv1_client_method instead, or even better
TLSv1_2_client_method. Since we have no idea what your
program does, or what it has to interoperate with, we can't
offer any more-specific advice.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">SSLv23_client_method
will use the old SSL-format ClientHello, but will (barring
more-restrictive options set using SSL_CTX_set_options or
similar) use later protocol versions for the actual
conversation if the server supports them.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">All that said,
by far the best approach is to learn how TLS and OpenSSL
work, so you can make an informed decision. TLS is
agonizingly complicated and a minefield of security holes,
and TLS applications maintained by people who don't have the
necessary specialized knowledge are very likely to be
severely insecure. For example, they may try to use SSLv2,
which has been broken for a couple of decades. (That is,
it's been broken for as long as it existed, but it's been
widely known to be broken since the mid-1990s.)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Feistyduck.com
has a free "OpenSSL cookbook" ebook which is a decent
introduction.<o:p></o:p></span><span
style="font-size:9.0pt;font-family:"Courier
New";color:black"><o:p></o:p></span><span
style="font-size:9.0pt;font-family:"Times New
Roman",serif;color:#1F497D"> </span><span
style="color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in
0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma",sans-serif">
openssl-users [<a moz-do-not-send="true"
href="mailto:openssl-users-bounces@openssl.org">mailto:openssl-users-bounces@openssl.org</a>]
<b>On Behalf Of </b>Tony Girgenti<br>
<b>Sent:</b> Monday, June 27, 2016 13:09<br>
<b>To:</b> <a moz-do-not-send="true"
href="mailto:openssl-users@openssl.org">openssl-users@openssl.org</a><br>
<b>Subject:</b> [openssl-users] Getting error
'SSLv2_client_method': identifier not found<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#0070C0">Hello,</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#0070C0"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#0070C0">I
migrated a Visual Studio 6.0 C++ program to Visual Studio
2015 C++. The program uses OpenSSL. I have downloaded
and installed OpenSSL-Win32 version 1.0.2g.</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#0070C0"> </span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#0070C0">I’m
trying to figure what I need to do to fix the error I am
getting on this line: m_pSSLctx =
SSL_CTX_new(SSLv2_client_method());</span><o:p></o:p></p>
<p class="MsoNormal"><span
style="font-size:12.0pt;font-family:"Arial",sans-serif;color:#0070C0"> </span><span
style="color:#1F497D"><o:p></o:p></span></p>
</div>
</div>
<br>
</blockquote>
<br>
<p><br>
</p>
<br>
<pre class="moz-signature" cols="72">Enjoy
Jakob
--
Jakob Bohm, CIO, Partner, WiseMo A/S. <a class="moz-txt-link-freetext" href="https://www.wisemo.com">https://www.wisemo.com</a>
Transformervej 29, 2860 Søborg, Denmark. Direct +45 31 13 16 10
This public discussion message is non-binding and may contain errors.
WiseMo - Remote Service Management for PCs, Phones and Embedded </pre>
</body>
</html>