Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f831bb6

Browse files
committedJun 3, 2025
ossl.h: include <openssl/provider.h> in ossl.h
Move the #include from ossl_provider.c to ossl.h. As OpenSSL 3 provider functions will be used in multiple source files, having it in the common header file is convenient.
1 parent 73b866d commit f831bb6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed
 

‎ext/openssl/ossl.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171

7272
#if OSSL_OPENSSL_PREREQ(3, 0, 0)
7373
# define OSSL_USE_PROVIDER
74+
# include <openssl/provider.h>
7475
#endif
7576

7677
/*

‎ext/openssl/ossl_provider.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
#include "ossl.h"
66

77
#ifdef OSSL_USE_PROVIDER
8-
# include <openssl/provider.h>
9-
108
#define NewProvider(klass) \
119
TypedData_Wrap_Struct((klass), &ossl_provider_type, 0)
1210
#define SetProvider(obj, provider) do { \

0 commit comments

Comments
 (0)