+ /*
+ * We were called using legacy data, or an EVP_PKEY, but an EVP_PKEY
+ * isn't tied to a specific library context, so we fall back to the
+ * default library context.
+ * TODO(v3.0): an EVP_PKEY that doesn't originate from a leagacy key
+ * structure only has the pkeys[] cache, where the first element is
+ * considered the "origin". Investigate if that could be a suitable
+ * way to find a library context.
+ */
+ libctx = NULL;