{"action":"created","issue":{"url":"https://api.github.com/repos/sslab-gatech/opensgx/issues/12","labels_url":"https://api.github.com/repos/sslab-gatech/opensgx/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/sslab-gatech/opensgx/issues/12/comments","events_url":"https://api.github.com/repos/sslab-gatech/opensgx/issues/12/events","html_url":"https://github.com/sslab-gatech/opensgx/issues/12","id":114899731,"number":12,"title":"Support for PolarSSL's net_* functions","user":{"login":"jonhoo","id":176295,"avatar_url":"https://avatars.githubusercontent.com/u/176295?v=3","gravatar_id":"","url":"https://api.github.com/users/jonhoo","html_url":"https://github.com/jonhoo","followers_url":"https://api.github.com/users/jonhoo/followers","following_url":"https://api.github.com/users/jonhoo/following{/other_user}","gists_url":"https://api.github.com/users/jonhoo/gists{/gist_id}","starred_url":"https://api.github.com/users/jonhoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonhoo/subscriptions","organizations_url":"https://api.github.com/users/jonhoo/orgs","repos_url":"https://api.github.com/users/jonhoo/repos","events_url":"https://api.github.com/users/jonhoo/events{/privacy}","received_events_url":"https://api.github.com/users/jonhoo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-03T20:13:44Z","updated_at":"2015-11-09T16:41:28Z","closed_at":null,"body":"I noticed that some preliminary work has been done on making PolarSSL's (now named mbed TLS by the way) net_* functions work. For example, the code in `net.c` has been modified to use `sgx_memcpy` and `sgx_memset`. Are there any plans to extend this to support establishing TLS connections inside the enclave?\r\n\r\nThe modifications are likely to be relatively mechanical (e.g., changing `connect` to `sgx_connect`, `bind` to `sgx_bind`, etc.), but there will probably a lot of them. PolarSSL is modular enough that it may be possible to simply override handlers all over the place, but it would be very useful if OpenSGX provided this out-of-the-box!"},"comment":{"url":"https://api.github.com/repos/sslab-gatech/opensgx/issues/comments/155118105","html_url":"https://github.com/sslab-gatech/opensgx/issues/12#issuecomment-155118105","issue_url":"https://api.github.com/repos/sslab-gatech/opensgx/issues/12","id":155118105,"user":{"login":"jonhoo","id":176295,"avatar_url":"https://avatars.githubusercontent.com/u/176295?v=3","gravatar_id":"","url":"https://api.github.com/users/jonhoo","html_url":"https://github.com/jonhoo","followers_url":"https://api.github.com/users/jonhoo/followers","following_url":"https://api.github.com/users/jonhoo/following{/other_user}","gists_url":"https://api.github.com/users/jonhoo/gists{/gist_id}","starred_url":"https://api.github.com/users/jonhoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonhoo/subscriptions","organizations_url":"https://api.github.com/users/jonhoo/orgs","repos_url":"https://api.github.com/users/jonhoo/repos","events_url":"https://api.github.com/users/jonhoo/events{/privacy}","received_events_url":"https://api.github.com/users/jonhoo/received_events","type":"User","site_admin":false},"created_at":"2015-11-09T16:41:28Z","updated_at":"2015-11-09T16:41:28Z","body":"In fact, looking at [a recent diff](https://github.com/sslab-gatech/opensgx/commit/e0d676ba4ce905cf3b5ef77b65a10215986e56ae#diff-8d87439bb8437c29946ba2e18df6b2c6L121) that removes a bunch of code, it seems like it is possible to access OpenSSL through OpenSGX. Is this documented anywhere?"}}