summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl.h
diff options
context:
space:
mode:
authorbeck <>2021-10-23 15:30:44 +0000
committerbeck <>2021-10-23 15:30:44 +0000
commit6b1657056640ac293989fdefcc3bff240446339e (patch)
treeae005e0b88cc9d4353aaae813c596ee3bccabf75 /src/lib/libssl/ssl.h
parent8a4205600da6d322fe39cf30885466efc776f5b8 (diff)
downloadopenbsd-6b1657056640ac293989fdefcc3bff240446339e.tar.gz
openbsd-6b1657056640ac293989fdefcc3bff240446339e.tar.bz2
openbsd-6b1657056640ac293989fdefcc3bff240446339e.zip
Add new OpenSSL api SSL_write_ex, SSL_read_ex and SSL_peek_ex
As these still meet the usual expectations for special, I will leave it up to ingo to decide to either document separately or in one man page like OpenSSL did. Will also need Symbols.list additions by tb@ when he starts the rapture ok tb@ jsing@
Diffstat (limited to 'src/lib/libssl/ssl.h')
-rw-r--r--src/lib/libssl/ssl.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h
index 09d68beb0b..1a0403c72b 100644
--- a/src/lib/libssl/ssl.h
+++ b/src/lib/libssl/ssl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl.h,v 1.211 2021/10/23 11:41:51 beck Exp $ */ 1/* $OpenBSD: ssl.h,v 1.212 2021/10/23 15:30:44 beck Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -1289,6 +1289,11 @@ int SSL_is_server(const SSL *s);
1289int SSL_read(SSL *ssl, void *buf, int num); 1289int SSL_read(SSL *ssl, void *buf, int num);
1290int SSL_peek(SSL *ssl, void *buf, int num); 1290int SSL_peek(SSL *ssl, void *buf, int num);
1291int SSL_write(SSL *ssl, const void *buf, int num); 1291int SSL_write(SSL *ssl, const void *buf, int num);
1292#if defined(LIBRESSL_NEW_API)
1293int SSL_read_ex(SSL *ssl, void *buf, size_t num, size_t *bytes_read);
1294int SSL_peek_ex(SSL *ssl, void *buf, size_t num, size_t *bytes_peeked);
1295int SSL_write_ex(SSL *ssl, const void *buf, size_t num, size_t *bytes_written);
1296#endif
1292 1297
1293#if defined(LIBRESSL_HAS_TLS1_3) || defined(LIBRESSL_INTERNAL) 1298#if defined(LIBRESSL_HAS_TLS1_3) || defined(LIBRESSL_INTERNAL)
1294uint32_t SSL_CTX_get_max_early_data(const SSL_CTX *ctx); 1299uint32_t SSL_CTX_get_max_early_data(const SSL_CTX *ctx);