aws / s2n-tls

An implementation of the TLS/SSL protocols
https://aws.github.io/s2n-tls/usage-guide/
Apache License 2.0
4.49k stars 704 forks source link

s2n should have a --list-capabilities commandline flag #1977

Open danielsn opened 4 years ago

danielsn commented 4 years ago

Problem:

Right now, we have various capabilities (e.g. post quantum, which openSSL version, etc ) that can be controlled by compiler defines. Given an s2n binary, its impossible to know what compiler defines it was built under, and which capabilities it has. This makes integration testing hard, and can complicate debugging.

Solution:

add a new flag --list-capabilities which returns a json object listing all of the build time options for s2n, and what values they had.

Out of scope:

Is there anything the solution will intentionally NOT address?

danielsn commented 4 years ago

It could also be called --list-build-options

zz85 commented 4 years ago

not all s2n is ran from command line, would be good to expose these values via s2n api too.