Skip to content

Building on macOS as generic Unix, without dependency on SecureTransport #784

@barracuda156

Description

@barracuda156

Describe the feature

This does not need to be fixed here, but suggestions are greatly appreciated.

Currently the library unconditionally uses SecureTransport on macOS. However, SecureTransport is not supported in older macOS versions (or may not have required features implemented).

What is a suitable fallback in such a case? I know how to add code conditionally, but I am not sure whether existing posix code gonna work correctly and which settings are to be chosen.

I can build aws-c-io without SecureTransport with minimal patches: https://github.com/macos-powerpc/powerpc-ports/tree/8db8b66eb3ea4a2d73aaf16822fe410747669161/devel/aws-c-io/files
If those are okay, then all good. If not, if will be very helpful to know what to change.

Use Case

This is needed to have AWS libs working on legacy macOS versions. (Yes, a niche case, and I am fine to carry patches in my repo, if it is not acceptable to add them here.)
It may be also useful for testing, as a non-default (possibly developer) option, on modern macOS.

Proposed Solution

Fall back to generic POSIX when SecureTransport-based implementation is unsupported.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestA feature should be added or improved.needs-triageThis issue or PR still needs to be triaged.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions