context

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AT_RAND_ATTRIBUTE         = 1
	AT_AUTN_ATTRIBUTE         = 2
	AT_RES_ATTRIBUTE          = 3
	AT_MAC_ATTRIBUTE          = 11
	AT_NOTIFICATION_ATTRIBUTE = 12
	AT_IDENTITY_ATTRIBUTE     = 14
	AT_KDF_INPUT_ATTRIBUTE    = 23
	AT_KDF_ATTRIBUTE          = 24
)

Attribute Types for EAP-AKA'

View Source
const (
	EAP_AKA_PRIME_TYPENUM = 50
)

Variables

This section is empty.

Functions

func AddAusfUeContextToPool

func AddAusfUeContextToPool(ausfUeContext *AusfUeContext)

func AddNfServices

func AddNfServices(serviceMap *map[models.ServiceName]models.NfService, config *factory.Config, context *AUSFContext)

func AddSuciSupiPairToMap

func AddSuciSupiPairToMap(supiOrSuci string, supi string)

func CheckIfAusfUeContextExists

func CheckIfAusfUeContextExists(ref string) bool

func CheckIfSuciSupiPairExists

func CheckIfSuciSupiPairExists(ref string) bool

func GetSupiFromSuciSupiMap

func GetSupiFromSuciSupiMap(ref string) (supi string)

func Init

func Init()

func InitAusfContext

func InitAusfContext(context *AUSFContext)

func IsServingNetworkAuthorized

func IsServingNetworkAuthorized(lookup string) bool

func TestInit

func TestInit()

Types

type AUSFContext

type AUSFContext struct {
	UePool       sync.Map
	NfId         string
	GroupID      string
	SBIPort      int
	RegisterIPv4 string
	BindingIPv4  string
	Url          string
	UriScheme    models.UriScheme
	NrfUri       string
	NfService    map[models.ServiceName]models.NfService
	PlmnList     []models.PlmnId
	UdmUeauUrl   string
	// contains filtered or unexported fields
}

func GetSelf

func GetSelf() *AUSFContext

func (*AUSFContext) GetSelfID

func (a *AUSFContext) GetSelfID() string

type AusfUeContext

type AusfUeContext struct {
	Supi               string
	Kausf              string
	Kseaf              string
	ServingNetworkName string
	AuthStatus         models.AuthResult
	UdmUeauUrl         string

	// for 5G AKA
	XresStar string

	// for EAP-AKA'
	K_aut string
	XRES  string
	Rand  string
}

func GetAusfUeContext

func GetAusfUeContext(ref string) *AusfUeContext

func NewAusfUeContext

func NewAusfUeContext(identifier string) (ausfUeContext *AusfUeContext)

type SuciSupiMap

type SuciSupiMap struct {
	SupiOrSuci string
	Supi       string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL