Windows and hidden service -- something incompatible with SSL?
hsaito at comcast.net
Wed Sep 1 18:49:39 UTC 2004
I've looked way it is implemented further, and it can be bit messy.
What actually causing this error is likely to be way library's called --
address mismatch in runtime library.
Some simple code just calling PEM_read_RSAPrivateKey failed with same
It seems like though, file pointer is good.
Solution seems to be:
1. Attempt different way of loading library -- perhaps using dynamic loading
in the code (LoadLibrary, etc.) instead of linking to .lib file. (Not sure
if this helps at all, though, just a possibility.)
2. Try to somehow pass contents of the private_key file as a chars instead
of file pointer (Perhaps OpenSSL provide that functionality?)
I'm suspecting it is failing at routine in OpenSSL library where it try to
read the file. (as writing to file seems to be working just fine.
> From: Nick Mathewson <nickm at freehaven.net>
> Reply-To: <or-dev at freehaven.net>
> Date: Mon, 30 Aug 2004 14:03:20 -0400
> To: <or-dev at freehaven.net>
> Cc: Hideki Saito <hsaito at comcast.net>
> Subject: Re: Windows and hidden service -- something incompatible with SSL?
> On Sat, Aug 28, 2004 at 06:56:57AM -0700, Hideki Saito wrote:
>> I'm actually pretty new to the list -- I was playing around with tor
>> code on Windows and found out something...
>> I was attempting running hidden service with config file:
>> HiddenServiceDir c:\\hidden
>> HiddenServicePort 80 127.0.0.1:8080
>> I was getting error:
>> Unhandled exception at 0x7c918fea in tor.exe: 0xC0000005: Access
>> violation writing location 0x00000010.
>> So I have studied the code for a bit and found out that:
>> Problem on the line:
>> env->key = PEM_read_RSAPrivateKey(src, NULL, NULL, NULL);
> Thanks; I'll check it out!
>> Seems like something wrong with this call -- I haven't really stepped
>> into this function as it seems like this function is provided by OpenSSL
>> (it'll take forever to take OpenSSL compiled with my puny machine...)
> Actually, what would be more useful is if you can give me a backtrace:
> what function _called_ crypto_pk_read_private_key_from_file? What was
> the value of 'src'?
> Thanks again for your help,
> Nick Mathewson
> (PGP key changed on 15Aug2004; see http://wangafu.net/key.txt)
More information about the tor-dev