<div dir="ltr"><div class="gmail_default" style="font-size:small"> I viewed the file and the definition exists.</div><div class="gmail_default" style="font-size:small">I also checked that I'm picking the correct version.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">My problem is this line : EVP_EncryptInit_ex(&_ctx, EVP_aes_128_gcm(), NULL, NULL, NULL);</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I also tried to change the code to this two lines : </div><div class="gmail_default">EVP_CIPHER *EVP evp_gcm = EVP_aes_128_gcm();<br></div><div class="gmail_default">EVP_EncryptInit_ex(&_ctx, evp_gcm, NULL, NULL, NULL);<br></div><div class="gmail_default"><br></div><div class="gmail_default">After the change I got this error : expected initializer before ‘evp_gcm’</div><div class="gmail_default"><br></div><div class="gmail_default">What am I doing wrong?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 3 May 2017 at 12:07, Matt Caswell <span dir="ltr"><<a href="mailto:matt@openssl.org" target="_blank">matt@openssl.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 03/05/17 09:43, Lior Koskas wrote:<br>
> Hi,<br>
><br>
> I'm using EVP_aes_128_gcm and have problem with compiling it with<br>
> OpenSSL 1.1.0 (earlier versions are compiling).<br>
> Although I included <openssl/evp.h> I got this error : error:<br>
> ‘EVP_aes_128_gcm’ was not declared in this scope.<br>
><br>
> I'm using CentOS 7.3.<br>
><br>
> Which file I need to include in order to compile EVP_aes_128_gcm ?<br>
<br>
</span>It's still declared in evp.h:<br>
<br>
const EVP_CIPHER *EVP_aes_128_gcm(void);<br>
<br>
Perhaps you are not picking up the version of evp.h that you think you are?<br>
<span class="HOEnZb"><font color="#888888"><br>
Matt<br>
<br>
--<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><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Lior           Koskas</div><div>Software Engineer</div></div></div></div></div></div>
</div>