TlsSession.serialize

ubyte[] serialize() const;

Serializes the session for external storage.

Note

The serialized format is backend-specific and NOT portable

across different TLS implementations. Use TlsContext.deserializeSession() with the same backend to reconstruct.

Returns

The serialized session data.