News for hackers. Stuff that matters.
Re:Obvious Things C Should Do by lzsiga on Sunday January 12, 2025 @01:47AM (#42671751)
The proper way is not exporting implementation details at all, instead define opaque types in your header files like this: `typedef struct ssl_st SSL;`. This comes from OpenSSL, it means users can use `SSL *` pointers, but they don't know what those pointers point to.

Of course you can also have internal header-files within your own project, which you don't share with the end-users of your product.

There are no comments on this comment yet.