Home arrow Forums  
Sunday, 20 May 2012  
Latest Forums
Welcome, Guest
Please Login or Register.    Lost Password?

ASN1 Library in the Repository
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: ASN1 Library in the Repository
#5
ASN1 Library in the Repository 4 Years, 2 Months ago Karma: 0
The first release of Boost.ASN1 is available in the Download remository.

The library IS free, however, you must be registered to download.<br><br>Post edited by: softwareace, at: 2008/03/10 18:35
softwareace
Administrator
Posts: 23
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Andreas Haberstroh
Ethernet (n) Device used to catch the Etherbunny
 
#6
Re:ASN1 Library in the Repository 4 Years, 1 Month ago Karma: 0
Hi,I am new working with asn1, so when I saw this library to c + +, and I still fascinated, I want to start working with her. From there one of the things that concerns me is how to specify a size of a type asn1, for example what kind of asn1 i most to choose to encode a c++ char of size n ?
vasconce1o
Fresh Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#7
Re:ASN1 Library in the Repository 4 Years, 1 Month ago Karma: 0
I'm sorry, I don't quite understand your question. What exactly are you trying to do?
Can you spell it out in c++ or ASN1 notation?
softwareace
Administrator
Posts: 23
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Andreas Haberstroh
Ethernet (n) Device used to catch the Etherbunny
 
#8
Re:ASN1 Library in the Repository 4 Years, 1 Month ago Karma: 0
I want to encode a unsigned char a[n] to optimize the use of memory.
vasconce1o
Fresh Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#9
Re:ASN1 Library in the Repository 4 Years, 1 Month ago Karma: 0
And you want to transmit that encoded string somewhere?

-----

struct myMessage
{
octectstring_t theString;
};
sequence&lt;myMessage&gt; Message;

stringstream ostrm;
asn_encode&lt;ber_taglen&gt; encoder(ostrm);
encoder.execute(Message);

-----

Now, you can do something with ostrm. It is an ASN1 encoded byte string that you can transmit to another computer.

Is this what you are trying to do?
softwareace
Administrator
Posts: 23
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Andreas Haberstroh
Ethernet (n) Device used to catch the Etherbunny
 
#10
Re:ASN1 Library in the Repository 4 Years, 1 Month ago Karma: 0
First, Thank you so much for your help.

And yes, I am doing something like that, but I also want to save and see the BER, because when I change the stringstream by a fstream and then I saved it what I saw is a text and not the BER.
vasconce1o
Fresh Boarder
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
Moderators: softwareace
Top