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