Welcome, Guest | Home | Search | Login | Register
Profile Info
Summary Show Posts
Show Posts
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Messages - BBenchoff
1 Development / Mbed-TLS port for OS 7/8/9
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.
Pages: [1]

© 2021 System7Today.com.
The Apple Logo, Macintosh™, Mac OS™, and others property of Apple Computer, Inc.
This site is in no way affiliated with Apple Computer, Inc.