<div dir="ltr"><div dir="ltr">It's very definitely something active that OSX is doing. Here's an OSX error generated:<div><br></div><div><pre style="padding:5px 7px 3px;font-family:"Source Code Pro",monospace;font-size:0.825em;color:rgb(51,51,51);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;margin-top:5px;margin-bottom:5px;line-height:1.4;word-break:break-all;border:1px solid rgba(0,0,0,0.15);direction:ltr;overflow-x:auto;font-variant-ligatures:normal"><code style="padding:0px;font-family:"Source Code Pro",monospace;font-size:inherit;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;border:0px;white-space:inherit;unicode-bidi:embed;direction:ltr;overflow-x:scroll">System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called
Invalid dylib load. Clients should not load the unversioned libcrypto dylib as it does not have a stable ABI.</code></pre><pre style="padding:5px 7px 3px;font-family:"Source Code Pro",monospace;font-size:0.825em;color:rgb(51,51,51);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;margin-top:5px;margin-bottom:5px;line-height:1.4;word-break:break-all;border:1px solid rgba(0,0,0,0.15);direction:ltr;overflow-x:auto;font-variant-ligatures:normal"><code style="padding:0px;font-family:"Source Code Pro",monospace;font-size:inherit;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;border:0px;white-space:inherit;unicode-bidi:embed;direction:ltr;overflow-x:scroll"><br></code></pre><pre style="padding:5px 7px 3px;font-family:"Source Code Pro",monospace;font-size:0.825em;color:rgb(51,51,51);border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:4px;margin-top:5px;margin-bottom:5px;line-height:1.4;word-break:break-all;border:1px solid rgba(0,0,0,0.15);direction:ltr;overflow-x:auto;font-variant-ligatures:normal"><code style="padding:0px;font-family:"Source Code Pro",monospace;font-size:inherit;color:inherit;border-top-left-radius:3px;border-top-right-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;border:0px;white-space:inherit;unicode-bidi:embed;direction:ltr;overflow-x:scroll"><br></code></pre></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 19, 2021 at 5:29 PM Viktor Dukhovni <<a href="mailto:openssl-users@dukhovni.org">openssl-users@dukhovni.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">On Fri, Nov 19, 2021 at 04:31:26PM +1100, Grahame Grieve wrote:<br>
<br>
> I'm trying to get my application that uses openSSL 1.1 running on OSX. I've<br>
> installed them using homebrew, but I can't get past Apple's gates around<br>
> blocking use of openSSL.<br>
<br>
I don't think they're actively doing blocking here, though I could<br>
perhaps be wrong...<br>
<br>
> I've copied both dylibs into my app /Contents/MacOS folder, and signed<br>
> both of them, and I load them from the that location, but OSX still<br>
> blocks loading.<br>
<br>
More accurately I think, the libraries fail to load.<br>
<br>
> It actually blocks loading libssl.1.1.dylib, with a message about libcrypto<br>
> - presumably libssl has a non-version dependence on libcrypto that OSX is<br>
> blocking?<br>
<br>
The problem is likely that "libssl" not built to locate "libcrypto"<br>
relative to its own location, but rather expects to find it at a fixed<br>
location.  This would be some MacOS-specific instance of setting the<br>
runpath to $ORIGIN on ELF systems.<br>
<br>
With OpenSSL installed at a fixed location, OpenSSL is working just<br>
fine for me (and of course in HomeBrew, ...).<br>
<br>
So the issue most probably the inability of "libssl.dylib" to find<br>
"libcrypt.dylib", not because of some policy enforcement by Apple's<br>
evil overlords, but simply because the runtime linker does not<br>
expect to look in the location where you have libcrypt installed.<br>
<br>
The only thing that gives me some pause is Whether or not notarisation<br>
also complicates relocation, but presumably applications can ship<br>
shared libraries with the application code without running into<br>
major obstacles.<br>
<br>
Perhaps the presence of LibreSSL on MacOS is another complication,<br>
but that libssl and libcrypt should have different version suffixes,<br>
and should not get in the way, provided that MacOS has something<br>
akin to symbol versioning, to allow separate API versions of the<br>
same library to exist in a process side by side without getting<br>
in each other's way.<br>
<br>
If the symbol namespace in MacOS is "flat", then you may indeed<br>
run into trouble because of symbol conflicts between the real<br>
OpenSSL and the LibreSSL fork.<br>
<br>
Good luck.<br>
<br>
-- <br>
    Viktor.<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">-----<br><a href="http://www.healthintersections.com.au" target="_blank">http://www.healthintersections.com.au</a> / <a href="mailto:grahame@healthintersections.com.au" target="_blank">grahame@healthintersections.com.au</a> / +61 411 867 065<div><font face="arial, sans-serif"><span style="color:rgb(34,34,34)">Benson & Grieve:  </span><font color="#222222"> Principles of Health Interoperability (Health Information Technology Standards), 4th ed</font></font><span style="color:rgb(34,34,34);font-family:Calibri,sans-serif;font-size:14.6667px"> </span><font face="arial, sans-serif"><span style="color:rgb(34,34,34)">-  </span><a href="http://www.springer.com/978-3-030-56882-5" style="color:rgb(17,85,204)" target="_blank">http://www.springer.com/978-3-030-56882-5</a></font></div></div></div>