Skip to content

vtls: consistently use typedef names for OpenSSL structs#12439

Closed
davidben wants to merge 1 commit into
curl:masterfrom
davidben:ossl-typ
Closed

vtls: consistently use typedef names for OpenSSL structs#12439
davidben wants to merge 1 commit into
curl:masterfrom
davidben:ossl-typ

Conversation

@davidben

@davidben davidben commented Dec 1, 2023

Copy link
Copy Markdown
Contributor

The foo_st names don't appear in OpenSSL public API documentation. The FOO typedefs are more common. This header was already referencing SSL_CTX via <openssl/ssl.h>. There is a comment about avoiding <openssl/x509v3.h>, but OpenSSL actually declares all the typedefs in <openssl/ossl_typ.h>, which is already included by <openssl/ssl.h> (and every other OpenSSL header), so just use that. Though I've included it just to be explicit.

(I'm also fairly sure including <openssl/ssl.h> already triggers the Schannel conflicts anyway. The comment was probably just out of date.)

The foo_st names don't appear in OpenSSL public API documentation. The
FOO typedefs are more common. This header was already referencing
SSL_CTX via <openssl/ssl.h>. There is a comment about avoiding
<openssl/x509v3.h>, but OpenSSL actually declares all the typedefs in
<openssl/ossl_typ.h>, which is already included by <openssl/ssl.h> (and
every other OpenSSL header), so just use that. Though I've included it
just to be explicit.

(I'm also fairly sure including <openssl/ssl.h> already triggers the
Schannel conflicts anyway. The comment was probably just out of date.)
@github-actions github-actions Bot added the TLS label Dec 1, 2023
@bagder

bagder commented Dec 1, 2023

Copy link
Copy Markdown
Member

Thanks!

@bagder bagder closed this in 56791f3 Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants