Write a memory leak test for X.509 extensions (#3451)

* Bind a pair of mem functions.

* do the conditional correctly

* move to the right section

* Get the code basically working

* flake8

* say the correct incantation

* WOrkaround for hilarity

* Revert "WOrkaround for hilarity"

This reverts commit 37b9f3b4ed4063eef5add3bb5d5dd592a007d439.

* Swap out these functions for the originals

* nonsense for windows

* try writing this all out for windows

* Debugging utility

* Avoid this mess, don't dlopen anything

* Throw away this FFI entirely

* first pass at some x.509 memleak tests

* TODO and fix

* Get the tests to passing

* String formatting is nasty

* some fixes because rebasing

* fix for the name API, always use the OpenSSL backend
1 file changed