QUIC APL: Implement SSL_poll backend
[openssl.git] / include / internal / ssl.h
1 /*
2  * Copyright 2023 The OpenSSL Project Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License 2.0 (the "License").  You may not use
5  * this file except in compliance with the License.  You can obtain a copy
6  * in the file LICENSE in the source distribution or at
7  * https://www.openssl.org/source/license.html
8  */
9
10 #include <openssl/ssl.h>
11
12 #ifndef OSSL_INTERNAL_SSL_H
13 # define OSSL_INTERNAL_SSL_H
14 # pragma once
15
16 typedef void (*ossl_msg_cb)(int write_p, int version, int content_type,
17                             const void *buf, size_t len, SSL *ssl, void *arg);
18
19 int ossl_ssl_get_error(const SSL *s, int i, int check_err);
20
21 /* Set if this is the QUIC handshake layer */
22 # define TLS1_FLAGS_QUIC                         0x2000
23
24 #endif