summaryrefslogtreecommitdiffstats
path: root/ber.go
diff options
context:
space:
mode:
authorJohn Weldon <johnweldon4@gmail.com>2014-04-16 03:04:59 +0200
committerJohn Weldon <johnweldon4@gmail.com>2014-04-16 03:04:59 +0200
commitec51d5ed21377b4023ca7b1e70ae4cb296ee6047 (patch)
treea863c970d8c194d3d4356ce98feda1a2535b590a /ber.go
parentStyle format update (diff)
downloadasn1-ber-ec51d5ed21377b4023ca7b1e70ae4cb296ee6047.tar
asn1-ber-ec51d5ed21377b4023ca7b1e70ae4cb296ee6047.tar.gz
asn1-ber-ec51d5ed21377b4023ca7b1e70ae4cb296ee6047.tar.bz2
asn1-ber-ec51d5ed21377b4023ca7b1e70ae4cb296ee6047.tar.lz
asn1-ber-ec51d5ed21377b4023ca7b1e70ae4cb296ee6047.tar.xz
asn1-ber-ec51d5ed21377b4023ca7b1e70ae4cb296ee6047.tar.zst
asn1-ber-ec51d5ed21377b4023ca7b1e70ae4cb296ee6047.zip
Diffstat (limited to 'ber.go')
-rw-r--r--ber.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ber.go b/ber.go
index cd11c8f..3e99a27 100644
--- a/ber.go
+++ b/ber.go
@@ -99,13 +99,13 @@ var ClassMap = map[uint8]string{
}
const (
- TypePrimative = 0 // xx0xxxxxb
+ TypePrimitive = 0 // xx0xxxxxb
TypeConstructed = 32 // xx1xxxxxb
TypeBitmask = 32 // xx1xxxxxb
)
var TypeMap = map[uint8]string{
- TypePrimative: "Primative",
+ TypePrimitive: "Primative",
TypeConstructed: "Constructed",
}
@@ -455,7 +455,7 @@ func Encode(ClassType, TagType, Tag uint8, Value interface{}, Description string
}
func NewSequence(Description string) *Packet {
- return Encode(ClassUniversal, TypePrimative, TagSequence, nil, Description)
+ return Encode(ClassUniversal, TypePrimitive, TagSequence, nil, Description)
}
func NewBoolean(ClassType, TagType, Tag uint8, Value bool, Description string) *Packet {