OpenSSL linking?

May 19, 2012 at 9:29am
Hello people,

I decited to open a topic since I coudn't get help from Google.

Well, I'm really new to OpenSSL and don't know much about it.
I try to download my E-Mails from a POP3-Server (e.g. gmail) but don't know how to link OpenSSL libaries.
I downloaded OpenSSL from: http://www.openssl.org/source/

How I said, I'm really new to OpenSSL, would be happy if you can help me.

==================
Information:
OS: MS Windows 7
IDE: Code::Blocks
==================

Thanks in advance.

Regards,
Kmitska
May 19, 2012 at 10:09am
Considering the name of the directory, you will probably have to compile OpenSSL first. Considering you're using Windows, that's probably gone be a huge pain in your rectal area.

You should open the archive and there should be a file named INSTALL or INSTALL.txt or something the like, follow the instructions there. If it says anything like " run install.sh" you will probably need MSYS or Cygwin, and even then it's not a given that it will work.

Probably the best thing that could happen to you would be that it brings windows specific makefiles or uses cmake or something like that.
Last edited on May 19, 2012 at 10:10am
May 19, 2012 at 10:49am
It says that my Windows is not compatible, is there an other way to make SSL-Connections without OpenSSL? I think that's kind of "impossible" on Windows.
May 19, 2012 at 10:51am
Who says your windows is not compatible? AFAIK OpenSSL should work on Windows 7.
Last edited on May 19, 2012 at 10:52am
May 19, 2012 at 11:22am
If I click on insall.exe it appears...
I have 64 Bit, is that maybe the problem?
Last edited on May 19, 2012 at 11:23am
May 19, 2012 at 11:40am
Install.exe? Where did you suddenly get that from? I thought you were building from source?
May 19, 2012 at 11:43am
I just downloaded the latest package from: http://www.openssl.org/source/
And there is "install.exe"
Last edited on May 19, 2012 at 11:43am
May 19, 2012 at 12:11pm
is there an other way to make SSL-Connections without OpenSSL?


In windows, yes, you don't really need any SSL library as windows already has its own implementation. But you could use OpenSSL in windows if you really want (you must compile openssl first).
May 19, 2012 at 12:54pm
Oh, can you help me?
I really don't know much about SSL, I just bought a book which is about Linux and it's showing OpenSSL.

But if I can do it with Windows functions, it'd be much easier.
May 19, 2012 at 1:13pm
But if I can do it with Windows functions, it'd be much easier.


Don't count on it, unless if you're already familiar with the Windows API.
May 19, 2012 at 1:29pm
All you need to know is POP3 protocol and basic knowledge of windows sockets.
There are many libraries out there, one very simple to use (with full working gmail example) is Chilkat. Unfortunately, the component is NOT free (30 day trial):
http://www.chilkatsoft.com/
May 19, 2012 at 1:38pm
Well, I'm writing an own E-Mail Client and don't want to pay for anything.
I think I should install OpenSSL and work with it, so how to continue now?
May 19, 2012 at 1:49pm
If you don't know how to compile OpenSSl there are binaries already built by others for you. Choose the version that match your compiler.
http://slproweb.com/products/Win32OpenSSL.html

If you stillwant to compile OpenSSL yourself you need MSYS and ActivePerl installed first (I know, is a pain, but that is ...)
http://stackoverflow.com/questions/9379363/how-to-build-openssl-with-mingw-in-windows
Last edited on May 19, 2012 at 1:52pm
May 19, 2012 at 2:32pm
I downloaded http://slproweb.com/products/Win32OpenSSL.html and it says I have to donate, weird...

And on this forum, I think he explains it for Perl, even there stands "MinGW", should I isntall perl and excute it?
(It doesn't work for me: "Can't open perl script")
Last edited on May 19, 2012 at 2:41pm
May 19, 2012 at 2:48pm
Install this:
http://downloads.activestate.com/ActivePerl/releases/5.14.2.1402/ActivePerl-5.14.2.1402-MSWin32-x86-295342.msi

Click next -> next, you know ... Very important, add Perl to PATH and associate .pl files with ActivePerl (check options in installer), then restart.

Download and install MSYS:
http://ignum.dl.sourceforge.net/project/mingw/MSYS/Base/msys-core/msys-1.0.10/MSYS-1.0.10.exe

I suppose you already have MinGW installed.


Please read INSTALL.w32 and install.,w64 from yout openssl root directory, it is explained there how to build.
Last edited on May 19, 2012 at 2:52pm
May 20, 2012 at 12:20pm
And what about the Windows-functions?
I think I should use them.
Topic archived. No new replies allowed.