flat assembler
Message board for the users of flat assembler.

Index > Windows > SSL Connection

Author
Thread Post new topic Reply to topic
kidscracker



Joined: 29 Oct 2004
Posts: 46
Location: Peru
kidscracker
I'm working on my POP3 and SMTP client for gmail, well really as an feature for my Messenger, but the gmail servers needs SSL connections, and I've been trying to implement it in assembler unsuccesfully. Does anyone has an example of how to use it?, thanks in advance.
Post 06 Sep 2005, 20:36
View user's profile Send private message MSN Messenger ICQ Number Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
yes


  • Install this package: http://www.slproweb.com/products/Win32OpenSSL.html
  • Port the code from MASM to FASM.
  • Compile to FASM as a MS COFF object
  • Use MS link.exe or POlink.exe or whatever other shit is able to link MS COFF .obj into .exe
  • Test with stunnel.exe or similar tool. You can use Link-Net IRC servers to test SSL



Alternatively,

  • Use dll2inc.exe from my website (check the footer of this message) to make include files for DLLs ssleay32.dll libeay32.dll
  • Port the code from MASM to FASM.
  • Compile to FASM as a PE 4.0 file
  • Test with stunnel.exe or similar tool. You can use Link-Net IRC servers to test SSL


Instead of my dll2inc, you can use 2397197 other DLL2INC implementations on this message board (by Vortex, Revenant, etc)

Have fun, amigo!


Description:
Download
Filename: ssl.zip
Filesize: 3.11 KB
Downloaded: 203 Time(s)



Last edited by comrade on 20 Nov 2009, 05:11; edited 1 time in total
Post 07 Sep 2005, 03:01
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
kidscracker



Joined: 29 Oct 2004
Posts: 46
Location: Peru
kidscracker
Thanx comrade, i will use it, i think implementing my own SSL library will be a large project, and will need a lot of time. Thanx. One thing, Shakira isn't from Peru Embarassed , she is from Colombia, but no problem, I agree Viva Peru!!!. I've add you some time ago to my messenger, but now you don't appear online, well if you want add me Smile
Post 07 Sep 2005, 18:14
View user's profile Send private message MSN Messenger ICQ Number Reply with quote
Reverend



Joined: 24 Aug 2004
Posts: 408
Location: Poland
Reverend
comrade wrote:
Instead of my dll2inc, you can use 2397197 other DLL2INC implementations on this message board (by Vortex, Revenant, etc)
In fact it's Reverend Smile
Post 07 Sep 2005, 18:18
View user's profile Send private message Visit poster's website Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
yes, i know you are Reverend

but i am quite sure there is another dll2inc implementation by Revenant
Post 07 Sep 2005, 23:52
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
comrade



Joined: 16 Jun 2003
Posts: 1137
Location: Russian Federation
comrade
kidscracker, you can also check source code of "ftpbnc" program here:

http://comrade.ownz.com/sources/ftpbnc/ftpbnc-0.4.zip

Your main concern is to sort through the OpenSSL API, and their manual on openssl.org is not very straightforward (it is just scattered manpages). Basically, you establish a normal socket connection using winsock, and then "layer" SSL on top of it using SSL_connect(socket, ...). Then, once SSL_connect does its handshaking, you will use SSL_send and SSL_recv, as opposed to send/recv. They act just the same, except SSL_send and SSL_recv will handle the encryption for you.

ftpbnc contains code to handle both types of connection (non-SSL and SSL), so you can clearly see the difference in programming both types of connections.

Linking openssl libraries (libeay32 and ssleay32) should be the least of your worries.
Post 08 Sep 2005, 00:12
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number Reply with quote
kidscracker



Joined: 29 Oct 2004
Posts: 46
Location: Peru
kidscracker
well after some years (7 to be exact) i come back a search for something i searched in the past. Thanks comrade, now i think i'll use for new projects Wink

BTW no more student, now an enginner! =D
Post 23 Feb 2012, 21:53
View user's profile Send private message MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.