This type is defined to hold the OS-specific structure passed to
BIO_set_ktls.
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/12111)
*/
# define TLS_CIPHER_AES_GCM_128_REC_SEQ_SIZE 8
+typedef struct tls_enable ktls_crypto_info_t;
+
/*
* FreeBSD does not require any additional steps to enable KTLS before
* setting keys.
};
size_t tls_crypto_info_len;
};
+
+typedef struct tls_crypto_info_all ktls_crypto_info_t;
+
/*
* When successful, this socket option doesn't change the behaviour of the
* TCP socket, except changing the TCP setsockopt handler to enable the
size_t n, i, j, k, cl;
int reuse_dd = 0;
#ifndef OPENSSL_NO_KTLS
-# ifdef __FreeBSD__
- struct tls_enable crypto_info;
-# else
- struct tls_crypto_info_all crypto_info;
+ ktls_crypto_info_t crypto_info;
+# ifndef __FreeBSD__
unsigned char *rec_seq;
void *rl_sequence;
# ifndef OPENSSL_NO_KTLS_RX
const EVP_CIPHER *cipher = NULL;
#if !defined(OPENSSL_NO_KTLS) && defined(OPENSSL_KTLS_TLS13)
# ifndef __FreeBSD__
- struct tls_crypto_info_all crypto_info;
+ ktls_crypto_info_t crypto_info;
BIO *bio;
# endif
#endif