
27 Feb
2023
27 Feb
'23
11:27 a.m.
Hi, I'm writing a C extension which interfaces with ruby-openssl objects, and the openssl API. In the process, I'm needing access to some functions which ruby-openssl declares in the header file: https://github.com/ruby/openssl/blob/ea0a112a0c6a0498629e778af7991c9b4e34956... (example: ossl_raise). However, it's not clear to me how should I declare the #include in order to access it, for a header file coming from stdlib. Seems that ruby itself correctly places its header files (examples: ruby.h, or ruby/io.h), but I don't see the openssl gem ones. The beginning of my C file looks like: ```C #include <ruby.h> #include <openssl/evp.h> #include <pathto/openssl/ossl.h> // how to do this? ``` Thx, Tiago