From c3d6b57cb761a0c10c1b46b78b65b1918dace8f7 Mon Sep 17 00:00:00 2001 From: Grzesiek11 Date: Thu, 11 Sep 2025 17:13:48 +0200 Subject: [PATCH] Fix cipher protocol ID type in docs The cipher protocol ID, the return type of SSL_CIPHER_get_protocol_id, is uint16_t and correctly described in docs to be 2 bytes, however the function signature on the same page incorrectly pointed to it being uint32_t, which is 4 bytes. CLA: trivial Reviewed-by: Matt Caswell Reviewed-by: Shane Lontis Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/28523) (cherry picked from commit 9bdf93776d741726895e6a42ffebd63366296e94) --- doc/man3/SSL_CIPHER_get_name.pod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/man3/SSL_CIPHER_get_name.pod b/doc/man3/SSL_CIPHER_get_name.pod index 09b7280bdd5..4a159a68b8a 100644 --- a/doc/man3/SSL_CIPHER_get_name.pod +++ b/doc/man3/SSL_CIPHER_get_name.pod @@ -37,7 +37,7 @@ SSL_CIPHER_get_protocol_id int SSL_CIPHER_is_aead(const SSL_CIPHER *c); const SSL_CIPHER *SSL_CIPHER_find(SSL *ssl, const unsigned char *ptr); uint32_t SSL_CIPHER_get_id(const SSL_CIPHER *c); - uint32_t SSL_CIPHER_get_protocol_id(const SSL_CIPHER *c); + uint16_t SSL_CIPHER_get_protocol_id(const SSL_CIPHER *c); =head1 DESCRIPTION -- 2.47.3