On Fri, Oct 08, 1999, Ralf S. Engelschall wrote:

> [..]
> > That said, if you blindly type in the password, the server
> > starts no problem, so it's easy to make it workable,
> > if a little ugly.
> > 
> > If I manage to produce a shippable patch, I'll post it.
> 
> Hmmm... I'm not a Win32 guy and I've not tested it, but it would propose the
> solution as following (patch against 2.4.4 plus/minus a few lines offset
> because I've deleted other changes from 2.4.5):

So what? Its already over one week and I've still not feedback from any
Win32-guy that this patch works or not works. I'm still waiting for some
feedback from someone which tries this out on Win32 with an encrypted private
key and gives feedback whether the pass phrase dialog now works or not. The
patch still is:

Index: ssl_engine_pphrase.c
===================================================================
RCS file: /e/modssl/cvs/mod_ssl/pkg.apache/src/modules/ssl/ssl_engine_pphrase.c,v
retrieving revision 1.36
diff -u -r1.36 ssl_engine_pphrase.c
--- ssl_engine_pphrase.c        1999/08/03 09:27:41     1.36
+++ ssl_engine_pphrase.c        1999/10/08 14:09:33
@@ -433,6 +436,9 @@
     if (sc->nPassPhraseDialogType == SSL_PPTYPE_BUILTIN) {
         char *prompt;
         int i;
+#ifdef WIN32
+        FILE *con;
+#endif
 
         ssl_log(s, SSL_LOG_INFO,
                 "Init: Requesting pass phrase via builtin terminal dialog");
@@ -443,11 +449,16 @@
          * to the general error logfile.
          */
         dup2(STDERR_FILENO, STDERR_FILENO_STORE);
+#ifdef WIN32
+        if ((con = fopen("con", "w")) != NULL)
+            dup2(fileno(con), STDERR_FILENO);
+#else
         dup2(STDOUT_FILENO, STDERR_FILENO);
+#endif
 
         /*
          * The first time display a header to inform the user about what
-         * program he actually speaks to, which modules is responsible for
+         * program he actually speaks to, which module is responsible for
          * this terminal dialog and why to the hell he has to enter
          * something...
          */
@@ -485,6 +496,9 @@
          * Restore STDERR to Apache error logfile
          */
         dup2(STDERR_FILENO_STORE, STDERR_FILENO);
+#ifdef WIN32
+        fclose(con);
+#endif
     }
 
     /*
                                       Ralf S. Engelschall
                                       [EMAIL PROTECTED]
                                       www.engelschall.com
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl)                   www.modssl.org
User Support Mailing List                      [EMAIL PROTECTED]
Automated List Manager                            [EMAIL PROTECTED]

Reply via email to