@@ -573,7 +573,7 @@ mock_scram_verifier(const char *username, int *iterations, char **salt,
573573}
574574
575575/*
576- * Read the value in a given SASL exchange message for given attribute.
576+ * Read the value in a given SCRAM exchange message for given attribute.
577577 */
578578static char *
579579read_attr_value (char * * input , char attr )
@@ -585,15 +585,15 @@ read_attr_value(char **input, char attr)
585585 ereport (ERROR ,
586586 (errcode (ERRCODE_PROTOCOL_VIOLATION ),
587587 errmsg ("malformed SCRAM message" ),
588- errdetail ("Expected attribute '%c' but found %s ." ,
588+ errdetail ("Expected attribute \"%c\" but found \"%s\" ." ,
589589 attr , sanitize_char (* begin ))));
590590 begin ++ ;
591591
592592 if (* begin != '=' )
593593 ereport (ERROR ,
594594 (errcode (ERRCODE_PROTOCOL_VIOLATION ),
595595 errmsg ("malformed SCRAM message" ),
596- errdetail ("Expected character = for attribute %c ." , attr )));
596+ errdetail ("Expected character \"=\" for attribute \"%c\" ." , attr )));
597597 begin ++ ;
598598
599599 end = begin ;
@@ -652,7 +652,7 @@ sanitize_char(char c)
652652}
653653
654654/*
655- * Read the next attribute and value in a SASL exchange message.
655+ * Read the next attribute and value in a SCRAM exchange message.
656656 *
657657 * Returns NULL if there is attribute.
658658 */
@@ -674,7 +674,7 @@ read_any_attr(char **input, char *attr_p)
674674 ereport (ERROR ,
675675 (errcode (ERRCODE_PROTOCOL_VIOLATION ),
676676 errmsg ("malformed SCRAM message" ),
677- errdetail ("Attribute expected, but found invalid character %s ." ,
677+ errdetail ("Attribute expected, but found invalid character \"%s\" ." ,
678678 sanitize_char (attr ))));
679679 if (attr_p )
680680 * attr_p = attr ;
@@ -684,7 +684,7 @@ read_any_attr(char **input, char *attr_p)
684684 ereport (ERROR ,
685685 (errcode (ERRCODE_PROTOCOL_VIOLATION ),
686686 errmsg ("malformed SCRAM message" ),
687- errdetail ("Expected character = for attribute %c ." , attr )));
687+ errdetail ("Expected character \"=\" for attribute \"%c\" ." , attr )));
688688 begin ++ ;
689689
690690 end = begin ;
@@ -703,7 +703,7 @@ read_any_attr(char **input, char *attr_p)
703703}
704704
705705/*
706- * Read and parse the first message from client in the context of a SASL
706+ * Read and parse the first message from client in the context of a SCRAM
707707 * authentication exchange message.
708708 *
709709 * At this stage, any errors will be reported directly with ereport(ERROR).
@@ -802,14 +802,14 @@ read_client_first_message(scram_state *state, char *input)
802802 ereport (ERROR ,
803803 (errcode (ERRCODE_PROTOCOL_VIOLATION ),
804804 errmsg ("malformed SCRAM message" ),
805- errdetail ("Unexpected channel-binding flag %s ." ,
805+ errdetail ("Unexpected channel-binding flag \"%s\" ." ,
806806 sanitize_char (* input ))));
807807 }
808808 if (* input != ',' )
809809 ereport (ERROR ,
810810 (errcode (ERRCODE_PROTOCOL_VIOLATION ),
811811 errmsg ("malformed SCRAM message" ),
812- errdetail ("Comma expected, but found character %s ." ,
812+ errdetail ("Comma expected, but found character \"%s\" ." ,
813813 sanitize_char (* input ))));
814814 input ++ ;
815815
@@ -824,7 +824,7 @@ read_client_first_message(scram_state *state, char *input)
824824 ereport (ERROR ,
825825 (errcode (ERRCODE_PROTOCOL_VIOLATION ),
826826 errmsg ("malformed SCRAM message" ),
827- errdetail ("Unexpected attribute %s in client-first-message." ,
827+ errdetail ("Unexpected attribute \"%s\" in client-first-message." ,
828828 sanitize_char (* input ))));
829829 input ++ ;
830830
@@ -929,7 +929,7 @@ verify_client_proof(scram_state *state)
929929}
930930
931931/*
932- * Build the first server-side message sent to the client in a SASL
932+ * Build the first server-side message sent to the client in a SCRAM
933933 * communication exchange.
934934 */
935935static char *
0 commit comments