[REQUEST] Newer version of OpenSSL

Discussion of XBMC4XBOX development.
Post Reply
MasterChief2
Posts: 40
Joined: Tue Oct 01, 2019 9:57 am
Has thanked: 2 times
Been thanked: 45 times

[REQUEST] Newer version of OpenSSL

Post by MasterChief2 »

Hello. I'm in the process of making YouTube plugin using Invidious API, but I have problem with OpenSSL and TLS support. When I send HTTP requests with requests I get error:

Code: Select all

20:05:52 M: 90083328  NOTICE: urllib2
20:05:52 M: 90083328  NOTICE: .
20:05:52 M: 90083328  NOTICE: URLError
20:05:52 M: 90083328  NOTICE: :
20:05:52 M: 90083328  NOTICE: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:592)>
If it's not possible to port newer versions of OpenSSL, is there some workaround for this?
User avatar
professor_jonny
Posts: 1296
Joined: Thu Jul 05, 2012 5:41 am
Location: New Zealand
Has thanked: 66 times
Been thanked: 196 times

Re: [REQUEST] Newer version of OpenSSL

Post by professor_jonny »

can you just import a new _ssl.pyd in to the dll folder ?
MasterChief2
Posts: 40
Joined: Tue Oct 01, 2019 9:57 am
Has thanked: 2 times
Been thanked: 45 times

Re: [REQUEST] Newer version of OpenSSL

Post by MasterChief2 »

I've tried, but didn't work. We need new_ssl.pyd compiled for Python 2 on Xbox. And if I read correctly, these .pyd files are compiled while compailing Python 2. So you can't just replace them and expect to work. Better solution would be to port Python 3 to XBMC, but that won't happen because development of XBMC4Xbox is long dead. We will see what will brentdc-nz do on his port of XBMC to Xbox 360. If he succesfully port Pyton 3 for that XBMC maybe there is a chance to do the same for XBMC4Xbox.
User avatar
GoTeamScotch
Posts: 268
Joined: Sat Apr 06, 2013 2:17 am
Has thanked: 97 times
Been thanked: 75 times

Re: [REQUEST] Newer version of OpenSSL

Post by GoTeamScotch »

MasterChief2 wrote: Fri Sep 16, 2022 7:01 pm I've tried, but didn't work. We need new_ssl.pyd compiled for Python 2 on Xbox. And if I read correctly, these .pyd files are compiled while compailing Python 2. So you can't just replace them and expect to work. Better solution would be to port Python 3 to XBMC, but that won't happen because development of XBMC4Xbox is long dead. We will see what will brentdc-nz do on his port of XBMC to Xbox 360. If he succesfully port Pyton 3 for that XBMC maybe there is a chance to do the same for XBMC4Xbox.
That would be nice. I really hope XBMC makes a comeback someday. It's some of the most complex and powerful software for the og Xbox. I experimented with backporting Jellyfin to XBMC but the python replacements I would have had to make were just too daunting of a task for me. Python 3 would be luxurious.
Image
Remember kids, always zero-ize your HDD key!
MasterChief2
Posts: 40
Joined: Tue Oct 01, 2019 9:57 am
Has thanked: 2 times
Been thanked: 45 times

Re: [REQUEST] Newer version of OpenSSL

Post by MasterChief2 »

I will take a closer look when I get time to see if I can port some GUILIB stuffs from Kodi v17 which will make easier to backport Estuary skin. But I don't have any ETA when that will happen. It would be really awesome if BuZZ could give some info on how Python 2 is compiled on/for Xbox. Maybe it's possible to just compile same python 2, but with newer version of openssl so we can use direct calls to APIs which require TLS1.2.
Geeba
Posts: 539
Joined: Wed Jul 04, 2012 11:32 am
Location: UK
Has thanked: 63 times
Been thanked: 31 times

Re: [REQUEST] Newer version of OpenSSL

Post by Geeba »

GoTeamScotch wrote: Sat Oct 15, 2022 5:26 pm
MasterChief2 wrote: Fri Sep 16, 2022 7:01 pm I've tried, but didn't work. We need new_ssl.pyd compiled for Python 2 on Xbox. And if I read correctly, these .pyd files are compiled while compailing Python 2. So you can't just replace them and expect to work. Better solution would be to port Python 3 to XBMC, but that won't happen because development of XBMC4Xbox is long dead. We will see what will brentdc-nz do on his port of XBMC to Xbox 360. If he succesfully port Pyton 3 for that XBMC maybe there is a chance to do the same for XBMC4Xbox.
That would be nice. I really hope XBMC makes a comeback someday. It's some of the most complex and powerful software for the og Xbox. I experimented with backporting Jellyfin to XBMC but the python replacements I would have had to make were just too daunting of a task for me. Python 3 would be luxurious.
Would be good - but not sure it will, even with the ver1.6 / 128Mb upgrades now working, digital HDMI output and CPU upgrades done by more and more people the xbox just doesn't have the grunt for todays HiDef formats... as an emulation platform it still takes some beating.

I was pretty amazed when 16TB HDD support appeared vie Cerbios so it just goes to show you what can be done.

Maybe Buzz is working on a build... you never know :D
Post Reply