a:integrity: rename NewLongtermIntegrity to NewLongTermIntegrity

This commit is contained in:
Aleksandr Razumov
2017-02-18 20:40:05 +03:00
parent b2f4e15253
commit e51941bf3f
3 changed files with 4 additions and 4 deletions

View File

@@ -12,9 +12,9 @@ import (
// separator for credentials.
const credentialsSep = ":"
// NewLongtermIntegrity returns new MessageIntegrity with key for long-term
// NewLongTermIntegrity returns new MessageIntegrity with key for long-term
// credentials. Password and username must be SASL-prepared.
func NewLongtermIntegrity(username, realm, password string) MessageIntegrity {
func NewLongTermIntegrity(username, realm, password string) MessageIntegrity {
// TODO: perform sasl prep.
k := strings.Join(
[]string{

View File

@@ -7,7 +7,7 @@ import (
)
func TestMessageIntegrity_AddTo_Simple(t *testing.T) {
i := NewLongtermIntegrity("user", "realm", "pass")
i := NewLongTermIntegrity("user", "realm", "pass")
expected, err := hex.DecodeString("8493fbc53ba582fb4c044c456bdc40eb")
if err != nil {
t.Fatal(err)

View File

@@ -86,7 +86,7 @@ func TestRFC5769(t *testing.T) {
t.Error("bad realm")
}
// checking HMAC
i := NewLongtermIntegrity(
i := NewLongTermIntegrity(
"\u30DE\u30C8\u30EA\u30C3\u30AF\u30B9",
"example.org",
"TheMatrIX",