all: sasl-prep implementation is out of scope (fix #20)

This commit is contained in:
Aleksandr Razumov 2017-02-28 00:07:12 +03:00
parent d18dd21653
commit 918afb46eb
2 changed files with 0 additions and 3 deletions

View File

@ -15,7 +15,6 @@ const credentialsSep = ":"
// NewLongTermIntegrity returns new MessageIntegrity with key for long-term
// credentials. Password, username, and realm must be SASL-prepared.
func NewLongTermIntegrity(username, realm, password string) MessageIntegrity {
// TODO: perform sasl prep.
k := strings.Join(
[]string{
username,
@ -33,7 +32,6 @@ func NewLongTermIntegrity(username, realm, password string) MessageIntegrity {
// NewShortTermIntegrity returns new MessageIntegrity with key for short-term
// credentials. Password must be SASL-prepared.
func NewShortTermIntegrity(password string) MessageIntegrity {
// TODO: perform sasl prep.
return MessageIntegrity(password)
}

View File

@ -29,7 +29,6 @@ func (u *Username) GetFrom(m *Message) error {
// NewRealm returns Realm with provided value.
// Must be SASL-prepared.
func NewRealm(realm string) Realm {
// TODO: use sasl
return Realm(realm)
}