@@ -573,7 +573,7 @@ mock_scram_verifier(const char *username, int *iterations, char **salt,
573
573
}
574
574
575
575
/*
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.
577
577
*/
578
578
static char *
579
579
read_attr_value (char * * input , char attr )
@@ -585,15 +585,15 @@ read_attr_value(char **input, char attr)
585
585
ereport (ERROR ,
586
586
(errcode (ERRCODE_PROTOCOL_VIOLATION ),
587
587
errmsg ("malformed SCRAM message" ),
588
- errdetail ("Expected attribute '%c' but found %s ." ,
588
+ errdetail ("Expected attribute \"%c\" but found \"%s\" ." ,
589
589
attr , sanitize_char (* begin ))));
590
590
begin ++ ;
591
591
592
592
if (* begin != '=' )
593
593
ereport (ERROR ,
594
594
(errcode (ERRCODE_PROTOCOL_VIOLATION ),
595
595
errmsg ("malformed SCRAM message" ),
596
- errdetail ("Expected character = for attribute %c ." , attr )));
596
+ errdetail ("Expected character \"=\" for attribute \"%c\" ." , attr )));
597
597
begin ++ ;
598
598
599
599
end = begin ;
@@ -652,7 +652,7 @@ sanitize_char(char c)
652
652
}
653
653
654
654
/*
655
- * Read the next attribute and value in a SASL exchange message.
655
+ * Read the next attribute and value in a SCRAM exchange message.
656
656
*
657
657
* Returns NULL if there is attribute.
658
658
*/
@@ -674,7 +674,7 @@ read_any_attr(char **input, char *attr_p)
674
674
ereport (ERROR ,
675
675
(errcode (ERRCODE_PROTOCOL_VIOLATION ),
676
676
errmsg ("malformed SCRAM message" ),
677
- errdetail ("Attribute expected, but found invalid character %s ." ,
677
+ errdetail ("Attribute expected, but found invalid character \"%s\" ." ,
678
678
sanitize_char (attr ))));
679
679
if (attr_p )
680
680
* attr_p = attr ;
@@ -684,7 +684,7 @@ read_any_attr(char **input, char *attr_p)
684
684
ereport (ERROR ,
685
685
(errcode (ERRCODE_PROTOCOL_VIOLATION ),
686
686
errmsg ("malformed SCRAM message" ),
687
- errdetail ("Expected character = for attribute %c ." , attr )));
687
+ errdetail ("Expected character \"=\" for attribute \"%c\" ." , attr )));
688
688
begin ++ ;
689
689
690
690
end = begin ;
@@ -703,7 +703,7 @@ read_any_attr(char **input, char *attr_p)
703
703
}
704
704
705
705
/*
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
707
707
* authentication exchange message.
708
708
*
709
709
* 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)
802
802
ereport (ERROR ,
803
803
(errcode (ERRCODE_PROTOCOL_VIOLATION ),
804
804
errmsg ("malformed SCRAM message" ),
805
- errdetail ("Unexpected channel-binding flag %s ." ,
805
+ errdetail ("Unexpected channel-binding flag \"%s\" ." ,
806
806
sanitize_char (* input ))));
807
807
}
808
808
if (* input != ',' )
809
809
ereport (ERROR ,
810
810
(errcode (ERRCODE_PROTOCOL_VIOLATION ),
811
811
errmsg ("malformed SCRAM message" ),
812
- errdetail ("Comma expected, but found character %s ." ,
812
+ errdetail ("Comma expected, but found character \"%s\" ." ,
813
813
sanitize_char (* input ))));
814
814
input ++ ;
815
815
@@ -824,7 +824,7 @@ read_client_first_message(scram_state *state, char *input)
824
824
ereport (ERROR ,
825
825
(errcode (ERRCODE_PROTOCOL_VIOLATION ),
826
826
errmsg ("malformed SCRAM message" ),
827
- errdetail ("Unexpected attribute %s in client-first-message." ,
827
+ errdetail ("Unexpected attribute \"%s\" in client-first-message." ,
828
828
sanitize_char (* input ))));
829
829
input ++ ;
830
830
@@ -929,7 +929,7 @@ verify_client_proof(scram_state *state)
929
929
}
930
930
931
931
/*
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
933
933
* communication exchange.
934
934
*/
935
935
static char *
0 commit comments