vaguerent/ext/vagrant_ssl/vagrant_ssl.h
Chris Roberts 415b006ebd Add helper for loading OpenSSL providers
On OpenSSL 3, engines have been deprecated being replaced by providers.
The Ruby openssl library supported loading specific engines, but there
is no replacement currently using providers. The winrm communicator
specifically relies on a MD4 which OpenSSL has marked as legacy and no
longer loads by default.

The extension included loads the legacy provider as well as the default
provider. The legacy provider includes MD4, thus allowing winrm to
function again.
2023-05-25 15:36:55 -07:00

15 lines
250 B
C

#if !defined(_VAGRANT_SSL_H_)
#define _VAGRANT_SSL_H_
#include <openssl/opensslv.h>
#if OPENSSL_VERSION_NUMBER >= (3 << 28)
#define _VAGRANT_SSL_PROVIDER_
#include <ruby.h>
#include <openssl/provider.h>
#endif
void Init_vagrant_ssl(void);
#endif