dtls2 library
A DTLS library for Dart, implemented via FFI bindings to OpenSSL.
Classes
- DtlsClient
- Client for connecting to DTLS Servers and sending UDP packets with encrpyted payloads afterwards.
- DtlsClientContext
- The context contains settings for DTLS session establishment.
- DtlsServer
- Provides DTLS server functionality based on OpenSSL.
- DtlsServerContext
- The context contains settings for DTLS session establishment.
- PskCredentials
- Credentials used for PSK Cipher Suites consisting of an identity and a preSharedKey.
Enums
- ConnectionState
- Describes the different stages of a DtlsConnection's lifecycle.
Mixins
- DtlsConnection
- Represents a DTLS connection to a peer.
Typedefs
- PskCredentialsCallback = PskCredentials Function(String? identityHint)
- Function signature for a callback function for retrieving/generating PskCredentials.
-
PskKeyStoreCallback
= Iterable<
int> ? Function(List<int> identity) - Callback signature for retrieving Pre-Shared Keys from a DtlsServer's keystore.
Exceptions / Errors
- DtlsException
- This Exception is thrown when a DTLS related error occurs.
- DtlsHandshakeException
- A DtlsException that is thrown when a DTLS handshake fails.
- DtlsTimeoutException
- DtlsException that indicates that a timeout has occured.
- OpenSslLoadException
- This Exception is thrown if there is an error loading either libssl or libcrypto.