diff options
author | beck <> | 2021-10-23 15:30:44 +0000 |
---|---|---|
committer | beck <> | 2021-10-23 15:30:44 +0000 |
commit | 6b1657056640ac293989fdefcc3bff240446339e (patch) | |
tree | ae005e0b88cc9d4353aaae813c596ee3bccabf75 /src/lib/libssl/ssl.h | |
parent | 8a4205600da6d322fe39cf30885466efc776f5b8 (diff) | |
download | openbsd-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.h | 7 |
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); | |||
1289 | int SSL_read(SSL *ssl, void *buf, int num); | 1289 | int SSL_read(SSL *ssl, void *buf, int num); |
1290 | int SSL_peek(SSL *ssl, void *buf, int num); | 1290 | int SSL_peek(SSL *ssl, void *buf, int num); |
1291 | int SSL_write(SSL *ssl, const void *buf, int num); | 1291 | int SSL_write(SSL *ssl, const void *buf, int num); |
1292 | #if defined(LIBRESSL_NEW_API) | ||
1293 | int SSL_read_ex(SSL *ssl, void *buf, size_t num, size_t *bytes_read); | ||
1294 | int SSL_peek_ex(SSL *ssl, void *buf, size_t num, size_t *bytes_peeked); | ||
1295 | int 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) |
1294 | uint32_t SSL_CTX_get_max_early_data(const SSL_CTX *ctx); | 1299 | uint32_t SSL_CTX_get_max_early_data(const SSL_CTX *ctx); |