RAND function using OpenSSL 0.9.7 (A Solution)
RAND function using OpenSSL 0.9.7 (A Solution)
am 15.07.2002 20:54:58 von Frederic DONNAT
This is a multi-part message in MIME format.
------_=_NextPart_001_01C22C31.1DFE690D
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Hi All,
I change a function call and it works fine now. I do not know if this is =
the real way to solve my problem but this provide a solution.
In file pkg.modssl/ssl_engine_int.c:
move "ssl_init_Engine(s, p);" function call before =
"ssl_init_SSLLibrary();" function call instead of after.
=20
In fact if you want to use ENGINE default functionnalities you muste set =
ENGINE before everything.
Regards
Fred
------_=_NextPart_001_01C22C31.1DFE690D
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
charset=3DWindows-1252">
6.0.5762.3">
RAND function using OpenSSL 0.9.7 (A Solution)
Hi All,
I change a function call and it works fine now. I do not know if this is =
the real way to solve my problem but this provide a solution.
In file pkg.modssl/ssl_engine_int.c:
move "ssl_init_Engine(s, p);" function call before =
"ssl_init_SSLLibrary();" function call instead of after.
In fact if you want to use ENGINE default functionnalities you muste set =
ENGINE before everything.
Regards
Fred
------_=_NextPart_001_01C22C31.1DFE690D--
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org
Re: RAND function using OpenSSL 0.9.7 (A Solution)
am 15.07.2002 22:10:36 von Geoff Thorpe
Hi Fred,
I was just starting to wonder what might be behind all this when you hit
the nail on the head.
On Mon, 15 Jul 2002, Frederic DONNAT wrote:
> I change a function call and it works fine now. I do not know if this is
> the real way to solve my problem but this provide a solution.
>
> In file pkg.modssl/ssl_engine_int.c:
> move "ssl_init_Engine(s, p);" function call before
> "ssl_init_SSLLibrary();" function call instead of after.
>
> In fact if you want to use ENGINE default functionnalities you muste set
> ENGINE before everything.
That is not *a* solution, it is *the* solution. ssl_init_SSLLibrary() must
be seeding the PRNG, and thus initialising the set-on-first-use pointer in
openssl to a default RAND_METHOD. Do you want to post a patch to the list?
I suggest "diff -u", I suggest a subject starting with "[PATCH]", and I
suggest you CC Ralf. Otherwise, things have a way of slipping through the
net. (Resists temptation to harp on about the simple but important session
caching bug, read "potential security problem", that Ralf still hasn't
incorporated despite me repeatedly harping on about it ...)
Cheers,
Geoff
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org
Re: RAND function using OpenSSL 0.9.7 (A Solution)
am 15.07.2002 22:22:12 von Cliff Woolley
On Mon, 15 Jul 2002, Geoff Thorpe wrote:
> > I change a function call and it works fine now. I do not know if this is
> > the real way to solve my problem but this provide a solution.
> >
> > In file pkg.modssl/ssl_engine_int.c:
> > move "ssl_init_Engine(s, p);" function call before
> > "ssl_init_SSLLibrary();" function call instead of after.
> >
> > In fact if you want to use ENGINE default functionnalities you muste set
> > ENGINE before everything.
>
> That is not *a* solution, it is *the* solution. ssl_init_SSLLibrary() must
> be seeding the PRNG, and thus initialising the set-on-first-use pointer in
> openssl to a default RAND_METHOD. Do you want to post a patch to the list?
Well, I can't do anything about 1.3's mod_ssl, but if somebody can verify
for me that the following fixes Apache 2.0's mod_ssl, I'll commit it.
--Cliff
Index: ssl_engine_init.c
============================================================ =======
RCS file: /home/cvs/httpd-2.0/modules/ssl/ssl_engine_init.c,v
retrieving revision 1.102
diff -u -d -r1.102 ssl_engine_init.c
--- ssl_engine_init.c 8 Jul 2002 17:43:33 -0000 1.102
+++ ssl_engine_init.c 15 Jul 2002 20:22:13 -0000
@@ -266,6 +266,11 @@
}
+#ifdef SSL_EXPERIMENTAL_ENGINE
+ /* SSL external crypto device ("engine") support */
+ ssl_init_Engine(base_server, p);
+#endif
+
ssl_init_SSLLibrary(base_server);
#if APR_HAS_THREADS
@@ -290,13 +295,6 @@
if (ssl_tmp_keys_init(base_server)) {
return !OK;
}
-
- /*
- * SSL external crypto device ("engine") support
- */
-#ifdef SSL_EXPERIMENTAL_ENGINE
- ssl_init_Engine(base_server, p);
-#endif
/*
* initialize the mutex handling
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org
Re: compile of openssl-0.9.6d stops
am 15.07.2002 23:11:19 von Bill Angus
Strange behavior: The error I recently reported on compiling under WIN2000
with MSVC++ diappeared on re-trying the same compile. First time through an
error was reported and compilation stopped. But the same batch file ran and
completed when tried a second time. This time with no errors.
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org
RE: RAND function using OpenSSL 0.9.7 (A Solution)
am 22.07.2002 20:05:07 von Frederic DONNAT
This is a multi-part message in MIME format.
------_=_NextPart_001_01C231AA.5008B8DF
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
Hi,
I've tested it with Apache-2.0.39 using openssl-0.9.7-beta2, on linux =
Mdk-8.0.
kernel 2.4.3-20mdk
gcc version 2.96
And initializing engine before library enable rand redirection.
That works fine for me.
file: modules/ssl/ssl_engine_init.c
Regards,
Fred
-----Original Message-----
From: Cliff Woolley [mailto:jwoolley@apache.org]
Sent: Mon 07/15/2002 10:22 PM
To: modssl-users@modssl.org
Cc:=09
Subject: Re: RAND function using OpenSSL 0.9.7 (A Solution)
On Mon, 15 Jul 2002, Geoff Thorpe wrote:
> > I change a function call and it works fine now. I do not know if =
this is
> > the real way to solve my problem but this provide a solution.
> >
> > In file pkg.modssl/ssl_engine_int.c:
> > move "ssl_init_Engine(s, p);" function call before
> > "ssl_init_SSLLibrary();" function call instead of after.
> >
> > In fact if you want to use ENGINE default functionnalities you muste =
set
> > ENGINE before everything.
>
> That is not *a* solution, it is *the* solution. ssl_init_SSLLibrary() =
must
> be seeding the PRNG, and thus initialising the set-on-first-use =
pointer in
> openssl to a default RAND_METHOD. Do you want to post a patch to the =
list?
Well, I can't do anything about 1.3's mod_ssl, but if somebody can =
verify
for me that the following fixes Apache 2.0's mod_ssl, I'll commit it.
--Cliff
Index: ssl_engine_init.c
==================== =====3D=
==================== =====3D=
=================3D
RCS file: /home/cvs/httpd-2.0/modules/ssl/ssl_engine_init.c,v
retrieving revision 1.102
diff -u -d -r1.102 ssl_engine_init.c
--- ssl_engine_init.c 8 Jul 2002 17:43:33 -0000 1.102
+++ ssl_engine_init.c 15 Jul 2002 20:22:13 -0000
@@ -266,6 +266,11 @@
}
+#ifdef SSL_EXPERIMENTAL_ENGINE
+ /* SSL external crypto device ("engine") support */
+ ssl_init_Engine(base_server, p);
+#endif
+
ssl_init_SSLLibrary(base_server);
#if APR_HAS_THREADS
@@ -290,13 +295,6 @@
if (ssl_tmp_keys_init(base_server)) {
return !OK;
}
-
- /*
- * SSL external crypto device ("engine") support
- */
-#ifdef SSL_EXPERIMENTAL_ENGINE
- ssl_init_Engine(base_server, p);
-#endif
/*
* initialize the mutex handling
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org
------_=_NextPart_001_01C231AA.5008B8DF
Content-Type: application/ms-tnef;
name="winmail.dat"
Content-Transfer-Encoding: base64
eJ8+IgkSAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcA GAAAAElQTS5NaWNy
b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEEgAEAMwAAAFJFOiBS QU5EIGZ1bmN0aW9u
IHVzaW5nIE9wZW5TU0wgMC45LjcgKEEgU29sdXRpb24pANEPAQWAAwAOAAAA 0gcHABYAFAAFAAcA
AQAXAQEggAMADgAAANIHBwAWABQABQAHAAEAFwEBCYABACEAAABCRjJCNTk5 OUNCRjgwNDRDQTc2
MjJBMjlDOTI4MUQ4MAA7BwEDkAYAjA0AADcAAAADACYAAAAAAAMANgAAAAAA QAA5AN+4CFCqMcIB
HgA9AAEAAAAFAAA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JnAB4AOEABAAAACQAAAEZSRURFUklDAAAAAB4AOUABAAAA AgAAAC4AAAALACkA
AAAAAAsAIwAAAAAAAwAGEE0PoZcDAAcQ/QYAAAMAEBAAAAAAAwAREAAAAAAe AAgQAQAAAGUAAABI
SSxJVkVURVNURURJVFdJVEhBUEFDSEUtMjAzOVVTSU5HT1BFTlNTTC0wOTct QkVUQTIsT05MSU5V
WE1ESy04MEtFUk5FTDI0My0yME1ES0dDQ1ZFUlNJT04yOTZBTkRJTklUAAAA AAIBfwABAAAARwAA
ADxBOUVFMDEyQzA2ODVDQjQ4OThBNzBFQjQ1OTRBNkNBNzEyRTZFREBleGNo YW5nZS11bGlzLnVs
aXMuemVuY29kLmNvbT4AAGPN
------_=_NextPart_001_01C231AA.5008B8DF--
____________________________________________________________ __________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List modssl-users@modssl.org
Automated List Manager majordomo@modssl.org