Encode returns the struct as an AuthenticationSASLContinue message.
()
| 341 | |
| 342 | // Encode returns the struct as an AuthenticationSASLContinue message. |
| 343 | func (sc SASLContinue) Encode() *pgproto3.AuthenticationSASLContinue { |
| 344 | return &pgproto3.AuthenticationSASLContinue{ |
| 345 | Data: []byte(fmt.Sprintf("r=%s,s=%s,i=%d", sc.Nonce, sc.Salt, sc.Iterations)), |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | // MessageWithoutProof returns the client-final-message-without-proof. |
| 350 | func (sr SASLResponse) MessageWithoutProof() []byte { |
no outgoing calls