1 bouba 24-May-2007 17:10 Edited: bouba 25-May-2007 8:35 | Just a note to say to people to be careful with this piece of code.
I just gave a quick look at the code, and there is at least one buggy
function.
The encoding of integers in ASN.1 format is wrongly coded :
- it does not respect the format specified for negative values,
- it does not encode correctly values when a "zero byte" appears
in the middle of the value (e.g. 0x1100FFFF for example).
I also suspect the decoding of integers to not be working properly.
If I have some time, I will try to correct the script, right now,
I will just switch languages.
*EDIT:
Maybe not perfect, but this should decode/encode correctly integer
values.
Any comments are welcome, i am not a good rebol coder so there should
be a better way to do this.
*EDIT2: little precision, I just manage the data here, not the length
nor the identifier
ber: context [
encode-integer: func [int [integer!]] [
b: debase/base to-hex int 16
repeat index len: length? b [
if all [index = len] [break] ; we must at least send one
byte
if all [b/1 <> 0 b/1 <> 255] [break] ; nor 0x00, nor
0xFF, cool
if all [b/1 = 0 b/2 >= 128] [break] ; we don't have nine 0s
in a row
if all [b/1 = 255 b/2 < 128] [break] ; we don't have nine 1s
in a row
b: next b
]
b
]
decode-integer: func [bin [binary!]] [
padding: either all [128 > to-integer bin/1] [#{00}][#{FF}]
repeat index subtract 4 length? bin [insert bin padding]
to-integer bin
]
] |
|
2 msnathan 25-Sep-2008 12:45 | Hi all,
I am new to rebol, and i am working with the ldap protocol stuff.
I dont know how to Send a BIND and search the results to Ldap server.
Please Help me to find out the BER encoding/decoding with BIND, SEARCH,
UNBIND stuffs. |
|
3 jackslesly19 14-Apr-2021 19:53 Edited: jackslesly19 22-Mar 22:23 |
 |
This may possibly be quite helpful for some within your work opportunities I plan to never only with my website. I’m sure they’ll be benefited from this site.
Contents:
Lesly | cubierta panel sandwich
|
 |
MakeDoc2 by REBOL- 22-Mar-2023
|
|
|
4 miyaka22 23-May-2021 8:38 | |
|
5 joihnnlio 18-Jun-2022 1:52 | Need to explore more stuff on Discussion posts for script snmp.r as this was the one we will like to explore here. In case we are in need https://www.thedubrovniktimes.com/lifestyle/feature/item/13265-effective-cv-writing-what-employers-want-to-seethis then that would be best for us now so read this for now here. |
|
6 miyaka22 22-Jul-2022 6:29 |
 |
Fencing is one of the most important investments homeowners can make for their property, and it also enhances your home’s curb appeal.
Contents:
test
|
 |
MakeDoc2 by REBOL- 22-Jul-2022
|
|
|
7 richardsjenk 17-Aug-2022 0:45 | |
|
8 ampva301 23-Aug-2022 16:58 | This may be quite useful for some of your work chances, which I intend to never solely with my website. I'm confident that they will benefit from this website. https://www.drywallwichitafalls.com |
|
9 luiejane001 23-Aug-2022 19:20 | Many thanks for approving the great data. Thanks reparacion de tejados con goteras |
|
10 anthonyscott 31-Aug-2022 4:56 | |
|
11 isabelbarnet 10-Oct-2022 1:07 | |
|
12 mandiripinja 5-Dec-2022 7:49 | pinjaman dana jaminan bpkb mobil cepat hanya 1 hari bisa langsung cair dengan suku bunga rendah serta tanpa survey dan bpkb mobil aman untuk seluruh wilayah indonesia. https://www.justgiving.com/fundraising/mandiripinjamandana https://ameblo.jp/mandiripinjamandana/entry-12680765607.html https://ameblo.jp/mandiripinjamandana/entry-12680767540.html https://ameblo.jp/mandiripinjamandana/entry-12680769727.html https://ameblo.jp/mandiripinjamandana/entry-12680770493.html https://ameblo.jp/mandiripinjamandana/entry-12680771364.html https://ameblo.jp/mandiripinjamandana/entry-12680785558.html https://ameblo.jp/mandiripinjamandana/entry-12680786359.html https://ameblo.jp/mandiripinjamandana/entry-12680787122.html https://ameblo.jp/mandiripinjamandana/entry-12680787855.html https://ameblo.jp/mandiripinjamandana/entry-12680788647.html https://ameblo.jp/mandiripinjamandana/entry-12680789550.html https://ameblo.jp/mandiripinjamandana/entry-12680790188.html https://ameblo.jp/mandiripinjamandana/entry-12680790735.html https://ameblo.jp/mandiripinjamandana/entry-12680791419.html https://ameblo.jp/mandiripinjamandana/entry-12680792163.html https://ameblo.jp/mandiripinjamandana/entry-12680792608.html https://ameblo.jp/mandiripinjamandana/entry-12680793459.html https://ameblo.jp/mandiripinjamandana/entry-12680793916.html https://ameblo.jp/mandiripinjamandana/entry-12680794272.html https://ameblo.jp/mandiripinjamandana/entry-12680794619.html https://ameblo.jp/mandiripinjamandana/entry-12680794959.html https://ameblo.jp/mandiripinjamandana/entry-12680795284.html https://ameblo.jp/mandiripinjamandana/entry-12680795637.html |
|
13 crutcherhuyn 20-Dec-2022 22:23 | |
|
14 patrickrall 23-Dec-2022 11:29 | Thank you for sharing this useful article information.I am really impressed with the article you provided. https://descuentostop.eu/descuentos/codigo-promocional-kaemingk/ |
|
15 gerry 29-Dec-2022 21:46 | |
|
16 madelsmith 30-Dec-2022 2:03 | |
|
17 ampva301 5-Jan 19:28 | Thank you for the excellent article. It was really a humorous narrative. Look forward to much more agreeableness from you! | https://www.charlottedrywallpros.com |
|
18 suittax 10-Jan 0:46 Edited: suittax 10-Jan 0:47 |
Some of you may find this useful in your professional endeavors beyond
what I've outlined on my website. I'm certain that they'll get anything
useful from this website. |
|
19 chriscole 18-Jan 14:36 | |
|
20 joeanderson 10-Feb 19:47 | |
|
21 emmausa 14-Feb 0:05 | I really like the information you give, they are very helpful to me. https://fallguyss.co |
|
22 johnsjvi95 13-Mar 6:54 | |
|
23 crutcherhuyn 13-Mar 17:30 | |
|
24 gannetflower 3-Apr 0:52 |
 |
You do not define the SNMP Server IP address within the EEM Script tunnel rush, D would be incorrect as the question asks what is missing from the script ;) If event-default is missing the config t command will not be successfully executed therefore not matched within EEM generating a SNMP trap. In this case correct answer would be B.
Contents:
|
 |
MakeDoc2 by REBOL- 3-Apr-2023
|
|
|
25 peterparkerr 6-Apr 1:18 |
https://word-search.io is a word game that consists of the letters
of words placed in a grid, which usually has a rectangular or square
shape. In today's article we will learn more about the game as well
as the easiest ways to win this game.
What is word search
The goal of this puzzle is to locate and label every word concealed
inside the box. Words may be arranged vertically, horizontally, or
diagonally. More difficult puzzles might not always include a list
of the hidden words, however this is not always the case. Many word
search puzzles contain a theme, such as food, animals, or colors,
to which all the hidden words are connected. Similar to crosswords
and arrowords, puzzles have gained a lot of popularity. These latter
puzzles share another trait with them: they have been the subject
of entire books and mobile applications.
Word Search is an addictive word puzzle game where you will test
your knowledge with engaging crosswords, go through levels with increasing
difficulty, unlock rewards and learn new words. The game offers many
topics, 16 languages with more than 3000 words each for you to explore
in turn.
Word Search main features:
- Puzzle game, find crosswords
- Many vocabulary topics to explore
- Multiple languages and thousands of words
- Multiple levels and vocabulary matrix |
|
26 success118 12-May 15:34 | Thanks for sharing! https://www.repairmyappliance.ca/ |
|
27 lindamartn15 29-May 8:50 | |
|