mirror of
https://github.com/gortc/stun.git
synced 2024-05-03 14:44:55 +08:00
all: sasl-prep implementation is out of scope (fix #20)
This commit is contained in:
parent
d18dd21653
commit
918afb46eb
@ -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)
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user