From: Juliana Fajardini Date: Wed, 28 Aug 2024 20:15:01 +0000 (-0300) Subject: pgsql: order StateProgress enum per direction X-Git-Tag: suricata-8.0.0-beta1~871 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ba179422d53b47ad074bb114bcaca9f1ab44703;p=thirdparty%2Fsuricata.git pgsql: order StateProgress enum per direction Related to Bug #7113 --- diff --git a/rust/src/pgsql/pgsql.rs b/rust/src/pgsql/pgsql.rs index 0a733d3c22..0f6c723106 100644 --- a/rust/src/pgsql/pgsql.rs +++ b/rust/src/pgsql/pgsql.rs @@ -97,28 +97,30 @@ impl PgsqlTransaction { #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub enum PgsqlStateProgress { IdleState, + // Related to Frontend-received messages // SSLRequestReceived, - SSLRejectedReceived, StartupMessageReceived, - SASLAuthenticationReceived, SASLInitialResponseReceived, - // SSPIAuthenticationReceived, // TODO implement SASLResponseReceived, + PasswordMessageReceived, + SimpleQueryReceived, + CancelRequestReceived, + ConnectionTerminated, + // Related to Backend-received messages // + SSLRejectedReceived, + // SSPIAuthenticationReceived, // TODO implement + SASLAuthenticationReceived, SASLAuthenticationContinueReceived, SASLAuthenticationFinalReceived, SimpleAuthenticationReceived, - PasswordMessageReceived, AuthenticationOkReceived, ParameterSetup, BackendKeyReceived, ReadyForQueryReceived, - SimpleQueryReceived, RowDescriptionReceived, DataRowReceived, CommandCompletedReceived, ErrorMessageReceived, - CancelRequestReceived, - ConnectionTerminated, #[cfg(test)] UnknownState, Finished,