|
|
|
|
| Welcome, Guest | Home | Search | Login | Register | |
| Author | Mbed-TLS port for OS 7/8/9 (Read 22354 times) | ||||||||||
|
BBenchoff
1 MB ![]() Posts: 1 System 7 Newcomer!
|
on: April 10, 2025, 22:25
Figured I should post this here... I ported PolarSSL to the Mac, specifically my G3 desktop running OS 8.6. It compiles as a FAT, so I'm also looking for some people with 68040/68030 to try this out. The github repo is here A few things about this: This is a basic app that performs a GET request for the API on one of my servers. HTTPS is required, and it pulls down JSON. That's about all it does; I'm hoping this will give everyone a starting point to develop their own apps that use TLS/SSL. The port is based on PolarSSL, which itself is a fork of Mbed-TLS, version 2.29. It implements crypto primatives, x.509, and SSL/TLS protocols. Stock, this is the bare minimum to pull data from my server with limited ciphersuites, elliptic curves, and signature algorithms. Cert handling is an ISRG Root X1 cert with a Let's Encrypt R11 intermediate cert. The certs are just... in the code. Not ideal for maintainability, but you get the point. This required a lot of work porting the 64-bit types, and getting around the variadic macros/overloading. This was made for Codewarrior Pro 4, which isn't exactly a C99 compiler, so some work was required to bring that down to the C89/C90 standard. Read the README in the github and you'll get an idea of what's going on. The project compiles as a very simple and stupid app. There's a radio button for HTTP / HTTPS and a button to Connect To The Server. This connects to whatever is in api.h, and pulls it down. It's displayed in the TETextBox, and also writes all the SSL debug info to a file. Basically what you're looking at is the bare minimum to build and debug SSL/TLS handling on a classic mac system. Read the github and play around with it. If you're able, I would really like someone with an SE/30 and Ethernet card to try out the app. I'm curious how fast this thing is. I have an '040 system around here to test the speed, but I'm curious how an 030 would do. Open Transport required, of course. No, I'm not going to add MacTCP support because it's so slow. You really should be running OpenTransport anyway. |
||||||||||
|
Bolkonskij
|
Administrator 1024 MB ![]() ![]() ![]() ![]() ![]() Posts: 2023
Reply #1 on: April 12, 2025, 15:57
|
Welcome to the forum, BBenchoff! :-) Just to get it right - you've ported and provide essentially a library (PolarSSL) which devs could use to add modern SSL/TLS support to their apps? Is that correct? That's a cool undertaking! I can't check your github repo from this computer, unfortunately. But I do have a souped up Mac IIci (68030 @ 40 Mhz) that I could use help with testing. Could you just provide it in an open way (as in, not hidden behind TLS)? Btw, are you aware of AmendHub? I have no affiliation, but it strikes me as such a great tool for such projects ... :-)
|
Knezzen
|
Administrator 512 MB ![]() ![]() ![]() ![]() ![]() Posts: 608 Village idiot
Reply #2 on: April 15, 2025, 13:26
|
This is wonderful news! Hopefully this opens the door applications using modern protocols on our beloved platform. Thanks for doing this and sharing it with us
|
|
Pages: [1]
|
| |||
|
© 2021 System7Today.com. |



