Re: HMAC is deprecated in 3.0 getting error 'HMAC' was not declared in this scope

2020-11-26 Thread Matt Caswell
On 26/11/2020 17:32, Narayana, Sunil Kumar wrote: > Error2 : error: invalid use of incomplete type 'SSL' {aka 'struct > ssl_st'} ssl->d1->mtu = MAX_SEND_PKT_SIZE; Use SSL_set_mtu(ssl, MAX_SEND_PKT_SIZE) instead. Matt

Re: HMAC is deprecated in 3.0 getting error 'HMAC' was not declared in this scope

2020-11-26 Thread Dr Paul Dale
There is no direct replacement for the MHAC call at this point, EVP_MAC needs to be used. I’d suggest reading the EVP_MAC(3) man page. There is an example down the bottom. Does SSL_set_mtu() do what you require? Pauli -- Dr Paul Dale | Distinguished Architect | Cryptographic Foundations Ph

HMAC is deprecated in 3.0 getting error 'HMAC' was not declared in this scope

2020-11-26 Thread Narayana, Sunil Kumar
Hi, We are trying to upgrade our application from openssl usage of 1.0.2 to openssl 3.0, during which we observe following errors. Need help to identify the alternatives. Error1 : error: 'HMAC' was not declared in this scope HMAC(EVP_sha1(), (const void*) cookie_secret, COOKIE_S