aboutsummaryrefslogtreecommitdiff
path: root/acse
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-10-16 14:57:43 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-10-16 14:57:43 +0200
commit75169f6022408b323ca32060554ef30771bac39d (patch)
treeaa01e6bfae9fb05ca2c983c5ae0c793b5aa9e8fd /acse
parent6f50ae6da6f738fe73950fc8fadab5a26ca2913c (diff)
resort
Diffstat (limited to 'acse')
-rw-r--r--acse/acse.go16
1 files changed, 4 insertions, 12 deletions
diff --git a/acse/acse.go b/acse/acse.go
index 1ec4e56..3f882e7 100644
--- a/acse/acse.go
+++ b/acse/acse.go
@@ -63,16 +63,8 @@ type ABRT struct {
}
type External struct {
- DirectReference asn1.ObjectIdentifier `asn1:"optional"`
- Encoding ACSEUserInformationForCSTA `asn1:"tag:0,optional"`
-}
-
-type ACSEUserInformationForCSTA struct {
- NewDefinition `asn1:"tag:0"`
-}
-
-type NewDefinition struct {
- CSTAVersion asn1.BitString
+ DirectReference asn1.ObjectIdentifier `asn1:"optional"`
+ Encoding csta.ACSEUserInformationForCSTA `asn1:"tag:0,optional"`
}
var Version1 = asn1.BitString{Bytes: []byte{0x80}, BitLength: 1}
@@ -84,8 +76,8 @@ func Associate() ([]byte, error) {
UserInformation: UserInformation{
External{
DirectReference: csta.OID,
- Encoding: ACSEUserInformationForCSTA{
- NewDefinition{
+ Encoding: csta.ACSEUserInformationForCSTA{
+ csta.NewDefinition{
CSTAVersion: csta.Version5,
},
},