DECODER: Adjust the library context of keys in our decoders
[openssl.git] / crypto / dsa / dsa_lib.c
index 4a9f572edd21a42cd0aa58a3a02f44db3d4fb1f1..df9dd73dfdeef8ba62b11b73ae0e430e86f23802 100644 (file)
@@ -247,6 +247,11 @@ int DSA_up_ref(DSA *r)
     return ((i > 1) ? 1 : 0);
 }
 
+void ossl_dsa_set0_libctx(DSA *d, OSSL_LIB_CTX *libctx)
+{
+    d->libctx = libctx;
+}
+
 void DSA_get0_pqg(const DSA *d,
                   const BIGNUM **p, const BIGNUM **q, const BIGNUM **g)
 {