<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><!--[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" style="margin-bottom:12.0pt">Hi Jay, <br>
<br>
Thanks for your reply. <br>
<br>
Our requirement is as follows <br>
<br>
1. only using openssl for authenticaion and a key wrap algorithm.  No encryption is needed.
<br>
2. For MAC alogorithm, we need to use M_SHA1 / M_SHA256 <br>
For key wrap algo, we need to use AES 128 or AES 256 algo. <br>
<br>
Following are the steps we followed <br>
<br>
1.  As we have eCOS platform, we just integrated the openssl files (1.0.1g) and added to them to our  makefile to build them (only .c and .h files)
<br>
2  In our applicatoin we call the openssl functions to above two functions from the openssl.
<br>
<br>
     key wrap algorithm to decrupt the session key which is received from the master.  AES_set_decrypt_key, AES_unwrap_key
<br>
<br>
     MAC algo to generate a mac value for a message (HMAC(), EVP_sha1(), EVP_sha256())
<br>
<br>
3. But during the linking stage we are getting the errors as ""undefined reference to a function "
<br>
   Example": <br>
    openssl/openssl101g/crypto/engine/tb_rand.o(.text.ENGINE_get_default_RAND+0x8): In function `ENGINE_get_default_RAND': undefined reference to `engine_table_select'
<br>
<br>
4. Not able to figure out if there is any common setting file (to configure openssl ) so that we can enable /disable some features and services.
<br>
<br>
We tried doing the method as your had suggested.  But it seems that there is not much effect for the declaration of eCos
<br>
<br>
Request to please let us know what mistake we are making, or we have missed out any configuration.
<br>
<br>
Regards, <br>
<br>
SSK <o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="1" width="100%" noshade="" style="color:#CCCCCC" align="center">
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> Jay Foster-2 [via OpenSSL] [mailto:ml-node+<a href="/user/SendEmail.jtp?type=node&node=67926&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>]
<br>
<b>Sent:</b> 17 August 2016 07:53 PM<br>
<b>To:</b> Sunil Kerur <<a href="/user/SendEmail.jtp?type=node&node=67926&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>><br>
<b>Subject:</b> Re: Using Openssl for eCOS platform<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">I have used the following snippet (along with some others) in the e_os.h header file:<o:p></o:p></p>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border:none;border-left:solid #CCCCCC 1.5pt;padding:0cm 0cm 0cm 12.0pt;margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><tt><span style="font-size:10.0pt"># if defined(__ECOS)</span></tt><br>
<tt><span style="font-size:10.0pt">#  define __INITIAL_POINTER_SIZE 0</span></tt><br>
<tt><span style="font-size:10.0pt">#  define GETPID_IS_MEANINGLESS</span></tt><br>
<tt><span style="font-size:10.0pt">#  define NO_CHMOD</span></tt><br>
<tt><span style="font-size:10.0pt">#  define NO_SYSLOG</span></tt><br>
<tt><span style="font-size:10.0pt">#  define HAVE_LONG_LONG 1</span></tt><br>
<tt><span style="font-size:10.0pt">#  define HAVE_LONG_DOUBLE 1</span></tt><br>
<tt><span style="font-size:10.0pt">#  define OPENSSL_THREADS</span></tt><br>
<tt><span style="font-size:10.0pt">#  undef DEVRANDOM_EGD</span></tt><br>
<tt><span style="font-size:10.0pt"># endif</span></tt><o:p></o:p></p>
</blockquote>
<p class="MsoNormal">The GETPID_IS_MEANINGLESS might work for you.<br>
<br>
Jay<br>
<br>
On 8/17/2016 2:55 AM, Devadas kk wrote:<o:p></o:p></p>
</div>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border:none;border-left:solid #CCCCCC 1.5pt;padding:0cm 0cm 0cm 12.0pt;margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Hi,<o:p></o:p></p>
</div>
<p class="MsoNormal"> Best way to do is to modify e_os.h header file.<o:p></o:p></p>
</div>
<p class="MsoNormal"> This file has to do with OS specific changes.<br>
 <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> Something like<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> #ifdef ECOS<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">  #define getpid ecos_task_id_fn<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">#endif<br>
<br>
 ecos_task_id_fn is a placed holder, find out actual function name to get process ID.<br>
 GetThreadID is the function in NETWARE.<o:p></o:p></p>
</div>
<p class="MsoNormal">Regards,<o:p></o:p></p>
</div>
<p class="MsoNormal">Devadas<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Wed, Aug 17, 2016 at 10:28 AM, ssk1506 <<a href="/user/SendEmail.jtp?type=node&node=67903&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> wrote:<o:p></o:p></p>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">Hi, I am using openssl on a n eCOS platform. I need only the secure authentication (no encryption needed). I integrated the openssl source code with my application. When I trying to build, I am getting some linking errors. :undefined reference
 to 'getpid' :undefined reference to 'RANDpoll' I am trying to find how to enable or disable the macros (switches to enable or disable a feature/service). But it seems that openssl.conf is generated from some utitlity program and from a file
<a href="http://opensslconf.h.in" target="_blank" rel="nofollow" link="external">opensslconf.h.in</a> Pl. anyone suggest how to configure. Regards, SSK
<o:p></o:p></p>
<div class="MsoNormal">
<hr size="2" width="300" style="width:225.0pt" align="left">
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">View this message in context: <a href="http://openssl.6102.n7.nabble.com/Using-Openssl-for-eCOS-platform-tp67892.html" target="_blank" rel="nofollow" link="external">
Using Openssl for eCOS platform</a><br>
Sent from the <a href="http://openssl.6102.n7.nabble.com/OpenSSL-User-f3.html" target="_blank" rel="nofollow" link="external">
OpenSSL - User mailing list archive</a> at Nabble.com.<br>
<br>
--<br>
openssl-users mailing list<br>
To unsubscribe: <a href="https://mta.openssl.org/mailman/listinfo/openssl-users" target="_blank" rel="nofollow" link="external">
https://mta.openssl.org/mailman/listinfo/openssl-users</a><o:p></o:p></p>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
</blockquote>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
-- <br>
openssl-users mailing list <br>
To unsubscribe: <a href="https://mta.openssl.org/mailman/listinfo/openssl-users" target="_top" rel="nofollow" link="external">
https://mta.openssl.org/mailman/listinfo/openssl-users</a><br>
<br>
<o:p></o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="1" width="100%" noshade="" style="color:#CCCCCC" align="center">
</div>
<div>
<div>
<p class="MsoNormal"><b><span style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#444444">If you reply to this email, your message will be added to the discussion below:<o:p></o:p></span></b></p>
</div>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Tahoma",sans-serif;color:#444444"><a href="http://openssl.6102.n7.nabble.com/Using-Openssl-for-eCOS-platform-tp67892p67903.html" target="_top" rel="nofollow" link="external">http://openssl.6102.n7.nabble.com/Using-Openssl-for-eCOS-platform-tp67892p67903.html</a>
<o:p></o:p></span></p>
</div>
<div style="margin-top:4.8pt">
<p class="MsoNormal" style="line-height:18.0pt"><span style="font-size:8.5pt;font-family:"Tahoma",sans-serif;color:#666666">To start a new topic under OpenSSL - User, email
<a href="/user/SendEmail.jtp?type=node&node=67926&i=2" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br>
To unsubscribe from Using Openssl for eCOS platform, <a href="" target="_top" rel="nofollow" link="external">
click here</a>.<br>
<a href="http://openssl.6102.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" target="_top" rel="nofollow" link="external"><span style="font-size:7.0pt;font-family:"Times New Roman",serif">NAML</span></a>
<o:p></o:p></span></p>
</div>
</div>




        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://openssl.6102.n7.nabble.com/Using-Openssl-for-eCOS-platform-tp67892p67926.html">RE: Using Openssl for eCOS platform</a><br/>
Sent from the <a href="http://openssl.6102.n7.nabble.com/OpenSSL-User-f3.html">OpenSSL - User mailing list archive</a> at Nabble.com.<br/>