Debian Codegraph @

crt/s2n/docs/usage-guide/topics/ch01-api.md

raw symbols SCIP
1 # s2n-tls API
2
3 The API exposed by s2n-tls is the set of functions and declarations that
4 are in the [s2n.h](https://github.com/aws/s2n-tls/blob/main/api/s2n.h) header file. Any functions and declarations that are in the [s2n.h](https://github.com/aws/s2n-tls/blob/main/api/s2n.h) file
5 are intended to be stable (API and ABI) within major version numbers of s2n-tls releases. Other functions
6 and structures used in s2n-tls internally can not be considered stable and their parameters, names, and
7 sizes may change.
8
9 In general, s2n-tls APIs are not thread safe unless explicitly specified otherwise.
10
11 Read [Error Handling](./ch03-error-handling.md) for information on processing API return values safely.
12
13 The [VERSIONING.rst](https://github.com/aws/s2n-tls/blob/main/VERSIONING.rst) document contains more details about s2n's approach to versions and API changes.
14
15 ## API Reference
16
17 s2n-tls uses [Doxygen](https://doxygen.nl/index.html) to document its public API. The latest s2n-tls documentation can be found on [GitHub pages](https://aws.github.io/s2n-tls/doxygen/).
18
19 The doxygen documentation should be used in conjunction with this guide.
20
21 ## Examples
22
23 To understand the API it may be easiest to see examples in action. s2n-tls's [bin](https://github.com/aws/s2n-tls/blob/main/bin/) directory
24 includes an example client (`s2nc`) and server (`s2nd`).
25
26 **Note:** `s2nc` and `s2nd` are intended for testing purposes only, and should not be used in production.