Encode returns the struct as an AuthenticationSASLContinue message.
()
| 360 | |
| 361 | // Encode returns the struct as an AuthenticationSASLContinue message. |
| 362 | func (sc SASLContinue) Encode() *pgproto3.AuthenticationSASLContinue { |
| 363 | return &pgproto3.AuthenticationSASLContinue{ |
| 364 | Data: []byte(fmt.Sprintf("r=%s,s=%s,i=%d", sc.Nonce, sc.Salt, sc.Iterations)), |
| 365 | } |
| 366 | } |
| 367 | |
| 368 | // MessageWithoutProof returns the client-final-message-without-proof. |
| 369 | func (sr SASLResponse) MessageWithoutProof() []byte { |
no outgoing calls
no test coverage detected