public async ValueTask SendContAuthToBufferAsync(IXdrWriter xdr, CancellationToken cancellationToken = default) { await xdr.WriteAsync(IscCodes.op_cont_auth, cancellationToken).ConfigureAwait(false); await xdr.WriteBufferAsync(HasClientData?ClientData : PublicClientData, cancellationToken).ConfigureAwait(false); // p_data await xdr.WriteAsync(AcceptPluginName, cancellationToken).ConfigureAwait(false); // p_name await xdr.WriteAsync(AcceptPluginName, cancellationToken).ConfigureAwait(false); // p_list await xdr.WriteBufferAsync(ServerKeys, cancellationToken).ConfigureAwait(false); // p_keys }
public async ValueTask SendWireCryptToBufferAsync(IXdrWriter xdr, CancellationToken cancellationToken = default) { if (WireCrypt == WireCryptOption.Disabled) { return; } await xdr.WriteAsync(IscCodes.op_crypt, cancellationToken).ConfigureAwait(false); await xdr.WriteAsync(FirebirdNetworkHandlingWrapper.EncryptionName, cancellationToken).ConfigureAwait(false); await xdr.WriteAsync(SessionKeyName, cancellationToken).ConfigureAwait(false); }