Need Replacement for Deprecated function.
Viktor Dukhovni
openssl-users at dukhovni.org
Sun Dec 5 22:06:19 UTC 2021
On Sun, Dec 05, 2021 at 09:59:34PM +0000, Jeremy Harris wrote:
> >> The reference example in
> >> https://www.openssl.org/docs/manmaster/man3/SSL_CTX_set_tlsext_ticket_key_cb.html
> >>
> >> uses OSSL_MAC_PARAM_KEY and OSSL_MAC_PARAM_DIGEST.
> >>
> >> So does the code in master as of 6d770c5ba3. But I don't see definitions
> >> for them
>
> So... how does that code compile?
It works fine for me:
https://github.com/vdukhovni/postfix/blob/master/postfix/src/tls/tls.h#L78
https://github.com/vdukhovni/postfix/blob/master/postfix/src/tls/tls.h#L87-L94
#ifndef OPENSSL_VERSION_PREREQ
#define OPENSSL_VERSION_PREREQ(m,n) 0
#endif
https://github.com/vdukhovni/postfix/blob/master/postfix/src/tls/tls_server.c#L155
#if OPENSSL_VERSION_PREREQ(3,0)
#include <openssl/core_names.h> /* EVP_MAC parameters */
#endif
https://github.com/vdukhovni/postfix/blob/master/postfix/src/tls/tls_server.c#L302-L339
> Where is that macro defined?
<openssl/core_names.h>
--
Viktor.
More information about the openssl-users
mailing list