Index: utils/ofhttp/OFHTTP.m ================================================================== --- utils/ofhttp/OFHTTP.m +++ utils/ofhttp/OFHTTP.m @@ -26,10 +26,13 @@ #import "OFHTTPClient.h" #import "OFHTTPRequest.h" #import "OFHTTPResponse.h" #import "OFLocale.h" #import "OFOptionsParser.h" +#ifdef OF_HAVE_PLUGINS +# import "OFPlugin.h" +#endif #import "OFSandbox.h" #import "OFStdIOStream.h" #import "OFSystemInfo.h" #import "OFTCPSocket.h" #import "OFTLSSocket.h" @@ -272,10 +275,21 @@ objc_autoreleasePoolPop(pool); return [fileName autorelease]; } @implementation OFHTTP +#ifdef OF_HAVE_PLUGINS ++ (void)initialize +{ + if (self != [OFHTTP class]) + return; + + /* Opportunistically try loading ObjOpenSSL and ignore any errors. */ + of_dlopen(@"objopenssl", OF_RTLD_LAZY); +} +#endif + - (instancetype)init { self = [super init]; @try {