refactor to mautrix 0.17.x; update deps
This commit is contained in:
23
vendor/maunium.net/go/mautrix/crypto/olm/verification_goolm.go
generated
vendored
Normal file
23
vendor/maunium.net/go/mautrix/crypto/olm/verification_goolm.go
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
//go:build !nosas && goolm
|
||||
|
||||
package olm
|
||||
|
||||
import (
|
||||
"maunium.net/go/mautrix/crypto/goolm/sas"
|
||||
)
|
||||
|
||||
// SAS stores an Olm Short Authentication String (SAS) object.
|
||||
type SAS struct {
|
||||
sas.SAS
|
||||
}
|
||||
|
||||
// NewSAS creates a new SAS object.
|
||||
func NewSAS() *SAS {
|
||||
newSAS, err := sas.New()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return &SAS{
|
||||
SAS: *newSAS,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user