File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed
src/native/libs/System.Security.Cryptography.Native Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -116,8 +116,21 @@ static void OpenLibraryOnce(void)
116
116
DlOpen (MAKELIB ("10" ));
117
117
}
118
118
119
- // FreeBSD uses a different suffix numbering convention.
120
- // Current supported FreeBSD releases should use the order .11 -> .111
119
+ #ifdef __FreeBSD__
120
+ // The ports version of OpenSSL is used over base where possible
121
+ if (libssl == NULL )
122
+ {
123
+ // OpenSSL 3.0 from ports
124
+ DlOpen (MAKELIB ("12" ));
125
+ }
126
+
127
+ if (libssl == NULL )
128
+ {
129
+ // OpenSSL 3.0 from base as found in FreeBSD 14.0
130
+ DlOpen (MAKELIB ("30" ));
131
+ }
132
+
133
+ // Fallbacks for OpenSSL 1.1.x
121
134
if (libssl == NULL )
122
135
{
123
136
DlOpen (MAKELIB ("11" ));
@@ -127,6 +140,8 @@ static void OpenLibraryOnce(void)
127
140
{
128
141
DlOpen (MAKELIB ("111" ));
129
142
}
143
+ #endif
144
+
130
145
}
131
146
132
147
static pthread_once_t g_openLibrary = PTHREAD_ONCE_INIT ;
You can’t perform that action at this time.
0 commit comments