Hello, all.<br><br>I would like to ask what the current status is with the SSL library in PythonCE. It is not available with my main PythonCE package (v2.5 19/12/2006), so is there any way to add it?<br><br>I have not, until recently, had any reason to need the SSL module, but I came across the following handy Python script, which lets you check your inbox status programmatically:<br>
<br>================ Python code ================<br>import urllib2, getpass<br><br>def get_unread_msgs(user, passwd=getpass.getpass(&quot;pwd:&quot;)):<br>    auth_handler = urllib2.HTTPBasicAuthHandler()<br>    auth_handler.add_password(<br>
        realm=&#39;New mail feed&#39;,<br>        uri=&#39;<a href="https://mail.google.com">https://mail.google.com</a>&#39;,<br>        user=&#39;%<a href="mailto:s@gmail.com">s@gmail.com</a>&#39; % user,<br>        passwd=passwd<br>
    )<br>    opener = urllib2.build_opener(auth_handler)<br>    urllib2.install_opener(opener)<br>    feed = urllib2.urlopen(&#39;<a href="https://mail.google.com/mail/feed/atom">https://mail.google.com/mail/feed/atom</a>&#39;)<br>
    return feed.read()<br>================ Python code ================<br><br>I would really like to get this working with PythonCE, but need to overcome the lacking SSL capability on PythonCE. I know the device can do it, since PocketIE can happily log into email accounts securely.<br>
<br>I have so far looked into the following:<br><br>a) attempting to compile the SSL module from the main Python 2.5 source using all the PythonCE references - not got very far with this yet.<br><br>b) compiling openSSL and either using it in step a), or somehow accessing the parts I need directly with PythonCE and maybe ctypes. Unfortunately, openSSL documentation for arm processors is not very clear, and rather confusing (it seems to require various extra tools such as perl and a package called wcecompat).<br>
<br>c) TLS Lite - this could be an option, but also appears to require some other modules/libraries. Have not explored this fully yet.<br><br>d) Create my own DLL using VS2008 and the .NET CF3.5 functions. I think this would probably involve a considerable amount of work. Again, have not got an idea yet of exactly what would be required.<br>
<br>My current workaround for all this is to use the GmAtom.php class (other mailbox types can be handled with similar scripts). Using this PHP class I can reproduce the same function as the script above from a PHP server, and then make the information accessible without the need for SSL to my PythonCE device (I could probably include some additional measures to make this more secure without the need for SSL type encryption). This workaround is not fully satisfactory to me, because it still relies on there being an available PHP server to do the accessing. I suppose this could possibly also be done using a &#39;pocket&#39; PHP server, assuming it has SSL capabilities (any recommendations?), but I would be worried about the amount of resources this would use.<br>
<br>Any help on any of the above would be much appreciated!<br><br>Adam<br>