Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Feb 2022 22:56:42 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: e1465e2e1e06 - stable/13 - OpenSSL: Fix the same BIO_FLAGS macro definition
Message-ID:  <202202172256.21HMugRw087756@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=e1465e2e1e062324533a9a710783c9ab5c43dc6f

commit e1465e2e1e062324533a9a710783c9ab5c43dc6f
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-02-17 22:51:58 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-02-17 22:51:58 +0000

    OpenSSL: Fix the same BIO_FLAGS macro definition
    
    Also add comment to the public header to avoid
    making another conflict in future.
    
    Reviewed by:    jkim
    Obtained from:  OpenSSL commit 5d4975ecd88ac17d0749513a8fac9a7c7befd900
    Sponsored by:   Netflix
    Differential Revision:  https://reviews.freebsd.org/D34135
    
    (cherry picked from commit aa7208254996a66fb0b363bb696fe65d81335d81)
---
 crypto/openssl/include/internal/bio.h | 2 +-
 crypto/openssl/include/openssl/bio.h  | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/crypto/openssl/include/internal/bio.h b/crypto/openssl/include/internal/bio.h
index 521b5fa2198f..365d41dabbf4 100644
--- a/crypto/openssl/include/internal/bio.h
+++ b/crypto/openssl/include/internal/bio.h
@@ -46,9 +46,9 @@ int bread_conv(BIO *bio, char *data, size_t datal, size_t *read);
  * BIO_FLAGS_KTLS_TX_CTRL_MSG means we are about to send a ctrl message next.
  * BIO_FLAGS_KTLS_RX means we are using ktls with this BIO for receiving.
  */
-# define BIO_FLAGS_KTLS_TX          0x800
 # define BIO_FLAGS_KTLS_TX_CTRL_MSG 0x1000
 # define BIO_FLAGS_KTLS_RX          0x2000
+# define BIO_FLAGS_KTLS_TX          0x4000
 
 /* KTLS related controls and flags */
 # define BIO_set_ktls_flag(b, is_tx) \
diff --git a/crypto/openssl/include/openssl/bio.h b/crypto/openssl/include/openssl/bio.h
index fa50337aab04..66fc0d7c4a55 100644
--- a/crypto/openssl/include/openssl/bio.h
+++ b/crypto/openssl/include/openssl/bio.h
@@ -191,6 +191,8 @@ extern "C" {
 # define BIO_FLAGS_NONCLEAR_RST  0x400
 # define BIO_FLAGS_IN_EOF        0x800
 
+/* the BIO FLAGS values 0x1000 to 0x4000 are reserved for internal KTLS flags */
+
 typedef union bio_addr_st BIO_ADDR;
 typedef struct bio_addrinfo_st BIO_ADDRINFO;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202202172256.21HMugRw087756>