Board.KolibriOS.org

Official KolibriOS board
It is currently Thu Nov 21, 2019 5:42 am

All times are UTC+03:00




Post new topic  Reply to topic  [ 10 posts ] 
Author Message
 Post subject: SSL: polarSSL
PostPosted: Sun Oct 27, 2013 9:48 am 
Offline

Joined: Mon Sep 24, 2007 11:11 am
Posts: 2814
В начале этого года портировал polarSSL, но так и не смог его допилить - соединение вроде открывает, но хендшейк не проходит. Думаю, что какая-то мелочь. Библиотека на Си. Гипотетически можно её слинковать в COFF.

This year I ported polarSSL, but port isn't finished - it can open network socket, and send some data, but can't make handshake. I think there are some minor bugs.

Я бы и не вспомнил об этом, если бы esevece не предложил polarSSL портировать сегодня.


Attachments:
polar.7z [368.84 KiB]
Downloaded 223 times
Top
   
 Post subject: Re: SSL: polarSSL
PostPosted: Mon Nov 11, 2013 10:47 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1248
Guidelines on how to create the COFF file:

Quote:
1) convert all ELF to COFF using objcopy
2) link all COFF files to one using LD
3) take menuetlibc.a, unpack it and link it to one COFF file too
4) link SSL.o to libc.o
5) add Kolibrish export table for polarSSL functions in some other COFF-file
5.5) link that file to MEGA.o
6) PROFIT!

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
 Post subject: Re: SSL: polarSSL
PostPosted: Mon Nov 11, 2013 11:35 pm 
Offline

Joined: Mon Sep 24, 2007 11:11 am
Posts: 2814
I really don't sure if this will work or not, but I sure it's at least possible to link all *.o files to Kolibri COFF library - like I did with iconv and truetype_stb.


Top
   
 Post subject: Re: SSL: polarSSL
PostPosted: Tue Nov 12, 2013 10:34 am 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1248
I have looked at the code for PolarSSL and noticed that the sockets code in net.c is full of stubs, written to work with the old network stack.
It seems that new socket functions are not implemented yet in libc, is this true? If so, where should they be, in src\libc\net\socket.c ?

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
 Post subject: Netsurf
PostPosted: Sun Sep 28, 2014 10:49 pm 
Offline

Joined: Tue Feb 12, 2013 9:48 pm
Posts: 166
I want to help with PolarSSL. Is someone working on it?


Top
   
 Post subject: Re: Netsurf
PostPosted: Sun Sep 28, 2014 11:06 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1248
esevece wrote:
I want to help with PolarSSL. Is someone working on it?


I'm not working on it. Do you know what to do?

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
 Post subject: Re: Netsurf
PostPosted: Mon Sep 29, 2014 5:20 am 
Offline

Joined: Tue Feb 12, 2013 9:48 pm
Posts: 166
I remember (from last year) that was necessary to write some network functions. But I don't know how much is necessary to write now.
Yogev have brought to my attention this topic: viewtopic.php?f=40&t=2460, so I will use that topic if you prefer.
I can start to work using as base the work done by SoUrcerer.

I want to be focused in the security stuff, so I can start by working on PolarSSL.


Top
   
 Post subject: Re: SSL: polarSSL
PostPosted: Sat Mar 12, 2016 8:09 pm 
Offline
KSoC/GSoC Student
User avatar

Joined: Sat Mar 12, 2016 1:05 pm
Posts: 2
Hello Everyone!
I am interested in this idea
http://wiki.kolibrios.org/wiki/Google_S ... t_PolarSSL
and I want to do some contribution to this project, therefore I want to know what is current status of project and where should I start from!?

_________________
Thanks and Regards,
Jagmeet Singh


Top
   
 Post subject: Re: SSL: polarSSL
PostPosted: Sat Mar 12, 2016 9:42 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1248
Hi,

As far as I know, no developments have been made since the source code was posted here in this thread.
Best would be to try to compile it, and see what is wrong with it :-)

Good luck.

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
 Post subject: Re: SSL: polarSSL
PostPosted: Sun Oct 29, 2017 10:21 am 
Offline
Mentor

Joined: Tue Mar 11, 2014 11:37 am
Posts: 184
Polar SSL has been superseded by mbed TLS.

https://tls.mbed.org/

We should try to port mbed TLS with newlib to KolibriOS.

_________________
---
Check out the Netsurf Web Browser for KolibriOS.
Read the wiki and happy hacking with KolibriOS!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 10 posts ] 

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 6 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited