Home | History | Annotate | Line # | Download | only in internal
      1 /*
      2  * Copyright 2023-2025 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 /*
     22  * Test to see if an SSL_CTX is using a QUIC method
     23  * This is public in the master branch
     24  * but made private for current stable branches
     25  */
     26 int SSL_CTX_is_quic(const SSL_CTX *c);
     27 
     28 /* Set if this is the QUIC handshake layer */
     29 #define TLS1_FLAGS_QUIC 0x2000
     30 /* Set if this is our QUIC handshake layer */
     31 #define TLS1_FLAGS_QUIC_INTERNAL 0x4000
     32 
     33 #endif
     34