<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,153)">Hi Jeff,</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,153)"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,153)">I checked in the git repo (tags/OpenSSL_1_0_2g), opnesslconf.h does not have OPENSSL_NO_HEARTBEATS the above definition in 1.0.2g.</div><div class="gmail_default" style="font-family:verdana,sans-serif;color:rgb(0,0,153)">So I think its enabled.</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Regards,<br>Keshava.</div></div></div>
<br><div class="gmail_quote">On Fri, Dec 22, 2017 at 12:20 PM, Jeffrey Walton <span dir="ltr"><<a href="mailto:noloader@gmail.com" target="_blank">noloader@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Dec 22, 2017 at 1:32 AM, Keshava Krishna Bhat K<br>
<<a href="mailto:keshavkrishna88@gmail.com">keshavkrishna88@gmail.com</a>> wrote:<br>
> Ok, I got to know that<br>
>  openssl version -a gives out the flags used while building openssl.<br>
> so the output of this was<br>
><br>
> OpenSSL 1.0.2g  1 Mar 2016<br>
> built on: reproducible build, date unspecified<br>
> platform: debian-amd64<br>
> options:  bn(64,64) rc4(16x,int) des(idx,cisc,16,int) blowfish(idx)<br>
> compiler: cc -I. -I.. -I../include  -fPIC -DOPENSSL_PIC -DOPENSSL_THREADS<br>
> -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64 -DL_ENDIAN -g -O2<br>
> -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time<br>
> -D_FORTIFY_SOURCE=2 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wa,--noexecstack<br>
> -Wall -DMD32_REG_T=int -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT<br>
> -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM<br>
> -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM<br>
> -DGHASH_ASM -DECP_NISTZ256_ASM<br>
> OPENSSLDIR: "/usr/lib/ssl"<br>
><br>
> Since the putput above does not have OPENSSL_NO_HEARTBEATS, I assume<br>
> heartbeats are not disabled in the build.<br>
> So I am back to square one :( -> how do I make the server respond to a TLS<br>
> heartbeat request ? Do I have to read the packet and write it back ?<br>
<br>
</span>You should also check <openssl/opensslconf.h> for OPENSSL_NO_HEARTBEATS.<br>
<br>
$ cd openssl<br>
$ grep -B 1 -A 1 HEART include/openssl/opensslconf.h<br>
#endif<br>
#ifndef OPENSSL_NO_HEARTBEATS<br>
# define OPENSSL_NO_HEARTBEATS<br>
#endif<br>
<br>
Jeff<br>
<span class="HOEnZb"><font color="#888888">--<br>
openssl-users mailing list<br>
To unsubscribe: <a href="https://mta.openssl.org/mailman/listinfo/openssl-users" rel="noreferrer" target="_blank">https://mta.openssl.org/<wbr>mailman/listinfo/openssl-users</a><br>
</font></span></blockquote></div><br></div>