diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/internal/quic_types.h | 4 | ||||
-rw-r--r-- | include/internal/ssl.h | 19 |
2 files changed, 20 insertions, 3 deletions
diff --git a/include/internal/quic_types.h b/include/internal/quic_types.h index 2fa36d46e9..830c755779 100644 --- a/include/internal/quic_types.h +++ b/include/internal/quic_types.h @@ -11,6 +11,7 @@ # define OSSL_QUIC_TYPES_H # include <openssl/ssl.h> +# include <internal/ssl.h> # include <assert.h> # include <string.h> @@ -95,9 +96,6 @@ static ossl_unused ossl_inline int ossl_quic_conn_id_eq(const QUIC_CONN_ID *a, # define QUIC_STATELESS_RESET_TOKEN_LEN 16 -typedef void (*ossl_msg_cb)(int write_p, int version, int content_type, - const void *buf, size_t len, SSL *ssl, void *arg); - # endif #endif diff --git a/include/internal/ssl.h b/include/internal/ssl.h new file mode 100644 index 0000000000..3bf9bf9e34 --- /dev/null +++ b/include/internal/ssl.h @@ -0,0 +1,19 @@ +/* + * Copyright 2023 The OpenSSL Project Authors. All Rights Reserved. + * + * Licensed under the Apache License 2.0 (the "License"). You may not use + * this file except in compliance with the License. You can obtain a copy + * in the file LICENSE in the source distribution or at + * https://www.openssl.org/source/license.html + */ + +#include <openssl/ssl.h> + +#ifndef OSSL_INTERNAL_SSL_H +# define OSSL_INTERNAL_SSL_H +# pragma once + +typedef void (*ossl_msg_cb)(int write_p, int version, int content_type, + const void *buf, size_t len, SSL *ssl, void *arg); + +#endif |