2 * Copyright 2022 The OpenSSL Project Authors. All Rights Reserved.
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
10 #include <openssl/macros.h>
11 #include <openssl/objects.h>
12 #include "quic_local.h"
14 int ossl_quic_new(SSL *s)
16 return s->method->ssl_clear(s);
19 void ossl_quic_free(SSL *s)
24 int ossl_quic_clear(SSL *s)
29 int ossl_quic_accept(SSL *s)
34 int ossl_quic_connect(SSL *s)
39 int ossl_quic_read(SSL *s, void *buf, size_t len, size_t *readbytes)
41 BIO *rbio = SSL_get_rbio(s);
46 return BIO_read_ex(rbio, buf, len, readbytes);
49 int ossl_quic_peek(SSL *s, void *buf, size_t len, size_t *readbytes)
54 int ossl_quic_write(SSL *s, const void *buf, size_t len, size_t *written)
56 BIO *wbio = SSL_get_wbio(s);
61 return BIO_write_ex(wbio, buf, len, written);
64 int ossl_quic_shutdown(SSL *s)
69 long ossl_quic_ctrl(SSL *s, int cmd, long larg, void *parg)
74 long ossl_quic_ctx_ctrl(SSL_CTX *s, int cmd, long larg, void *parg)
79 long ossl_quic_callback_ctrl(SSL *s, int cmd, void (*fp) (void))
84 long ossl_quic_ctx_callback_ctrl(SSL_CTX *s, int cmd, void (*fp) (void))
89 size_t ossl_quic_pending(const SSL *s)
94 long ossl_quic_default_timeout(void)
99 int ossl_quic_num_ciphers(void)
104 const SSL_CIPHER *ossl_quic_get_cipher(unsigned int u)
106 static const SSL_CIPHER ciph = { 0 };
111 int ossl_quic_renegotiate_check(SSL *ssl, int initok)