From de40727f10119d487e48c07cc27ed81298736a6a Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Thu, 15 Oct 2015 20:21:39 +0200 Subject: Add more versions --- csta/user-information.go | 29 ++++++++++++++++++++++++++--- 1 file changed, 26 insertions(+), 3 deletions(-) diff --git a/csta/user-information.go b/csta/user-information.go index f960383..b3c0c62 100644 --- a/csta/user-information.go +++ b/csta/user-information.go @@ -5,9 +5,32 @@ package csta import "github.com/dim13/asn1" var ( - CSTA = asn1.ObjectIdentifier([]int{1, 3, 12, 0, 218}) - OID = asn1.ObjectIdentifier([]int{1, 3, 12, 0, 285, 200}) - Version5 = asn1.BitString{Bytes: []byte{0x08, 0x00}, BitLength: 16} + CSTA = asn1.ObjectIdentifier([]int{1, 3, 12, 0, 218}) + OID = asn1.ObjectIdentifier([]int{1, 3, 12, 0, 285, 200}) + Version1 = asn1.BitString{Bytes: []byte{0x80}, BitLength: 8} + Version2 = asn1.BitString{Bytes: []byte{0x40}, BitLength: 8} + Version3 = asn1.BitString{Bytes: []byte{0x20}, BitLength: 8} + Version4 = asn1.BitString{Bytes: []byte{0x10}, BitLength: 8} + Version5 = asn1.BitString{Bytes: []byte{0x08}, BitLength: 8} + Version6 = asn1.BitString{Bytes: []byte{0x04}, BitLength: 8} + Version7 = asn1.BitString{Bytes: []byte{0x02}, BitLength: 8} + Version8 = asn1.BitString{Bytes: []byte{0x01}, BitLength: 8} + Version9 = asn1.BitString{Bytes: []byte{0x00, 0x80}, BitLength: 16} + Version10 = asn1.BitString{Bytes: []byte{0x00, 0x40}, BitLength: 16} + Version11 = asn1.BitString{Bytes: []byte{0x00, 0x20}, BitLength: 16} + Version12 = asn1.BitString{Bytes: []byte{0x00, 0x10}, BitLength: 16} + Version13 = asn1.BitString{Bytes: []byte{0x00, 0x08}, BitLength: 16} + Version14 = asn1.BitString{Bytes: []byte{0x00, 0x04}, BitLength: 16} + Version15 = asn1.BitString{Bytes: []byte{0x00, 0x02}, BitLength: 16} + Version16 = asn1.BitString{Bytes: []byte{0x00, 0x01}, BitLength: 16} + Version17 = asn1.BitString{Bytes: []byte{0x00, 0x00, 0x80}, BitLength: 24} + Version18 = asn1.BitString{Bytes: []byte{0x00, 0x00, 0x40}, BitLength: 24} + Version19 = asn1.BitString{Bytes: []byte{0x00, 0x00, 0x20}, BitLength: 24} + Version20 = asn1.BitString{Bytes: []byte{0x00, 0x00, 0x10}, BitLength: 24} + Version21 = asn1.BitString{Bytes: []byte{0x00, 0x00, 0x08}, BitLength: 24} + Version22 = asn1.BitString{Bytes: []byte{0x00, 0x00, 0x04}, BitLength: 24} + Version23 = asn1.BitString{Bytes: []byte{0x00, 0x00, 0x02}, BitLength: 24} + Version24 = asn1.BitString{Bytes: []byte{0x00, 0x00, 0x01}, BitLength: 24} ) type ACSEUserInformationForCSTA struct { -- cgit v1.2.3