]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/ui/ui_openssl.c
Make default_method mostly compile-time
[thirdparty/openssl.git] / crypto / ui / ui_openssl.c
index 400b0562f41abe2cd263d7dae1c49c84c594dce3..42c932656c3c57368c3871dda5a7fd64040e3d77 100644 (file)
@@ -202,6 +202,18 @@ static UI_METHOD ui_openssl = {
     NULL
 };
 
+static const UI_METHOD *default_UI_meth = &ui_openssl;
+
+void UI_set_default_method(const UI_METHOD *meth)
+{
+    default_UI_meth = meth;
+}
+
+const UI_METHOD *UI_get_default_method(void)
+{
+    return default_UI_meth;
+}
+
 /* The method with all the built-in thingies */
 UI_METHOD *UI_OpenSSL(void)
 {