The first step would be building Espruino yourself. There's some info on the GitHub page. I've just merged in some information about 'Vagrant' from @boneskull - you could give it a try - it appears to be a way to automatically set up the image you'd need to build Espruino with.
Actually adding functions to Espruino once that is done is quite easy - however you may find it slightly trickier if PolarSSL wants access to functions that can real/write to a socket.
In terms of porting PolarSSL yourself - you should be able to make it fit, but you might have to lower the amount of 'variables' used by Espruino in the boards/ESPRUINOBOARD.py file to give you enough RAM for it.
Are you thinking of using it with WiFi? It might be worth doing some research into the ESP8266 and SSL - surely someone must have implemented it in the ESP8266 itself by now. If so it'd be perfect.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
The first step would be building Espruino yourself. There's some info on the GitHub page. I've just merged in some information about 'Vagrant' from @boneskull - you could give it a try - it appears to be a way to automatically set up the image you'd need to build Espruino with.
Actually adding functions to Espruino once that is done is quite easy - however you may find it slightly trickier if PolarSSL wants access to functions that can real/write to a socket.
In terms of porting PolarSSL yourself - you should be able to make it fit, but you might have to lower the amount of 'variables' used by Espruino in the
boards/ESPRUINOBOARD.py
file to give you enough RAM for it.Are you thinking of using it with WiFi? It might be worth doing some research into the ESP8266 and SSL - surely someone must have implemented it in the ESP8266 itself by now. If so it'd be perfect.